setTriggerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Armed[ _]Assault(\|.*)]]" to "{{GameCategory|arma1|Scripting Commands}}")
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
 
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma1 |Game name=
|game1= arma1
|version1= 1.00


|1.00|Game version=
|game2= arma2
|arg= global|Multiplayer Arguments=
|version2= 1.00
|eff= local |Multiplayer Effects=


|gr1= Triggers |GROUP1=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):
|game4= tkoh
|version4= 1.00


* <tt>"NONE"</tt>
|game5= arma3
* <tt>"EAST G"</tt> - Guarded by OPFOR - (It is better to use [[createGuardedPoint]] instead)
|version5= 0.50
* <tt>"WEST G"</tt> - Guarded by BLUFOR - (It is better to use [[createGuardedPoint]] instead)
* <tt>"GUER G"</tt> - 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]])
* <tt>"END1"</tt> - End #1
* <tt>"END2"</tt> - End #2
* <tt>"END3"</tt> - End #3
* <tt>"END4"</tt> - End #4
* <tt>"END5"</tt> - End #5
* <tt>"END6"</tt> - End #6
* <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>)
|DESCRIPTION=
____________________________________________________________________________________________


| trigger '''setTriggerType''' action |SYNTAX=
|arg= global
|eff= local


|p1= trigger: [[Object]] |PARAMETER1=
|gr1= Triggers


|p2= action: [[String]] |PARAMETER2=
|descr= Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):


| [[Nothing]] |RETURNVALUE=
* {{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)
|x1= <code>_trigger [[setTriggerType]] "END1"</code> |EXAMPLE1=
* {{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"}})


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


}}
|p1= trigger: [[Object]]
 
|p2= action: [[String]]


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_trigger setTriggerType "END1";</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[triggerType]] [[createTrigger]] [[setTriggerActivation]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerTimeout]] [[createGuardedPoint]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]]
[[Category:Scripting Commands|SETTRIGGERTYPE]]
}}
[[Category:Scripting Commands OFP Elite |SETTRIGGERTYPE]]
{{GameCategory|arma1|Scripting Commands}}
[[Category:Command_Group:_Triggers|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:43, 28 June 2022

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:
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