setTriggerType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>") |
||
(14 intermediate revisions by the same user not shown) | |||
Line 23: | Line 23: | ||
|descr= Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission): | |descr= Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission): | ||
* | * {{hl|"NONE"}} | ||
* | * {{hl|"EAST G"}} - Guarded by OPFOR - (It is better to use [[createGuardedPoint]] instead) | ||
* | * {{hl|"WEST G"}} - Guarded by BLUFOR - (It is better to use [[createGuardedPoint]] instead) | ||
* | * {{hl|"GUER G"}} - Guarded by Independent - (It is better to use [[createGuardedPoint]] instead) | ||
* | * {{hl|"SWITCH"}} - Switch waypoints/break loop (see [[ArmA:_Mission_Editor#Triggers_Mode_.28F3.29|Triggers]]) | ||
* | * {{hl|"END1"}} - End #1 | ||
* | * {{hl|"END2"}} - End #2 | ||
* | * {{hl|"END3"}} - End #3 | ||
* | * {{hl|"END4"}} - End #4 | ||
* | * {{hl|"END5"}} - End #5 | ||
* | * {{hl|"END6"}} - End #6 | ||
* | * {{hl|"LOOSE"}} - (Meant to say LOSE but is misspelt in the game engine). | ||
* | * {{hl|"WIN"}} - (Not in editor. Valid enum name but when set, defaults to {{hl|"END1"}}) | ||
|s1= trigger [[setTriggerType]] action | |s1= trigger [[setTriggerType]] action | ||
Line 45: | Line 45: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_trigger setTriggerType "END1";</sqf> | ||
|seealso= [[triggerType]] | |seealso= [[triggerType]] [[createTrigger]] [[setTriggerActivation]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerTimeout]] [[createGuardedPoint]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]] | ||
}} | }} |
Latest revision as of 22:43, 28 June 2022
Description
- Description:
- Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):
- "NONE"
- "EAST G" - Guarded by OPFOR - (It is better to use createGuardedPoint instead)
- "WEST G" - Guarded by BLUFOR - (It is better to use createGuardedPoint instead)
- "GUER G" - Guarded by Independent - (It is better to use createGuardedPoint instead)
- "SWITCH" - Switch waypoints/break loop (see Triggers)
- "END1" - End #1
- "END2" - End #2
- "END3" - End #3
- "END4" - End #4
- "END5" - End #5
- "END6" - End #6
- "LOOSE" - (Meant to say LOSE but is misspelt in the game engine).
- "WIN" - (Not in editor. Valid enum name but when set, defaults to "END1")
- Groups:
- Triggers
Syntax
- Syntax:
- trigger setTriggerType action
- Parameters:
- trigger: Object
- action: String
- Return Value:
- Nothing
Examples
- Example 1:
- _trigger setTriggerType "END1";
Additional Information
- See also:
- triggerType createTrigger setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout createGuardedPoint triggerInterval setTriggerInterval enableSimulation simulationEnabled
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Triggers
- Scripting Commands: Local Effect