There is simple example with Flow Graph scripting about Trigger area + light on/off, but this example not about some thing repeating every time with delay.
I have one light for test scripting with FG, and i want to add bliking for this light, how can i do this?
Hey @GoogleBot That’s a great question. Flow graph is a flexible tool for designing light behaviors. Here’s an image showing how you can create a repeating, blinking light. It’s true that you can also use the built in lightstyle as suggested by @Datouwan, if you are happy with the built-in presets. The benefit of the lightstyle presets are that you can see them in editor, whereas flow graphs have to be evaluated in the game to see the output.
You can set light values directly on the light entity node, but I prefer to externalize the data, because I’ll probably be doing other operations on those values, before they go to the light. I didn’t externalize the “time” parameter on the Interp Float node, but you could do that as well.
In this example, I’ve put a flow graph on the light entity, but you can also create a flow graph entity and call any lights you want in a graph on that entity.