I have been trying to make a light blink in UE4. I have followed the tutorials for making it blink on and off using delay in the blue prints. What I am trying to make, and cant get my head around it… is to make the light blink for 0.2 seconds, and then wait 2 seconds before blinking again. I’m trying to resemble the NAV lights on a plane.
2- Create a light function (inside a material graph). Then add it to the light. (its a little tricky to work with a light function, since you need to work with time node and use trigonometric functions)
Hey! here’s a demo I put together while building some elements for my game, the rate of flashing can be changed by increasing (less frequent) or decreasing (more frequent) the B value in the divide node!
Another option for a navigation light. in this BP I also have a sphere with an emissive texture in order to make the light visible, and a translucent sphere for the actual nav light when not illuminated.
Here is my ready to use implementation with debugging Print String. Not so graceful, but it works. Just add FlickerOnOff input in Project settings or replace FlickerOnOff with what ever you need in Level blueprint. Then press L key to turn Flicker on/off in the game.
In other way you can use Timeline with Loop checkbox in the timeline.