setTriggerStatements
From Bohemia Interactive Community
Click on the images for descriptions
Introduced in
- Game:
- Armed Assault
- Version:
- 1.00
Description
- Description:
- Defines a trigger's condition, and executable code for its activation and deactivation events.
Syntax
- Syntax:
- trigger setTriggerStatements [condition, activation, deactivation]
- Parameters:
- trigger: Object - Trigger object
- condition: String - Code containing the trigger's condition, which has to return a boolean value. If this is used, the result of the trigger's activation condition is interpreted.
- activation: String - Code that is executed when the trigger is activated (The variable thislist contains an array with the units that activated the trigger.)
- deactivation: String - Code that is executed when the trigger is deactivated.
- condition: String - Code containing the trigger's condition, which has to return a boolean value. If this is used, the result of the trigger's activation condition is interpreted.
- Return Value:
- Nothing
Examples
- Example 1:
_trg setTriggerStatements ["this", "hint 'trigger on'", "hint 'trigger off'"]
Additional Information
- Multiplayer:
- -
- See also:
- triggerStatements, createTrigger, setTriggerActivation, setTriggerArea, setTriggerText, setTriggerTimeout, setTriggerType, this
Notes
Notes
Notes
-
An array with three arguments is mandatory for this function.