| 06-02-2004, 08:04 PM | #1 |
well im making a ton of trigger spells for my map and ive found a simple little trick to kinda make a periodic event through actions. you may have already known this but here it is Code:
local integer i = 0
loop
exitwhen i > {time in seconds miliseconds whatever}
{actions}
...
...
...
TriggerSleepAction({1 unit of time your using})
set i = i+1
endloop |
| 06-02-2004, 08:21 PM | #2 |
Hmm, thats a pretty good idea instead of using multiple triggers. One thing you might not want to do is have other actions in the loop because it might slow the loop down a small amount and thus rendering your timer loop ineffective. |
| 06-02-2004, 09:17 PM | #3 |
ya but if you dont put other actions in its just a wait trigger. its for doing something over and over again with a lil time in between. i think it does slow it down alittle bit but what im using it for is a visual effect not timed so it doesnt have to be PERFECT. |
| 06-02-2004, 09:25 PM | #4 | |
Quote:
... Isn't the JASS for wait actually TriggerSleepAction ( # ) ? |
| 06-02-2004, 09:34 PM | #5 | |
Quote:
|
