setTriggerStatements: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (locality added) |
m (Add notedate for Scifer's note.) |
||
Line 32: | Line 32: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on Mar 14, 2011 - 20:52 | |||
<dt class="note">'''[[User:Scifer|Scifer]]'''<dd class="note"> | |||
An array with three arguments is mandatory for this function. | An array with three arguments is mandatory for this function. | ||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 12:31, 3 April 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
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