I am learning blueprint right now. I would like to create a realistic police light flash pattern. Here is a video for example:
I want to make a pattern that flashes 4 times before cycling over to the other side.
How can i achieve this effect?
Is anyone able to guide me as to how to set up what is needed in blueprint to tweak the values for flash frequency, flash intensity, and offset timing? This way, i can control and edit the rate of flash, how many time it flashes and the intensity of the flash?
Thank you for the great tutorial. I’m going to try this out if i can decipher your photo, lol. Do i turn any of them into float variables so it can be easily edited by adding this script to an actor?
Because I’m still new to this engine, I am hoping to apply this script to any surface LED lights on a vehicle model, give it emissive light materials and have it flash patterns.
Update above. Only named those that are different when searching.
The nodes above are from a material, not a blueprint. Then assigned it as light function on the respective spot actor component in the blueprint.
Also I used UE 5.2 with Substrate. If you are using earlier version of unreal you won’t find a node called Substrate Light Function. For earlier version you can read here: Light Functions | Unreal Engine 4.27 Documentation… everything else should be the same.
Figured it out thanks to your guide, it worked like a charm. Thank you again.
Now i have another challenge, just wanting to see if you’re able to make this light control go deeper …
The challenge is to make a flash pattern that flashes 4 times, and then a steady pause, before resetting the loop.
Here’s a video for example, the flash pattern above is the same flash pattern you see around the fire truck, it flashes 4 times fast following steady pause. Do you think this is possible?
Use timeline curves. Predefine as many various ones as you need, load them dynamically if necessary. A single timeline could drive a material with any desired intricacy and timing. Very flexible. But might be an overkill already.
This is using a timer with some random values, replace it with a timeline track. Color tracks preferably.
make this light control go deeper
Once you go deep with curves, you can go even deeper :