triggerStatements: Difference between revisions
(populated with empty template) |
BrettMayson (talk | contribs) mNo edit summary |
||
| (52 intermediate revisions by 10 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 |= | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
|arg= global | |||
| | |gr1= Triggers | ||
| | |mp= The trigger could be [[Multiplayer Scripting#Locality|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. | ||
| | |descr=Returns trigger statements. | ||
| | |s1= [[triggerStatements]] trigger | ||
|p1= trigger: [[Object]] | |||
| | |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> | |||
| | |seealso= [[setTriggerStatements]] | ||
}} | }} | ||
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