HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tip for wait action ?

04-04-2009, 01:01 PM#1
bboy-tiger-
I have a trigger, periodic time, how can i change that time ? Lets take survivor map where every couple of times different waves are spawned. So each spawn has like 2 second cooldown before next unit will be spawned, but how can i change for next wave that cooldown from 2 seconds to lets say 3 seconds ? I tried to set variable, and periodic time is 1 second always, at the top of actions is wait=(variable)seconds => wont work.
Also wait wont work inside If Then Else actions... so ? Any solution ?
04-04-2009, 02:00 PM#2
wraithseeker
This should be under Triggers and Scripts.

Are you using GUI?

You make triggers that are initially on with periodic timers that suit your periods and then turn them on when u need them or off when you don't need it.
04-04-2009, 02:27 PM#3
0zyx0
Wait works fine inside If/Then/Else blocks. It doesn't work in loops, IF, and only IF there can be more than one loop running at the same time. If not, it should work.
04-05-2009, 12:31 AM#4
bboy-tiger-
Quote:
Originally Posted by 0zyx0
Wait works fine inside If/Then/Else blocks. It doesn't work in loops, IF, and only IF there can be more than one loop running at the same time. If not, it should work.

Trigger:
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
SpawnCD Equal to (==) 3
Collapse Then - Actions
Wait 3.00 seconds
Else - Actions

Wont work, event is "every 2 seconds".
04-05-2009, 06:04 AM#5
0zyx0
Use a timer expires event instead of a periodic event. You can pause the timer as much as you want, and you can start it with different intervals.