PostTriggerExecuteBJ
- Parameters
-
trig trigger
Target trigger to execute
checkConditions boolean
If
true
, check if trigger conditions are met and only then queue the trigger. Iffalse
, ignores conditions and always queues the trigger.Returns:
true
, if trigger will be executedfalse
, if conditions were not met
- comment
Adds trigger to execution queue by setting it up with a zero-delay timer, so it is executed almost immediately. Unlike calling another trigger with
TriggerExecute
, this does not interrupt the currently running trigger.- patch
1.00
- Source
- Blizzard.j
- return type
boolean
- Source code
function PostTriggerExecuteBJ takes trigger trig, boolean checkConditions returns boolean if checkConditions then if not (TriggerEvaluate(trig)) then return false endif endif call TriggerRegisterTimerEvent(trig, 0, false) return true endfunction