setTriggerStatements

From Bohemia Interactive Community
Revision as of 12:00, 2 November 2009 by Besselinksjm (talk | contribs) (rewritten description)
Jump to navigation Jump to search
-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
This command provides hooks for conditioning a trigger with custom functions/scripts. Three hooks are provided: controlling (1) when the trigger will be activated, (2) what to do when the trigger activates, and (3) what to do when the trigger deactivates. Two variables are of concern: this contains the boolean return value of the trigger's condition (e.g. "East Not Present"); thisList provides an array containing all units which are currently causing activation.
Groups:
Uncategorised

Syntax

Syntax:
trigger setTriggerStatements [condition, activation, deactivation]
Parameters:
trigger: Object
[condition, activation, deactivation]: Array
condition: String
activation: String
deactivation: String
Return Value:
Nothing

Examples

Example 1:
_trigger setTriggerStatements ["this", "ok = true", "ok = false"]

Additional Information

See also:
createTriggersetTriggerActivationsetTriggerAreasetTriggerTextsetTriggerTimeoutsetTriggerTypethis

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section