HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

TriggerWaitOnSleeps / IsTriggerWaitOnSleeps

12-18-2008, 07:54 PM#1
Troll-Brain
What TriggerWaitOnSleeps do ?
I found this post.
http://www.wc3campaigns.net/showpost...3&postcount=10
The others posts are old and don't anwser at all.

But when i edit the line wich call TriggerWaitOnSleeps, i see no difference if the argument of the function is true or false.

Could someone explain me plz ?
12-19-2008, 05:08 AM#2
darkwulfv
Your link leads to something completely irrelevent to what you're asking, did you miscopy the url?
12-19-2008, 10:23 AM#3
Troll-Brain
Quote:
Originally Posted by darkwulfv
Your link leads to something completely irrelevent to what you're asking, did you miscopy the url?
No the others threads are older and say nothing or wrong things about theses functions.
This is the only link where the function TriggerWaitOnSleeps is used, but i had forgotten to said the function ForPool use it,thought.
12-27-2008, 06:15 AM#4
Pyrogasm
Google links me this...
12-28-2008, 11:14 PM#5
Troll-Brain
But it doesn't give the usage.

Well let's use them for a fast way to link a boolean with a trigger :p
12-29-2008, 06:49 AM#6
Pyrogasm
Yes, it does explain the usage:
Quote:
Originally Posted by weaaddar
this just means if the trigger ignores or accepts the sleep action command. if it doesn't wait on sleep it just keeps on churning. Default its on.
A trigger with this as its actionfunc would display "OMG" after 2 seconds:
Collapse JASS:
function Waitlol takes nothing returns nothing
    call TriggerSleepAction(2.00)
    call BJDebugMsg("OMG")
endfunction
While with this one it would display it instantly:
Collapse JASS:
function Waitlol takes nothing returns nothing
    call TriggerWaitOnSleeps(GetTriggeringTrigger(), false)
    call TriggerSleepAction(2.00)
    call BJDebugMsg("OMG")
endfunction
12-29-2008, 09:51 AM#7
Troll-Brain
As i said the threads i've found said nothing or WRONG things about these functions, just test this nice theory.