My intention is to execute event at every 1 second, for period of 5 seconds.
To achieve this I used blueprint node “Set timer by event”. Here is my logic:
After 5 seconds, It set the value of Looping = False. So that set timer by event node stop executing MyCustomEvent in Loop.
The problem is even after setting the value of Looping = False, It will not stop executing the event. It goes on executing the event infinite time.
I think, The node set timer by event is not able to read the value of Looping variable at run-time.
Here are some of the screenshots. Is there any solution for this?
The “set timer by event” is not associated with your variable “Looping”, it only gets the value of “Looping” when it was called.
To stop the timer, use the “Clear Timer by Handle”. You need to store the “Timer Handle” when setting the timer.
Here are examples:
Set Timer by Event
Clear Timer by Handle
Sounds good. Thanks a lot . I really appreciate it.
Thanks a lot Romero… it has been very useful 5 years after your answer
You are welcome
I feel very grateful that my articles help the community a lot: