Random time spawn
Sparkyidr
Member Posts: 2,033
ok so..
I am trying to do a simple thing, where a spawner, spawns an actor every 1-5 seconds or something.
So I put in a timer, and say
every random(1,5) seconds
spawn actor X
should that spawn actor X at an interval of 1, 2, 3, 4 or 5 seconds?
Because it seems like since the 0.8 updates, it just spawns at 1 second
I have tried with random (3,50) for example....and it just spawns every 3 seconds....I.E. it only looks at the "min"
anyone else tried this (or am I doing it wrong?)
Sparky.
I am trying to do a simple thing, where a spawner, spawns an actor every 1-5 seconds or something.
So I put in a timer, and say
every random(1,5) seconds
spawn actor X
should that spawn actor X at an interval of 1, 2, 3, 4 or 5 seconds?
Because it seems like since the 0.8 updates, it just spawns at 1 second
I have tried with random (3,50) for example....and it just spawns every 3 seconds....I.E. it only looks at the "min"
anyone else tried this (or am I doing it wrong?)
Sparky.
Comments
Every X seconds
-spawn actor
-x = random(1, 5)
That will change X every time a spawn occurs. This may cause problems, though. I remember with 0.7 that, at least for me, changing X was causing a crash after a while. It could have just been bad logic on my part, though.