TriggerAddAction
- Parameters
whichTrigger triggeractionFunc code- comment
Adds an action to be called when the given trigger is fired through registered events or through
TriggerExecute.- note
More than one action can be added to the trigger. The actions run in the order they were added.
- note
The same function can be used more than once on the same trigger.
- note
Actions wait for their forerunner to finish. So if there are
TriggerSleepActions, subsequent actions will be delayed accordingly.- note
If an action execution crashes, subsequent actions will be unaffected and still be called.
- bug
If an action execution crashes after a
TriggerSleepActionin the same action execution, subsequent actions will not be run.- note
New actions added to the trigger during the execution of the actions won't be subject for execution for this run.
- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
triggeraction- Source code
native TriggerAddAction takes trigger whichTrigger, code actionFunc returns triggeraction