setTriggerType: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|arg= global | |arg= global | ||
|eff= local | |eff= local | ||
|gr1= Triggers | |gr1= Triggers | ||
| Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission): | | Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission): | ||
Line 24: | Line 24: | ||
* <tt>"LOOSE"</tt> - (Meant to say LOSE but is misspelt in the game engine). | * <tt>"LOOSE"</tt> - (Meant to say LOSE but is misspelt in the game engine). | ||
* <tt>"WIN"</tt> - (Not in editor. Valid enum name but when set, defaults to <tt>"END1"</tt>) | * <tt>"WIN"</tt> - (Not in editor. Valid enum name but when set, defaults to <tt>"END1"</tt>) | ||
| | | trigger '''setTriggerType''' action | ||
| | |p1= trigger: [[Object]] | ||
| [[Nothing]] | |p2= action: [[String]] | ||
| [[Nothing]] | |||
|x1= <code>_trigger [[setTriggerType]] "END1"</code> | |x1= <code>_trigger [[setTriggerType]] "END1"</code> | ||
| [[triggerType]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[createGuardedPoint]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]] | | [[triggerType]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[createGuardedPoint]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]] | ||
}} | }} |
Revision as of 11:09, 18 January 2021
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:
- triggerTypecreateTriggersetTriggerActivationsetTriggerAreasetTriggerStatementssetTriggerTextsetTriggerTimeoutcreateGuardedPointtriggerIntervalsetTriggerIntervalenableSimulationsimulationEnabled
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
- Command Group: Triggers
- Scripting Commands: Local Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands