setTriggerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 9: Line 8:


|gr1= Triggers |GROUP1=
|gr1= Triggers |GROUP1=
____________________________________________________________________________________________


| 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 27: Line 25:
* <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>)
|DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________


| trigger '''setTriggerType''' action |SYNTAX=
| trigger '''setTriggerType''' action |SYNTAX=
Line 36: Line 33:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_trigger [[setTriggerType]] "END1"</code> |EXAMPLE1=
|x1= <code>_trigger [[setTriggerType]] "END1"</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[triggerType]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[createGuardedPoint]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]]  |SEEALSO=
| [[triggerType]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[createGuardedPoint]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]]  |SEEALSO=

Revision as of 03:56, 17 January 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

Notes

Bottom Section