HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

why a function is stopped when i use TriggerSleepAction ?

05-22-2008, 07:34 PM#1
Troll-Brain
Expand My Function:

I don't understand why the function LoopForGroup is stopped when i use TriggerSleepAction

PS: Dont care about the other code on the top, i will change it anyway
05-22-2008, 07:48 PM#2
grim001
ForGroup, ForForce, GroupEnum, EnumDestructables, etc... will all fail if you use TriggerSleepAction inside the callback. Has nothing to do with your code or vJASS.
05-22-2008, 08:02 PM#3
Troll-Brain
Quote:
Originally Posted by grim001
ForGroup, ForForce, GroupEnum, EnumDestructables, etc... will all fail if you use TriggerSleepAction inside the callback. Has nothing to do with your code or vJASS.
but i use it in a trigger action, so just because i add the action with a callback it fail ?!

EDIT : it seems you can't use waits on a trigger action when you start it with TriggerExecute
05-22-2008, 08:07 PM#4
Captain Griffen
Yes.
05-22-2008, 08:17 PM#5
Troll-Brain
Quote:
Originally Posted by Captain Griffen
Yes.

i tried this :

Expand JASS:

And it still doesn't work, i think it is cause of the TriggerExecute
05-22-2008, 09:59 PM#6
Joker
http://www.wc3campaigns.net/showthread.php?t=79029

ExecuteFunc could be used for this (unless you absolutely want to avoid this naitve)
05-23-2008, 01:21 PM#7
Troll-Brain
thank you, but I realize that the waits don't stack, so let's use timers and more and more functions ...