Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:Defines a trigger condition, as well as its executable code for activation and deactivation events.

Syntax

Syntax:trigger setTriggerStatements [condition, activation, deactivation]
Parameters:
  • 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.
Return Value:Nothing

Examples

Examples:_trg setTriggerStatements ["this", "hint 'trigger on'", "hint 'trigger off'"];

Additional Information

See also: triggerStatements
Multiplayer:
Problems:

Notes