setTriggerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
 
(71 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


|1.00|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):
|game3= arma2oa
|version3= 1.50


"NONE", "SWITCH", "END1", "END2", "END3", "END4", "END5", "END6", "LOOSE" or "WIN". |= Description
|game4= tkoh
____________________________________________________________________________________________
|version4= 1.00


| trigger '''setTriggerType''' action |= Syntax
|game5= arma3
|version5= 0.50


|p1= trigger: [[Object]] |= Parameter 1
|arg= global
|eff= local


|p2= action: [[String]] |= Parameter 2
|gr1= Triggers


| [[Nothing]] |= Return value
|descr= Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):
____________________________________________________________________________________________
 
|x1= <pre>_trigger setTriggerType "END1"</pre> |= Example 1
____________________________________________________________________________________________


| [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]]  |= See also
* {{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
 
|p1= trigger: [[Object]]
 
|p2= action: [[String]]
 
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>_trigger setTriggerType "END1";</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 23 Feb 2007</dd>
<dt class="note">'''[[User:Dr_Eyeball|Dr_Eyeball]]'''</dt><dd class="note">
'''"SWITCH"''' type: It appears to be related to activating the [[setTriggerTimeout]] values. It may be a prerequisite to using Timeouts and Countdowns, as found in many missions. Found a partial explanation [http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=100d47b30fa6168b58a3a4aa1e8012b4;act=ST;f=7;t=22118 here]. (Fix explanation or ref's as needed.)
</dd>
<dd class="notedate">Posted on 23 Feb 2007</dd>
<dt class="note">'''[[User:Dr_Eyeball|Dr_Eyeball]]'''</dt><dd class="note">
In the ArmA editor, the trigger dialog also includes action Types for: "Guarded by East", "Guarded by West" and "Guarded by Resistance" in the list and does not include "WIN".
</dd>
<!-- Note Section END -->
</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]]
[[Category:Scripting Commands ArmA|SETTRIGGERTYPE]]
[[Category:Command_Group:_Activators|{{uc:{{PAGENAME}}}}]]

Latest revision as of 23: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