Decrease timer value
Forte
Member, PRO Posts: 297
Hi everyone,
I want to have zombies spawning around the map, but I want my timer rule, which says every 3 seconds, spawn "Zombie" actor. Can i have that every minute or when a attribute gets to a certain value, it decreases wait time?
Do you understand? If not then tell me and I will make an example.
Cheers, Dragokillz
I want to have zombies spawning around the map, but I want my timer rule, which says every 3 seconds, spawn "Zombie" actor. Can i have that every minute or when a attribute gets to a certain value, it decreases wait time?
Do you understand? If not then tell me and I will make an example.
Cheers, Dragokillz
Comments
I have used this method but instead of using it to spawn an actor at intervals of decreasing amounts of time, I have tried to use it to change an attribute (create a random number). However, whatever I do, the value within the second timer will NOT decrease i.e. it keeps the original value. Here's an example:-
Timer1 - Every 5 seconds
GameTimer=GamerTimer-5
Timer2 - Every GamerTimer
Change Attribute RandomNumber to random(1,5)
If I set the initial value of GameTimer to 20 seconds, even though it should be decreasing (due to Timer1) Timer 2 will only change the random number every 20 seconds ad-infinitum.
Any ideas? I'd really appreciate the input because it's driving me crazy and my game cannot continue without it. Is it a GS issue?
Many thanks