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



Introduced in

Version:1.18

Description

Description:Sets an optional script that is executed, when the trigger activates.

Syntax

Syntax:trigger addTriggerOnActivated command
Parameters:
  • trigger : Object - Trigger to activate.
  • command : String - Command to execute.
Return Value:Number - Event handler ID.

Examples

Examples:
trigger1 addTriggerOnActivated "commander1 enableAttack false"; // disables issuing attack commands for commander1, when trigger1 is activated

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes