setTriggerStatements: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (format) |
||
Line 22: | Line 22: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_trg setTriggerStatements ["this", "hint 'trigger on'", "hint 'trigger off'"]</code> |= Example 1 | |x1= <code>_trg [[setTriggerStatements]] ["this", "[[hint]] 'trigger on'", "[[hint]] 'trigger off'"]</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 05:18, 18 September 2014
Description
- Description:
- Defines a trigger's condition, and executable code for its activation and deactivation events.
- Groups:
- Uncategorised
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.
- Return Value:
- Nothing
Examples
- Example 1:
_trg setTriggerStatements ["this", "hint 'trigger on'", "hint 'trigger off'"]
Additional Information
- See also:
- triggerStatementscreateTriggersetTriggerActivationsetTriggerAreasetTriggerTextsetTriggerTimeoutsetTriggerTypethis
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
- Posted on Mar 14, 2011 - 20:52
- Scifer
- An array with three arguments is mandatory for this function.
Bottom Section
- Posted on September 16, 2014 - 17:41 (UTC)
- Heeeere's Johnny!
- Magic variable thisList does not contain dead units.
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Command Group: Activators
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters