triggerType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| arma2 \| *([0-9]\.[0-9]{2}) * " to " | arma2 |$1 |game2= arma2oa |version2= 1.50 |game3= tkoh |version3= 1.00 |game4= arma3 |version4= 0.50 ") |
Lou Montana (talk | contribs) m (Fix) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 16: | Line 16: | ||
|gr1= Triggers | |gr1= Triggers | ||
| Returns trigger type | |descr= Returns the trigger type. | ||
{{Feature|important| | |||
The trigger could be [[Multiplayer Scripting#Locality|local]] or remote but the result returned by this command will be for the trigger type set up locally on the client that executed the command. | |||
See [[createTrigger]] for more info. | |||
}} | |||
| | |s1= [[triggerType]] trigger | ||
|p1= trigger: [[Object]] | |p1= trigger: [[Object]] | ||
| [[String]] | |r1= [[String]] - can be one of the following (see [[setTriggerType]] for details): | ||
{{Columns|8| | |||
* {{hl|"NONE"}} | |||
* {{hl|"EAST G"}} | |||
* {{hl|"WEST G"}} | |||
* {{hl|"GUER G"}} | |||
* {{hl|"SWITCH"}} | |||
* {{hl|"END1"}} | |||
* {{hl|"END2"}} | |||
* {{hl|"END3"}} | |||
* {{hl|"END4"}} | |||
* {{hl|"END5"}} | |||
* {{hl|"END6"}} | |||
* {{hl|"LOOSE"}} | |||
* {{hl|"WIN"}} | |||
}} | |||
Can return {{hl|"ERROR"}} in case of an invalid trigger type (due to [[Mission.sqm]] manual edit or other type of data corruption) | |||
|x1= < | |x1= <sqf>_type = triggerType tr1;</sqf> | ||
|seealso= [[setTriggerType]] | |seealso= [[setTriggerType]] | ||
}} | }} | ||
Latest revision as of 15:02, 28 April 2023
Description
- Description:
- Returns the trigger type.
- Groups:
- Triggers
Syntax
- Syntax:
- triggerType trigger
- Parameters:
- trigger: Object
- Return Value:
- String - can be one of the following (see setTriggerType for details):
Can return "ERROR" in case of an invalid trigger type (due to Mission.sqm manual edit or other type of data corruption)
- "NONE"
- "EAST G"
- "WEST G"
- "GUER G"
- "SWITCH"
- "END1"
- "END2"
- "END3"
- "END4"
- "END5"
- "END6"
- "LOOSE"
- "WIN"
Examples
- Example 1:
Additional Information
- See also:
- setTriggerType
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