Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: Not Selected
more ▼

asked Jan 18 '15 at 11:54 PM in Blueprint Scripting

avatar image

83 7 13 15

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Jan 19 '15 at 12:21 AM

avatar image

37.2k 936 172 1116

avatar image darkpivot Jan 19 '15 at 01:30 AM

thanks! i got it.

avatar image lennysunreal Dec 22 '16 at 11:47 PM

Thank you so very much :D. Would be awesome if there was a change Timer Time node. BUT! this totaly worked for me too so ty tyty

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question