|Description:||Defines a trigger condition, as well as its executable code for activation and deactivation events.|
|Syntax:||trigger setTriggerStatements [condition, activation, deactivation]|
- trigger: Object - Trigger object.
- condition: String - Code containing the trigger condition, which has to return a Boolean value. If this is used, the result of the trigger setTriggerActivation is interpreted.
- activation: String - Code that is executed, when the trigger is activated (the variable this contains an array with the units that activated the trigger).
- deactivation: String - Code that is executed, when the trigger is deactivated.
_trg setTriggerStatements ["this", "hint 'trigger on'", "hint 'trigger off'"];
|See also:|| triggerStatements |