TriggerAddAction

Parameters
whichTrigger trigger
actionFunc code
bug

If an action execution crashes after a TriggerSleepAction in the same action execution, subsequent actions will not be run.

comment

Adds an action to be called when the given trigger is fired through registered events or through TriggerExecute.

note

New actions added to the trigger during the execution of the actions won't be subject for execution for this run.

note

If an action execution crashes, subsequent actions will be unaffected and still be called.

note

Actions wait for their forerunner to finish. So if there are TriggerSleepActions, subsequent actions will be delayed accordingly.

note

The same function can be used more than once on the same trigger.

note

More than one action can be added to the trigger. The actions run in the order they were added.

return type
triggeraction
Source code
native TriggerAddAction     takes trigger whichTrigger, code actionFunc returns triggeraction
Source
trigger.j
wc3modding.com
TriggerAddAction