triggerStatements: Difference between revisions
BrettMayson (talk | contribs) No edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 24: | Line 24: | ||
|p1= trigger: [[Object]] | |p1= trigger: [[Object]] | ||
|r1= [[Array]] | |r1= [[Array]] with [condition, activation, deactivation] | ||
* condition: [[String]] | |||
* activation: [[String]] - code ran when the trigger is activated | |||
* deactivation: [[String]] - code ran when the trigger is deactivated | |||
|x1= <sqf>_statements = triggerStatements someTrigger;</sqf> | |x1= <sqf>_statements = triggerStatements someTrigger;</sqf> | ||
Latest revision as of 10:11, 4 April 2026
Description
- Description:
- Returns trigger statements.
- Multiplayer:
- The trigger could be local or remote but the result returned by this command will be for the trigger statements set up locally on the client that executed the command. See createTrigger for more info.
- Groups:
- Triggers
Syntax
- Syntax:
- triggerStatements trigger
- Parameters:
- trigger: Object
- Return Value:
- Array with [condition, activation, deactivation]
Examples
- Example 1:
Additional Information
- See also:
- setTriggerStatements
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note