bug? Random function in timers doesn't work
PPenguin
Member, PRO Posts: 110
I'm trying to have an event occur at a random interval.
I have 2 attributes, MaxTime and MinTime. I've set both of these attributes to decrease by 1 every 15 seconds.
I have a timer elsewhere that spawns an actor every "random(MinTime,MaxTime)"
So for example, MaxTime = 8 and MinTime = 5, an actor should spawn on repeated intervals of somewhere between 5 and 8 seconds.
After I set it up like this, the actor spawns every 6 seconds on the dot, even as MaxTime goes to values of 5 and lower..
Anyone else have trouble with the random function in timers?
I have 2 attributes, MaxTime and MinTime. I've set both of these attributes to decrease by 1 every 15 seconds.
I have a timer elsewhere that spawns an actor every "random(MinTime,MaxTime)"
So for example, MaxTime = 8 and MinTime = 5, an actor should spawn on repeated intervals of somewhere between 5 and 8 seconds.
After I set it up like this, the actor spawns every 6 seconds on the dot, even as MaxTime goes to values of 5 and lower..
Anyone else have trouble with the random function in timers?
Comments
http://gamesalad.com/wiki/how_tos:gsc_variable_timer_speed