How to change random time in Set Timer Delegate every loop?
I have a 'set timer delegate' node, set to looping. I have the time set to a 'random float in range' with a min and max time value. I want it so that every time the timer loops, it will randomize the time again. My problem is that on the initial execution of the timer, it will pick a random value, but each time it loops it will use the same value without randomizing again. How can I get it to randomize each time it executes a loop?
asked Jan 18 '15 at 11:54 PM in Blueprint Scripting
Instead of setting "Looping" to true, plug random number generation to "Time" input and at timer trigger call "set timer delegate" again, it will set timer over and overagain increasing a loop but with different "Time" every time. Don't worry, set timer functions are async so you won't infinitely loop the thread. Ofcorse then to stop this timer to loop you will need to break loop you made with nodes by condition check before each set timer call
answered Jan 19 '15 at 12:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here