setTriggerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |r1=[[" to " |r1= [[")
m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}")
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):


* <tt>"NONE"</tt>
* {{hl|"NONE"}}
* <tt>"EAST G"</tt> - Guarded by OPFOR - (It is better to use [[createGuardedPoint]] instead)
* {{hl|"EAST G"}} - Guarded by OPFOR - (It is better to use [[createGuardedPoint]] instead)
* <tt>"WEST G"</tt> - Guarded by BLUFOR - (It is better to use [[createGuardedPoint]] instead)
* {{hl|"WEST G"}} - Guarded by BLUFOR - (It is better to use [[createGuardedPoint]] instead)
* <tt>"GUER G"</tt> - Guarded by Independent - (It is better to use [[createGuardedPoint]] instead)
* {{hl|"GUER G"}} - Guarded by Independent - (It is better to use [[createGuardedPoint]] instead)
* <tt>"SWITCH"</tt> - Switch waypoints/break loop (see [[ArmA:_Mission_Editor#Triggers_Mode_.28F3.29|Triggers]])
* {{hl|"SWITCH"}} - Switch waypoints/break loop (see [[ArmA:_Mission_Editor#Triggers_Mode_.28F3.29|Triggers]])
* <tt>"END1"</tt> - End #1
* {{hl|"END1"}} - End #1
* <tt>"END2"</tt> - End #2
* {{hl|"END2"}} - End #2
* <tt>"END3"</tt> - End #3
* {{hl|"END3"}} - End #3
* <tt>"END4"</tt> - End #4
* {{hl|"END4"}} - End #4
* <tt>"END5"</tt> - End #5
* {{hl|"END5"}} - End #5
* <tt>"END6"</tt> - End #6
* {{hl|"END6"}} - End #6
* <tt>"LOOSE"</tt> - (Meant to say LOSE but is misspelt in the game engine).
* {{hl|"LOOSE"}} - (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>)
* {{hl|"WIN"}} - (Not in editor. Valid enum name but when set, defaults to {{hl|"END1"}})


|s1= trigger [[setTriggerType]] action
|s1= trigger [[setTriggerType]] action

Revision as of 23:44, 15 November 2021

Hover & click on the images for description

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