Hi everybody , I want to make blinkers for my car when I press a button . I know how to make the light blink when starts from event tick ,but I don’t know how make from a button . ( sorry for my english ) .
One way to do it is to use a Timeline. Crate a timeline with a float track that looks like this:
From 0 to 1 and then back to 0 in 2 seconds(time length is up to you)
Then use this to set the light’s intensity by using a Lerp:
Now it will start to blink when you press E and it will stop(turn the light off) when you release.