PostTriggerExecuteBJ
- Parameters
trig triggerTarget trigger to execute
checkConditions booleanIf
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 (suggest an edit or discuss on Github)
- 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