Random time spawn

SparkyidrSparkyidr Member Posts: 2,033
edited November -1 in Working with GS (Mac)
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.

Comments

  • BurzmaliBurzmali Member Posts: 9
    I'm betting it's getting the random value when the game launches, and after that it isn't changing. To actually change the random value after each spawn, try this:

    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.
Sign In or Register to comment.