triggerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Fix)
 
(41 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
|arg= global|= Arguments in MP
|version2= 1.50
|eff= local |= Effects in MP
____________________________________________________________________________________________


| Returns trigger type (see [[setTriggerType]]).  
|game3= tkoh
|version3= 1.00


'''Note:''' The trigger could be local or remote but the result returned by this command will be for the trigger condition set up locally on the client that executed the command. See [[createTrigger]] for more info.|DESCRIPTION=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50
|arg= global


| '''triggerType''' trigger |SYNTAX=
|gr1= Triggers


|p1= trigger: [[Object]] |PARAMETER1=
|descr= Returns the trigger type.


|p2= |PARAMETER2=
{{Feature|important|
The trigger could be [[Multiplayer Scripting#Locality|local]] or remote but the result returned by this command will be for the trigger type set up locally on the client that executed the command.
See [[createTrigger]] for more info.
}}


|p3= |PARAMETER3=  
|s1= [[triggerType]] trigger


| [[String]] |RETURNVALUE=
|p1= trigger: [[Object]]


|r1= [[String]] - can be one of the following (see [[setTriggerType]] for details):
{{Columns|8|
* {{hl|"NONE"}}
* {{hl|"EAST G"}}
* {{hl|"WEST G"}}
* {{hl|"GUER G"}}
* {{hl|"SWITCH"}}
* {{hl|"END1"}}
* {{hl|"END2"}}
* {{hl|"END3"}}
* {{hl|"END4"}}
* {{hl|"END5"}}
* {{hl|"END6"}}
* {{hl|"LOOSE"}}
* {{hl|"WIN"}}
}}
Can return {{hl|"ERROR"}} in case of an invalid trigger type (due to [[Mission.sqm]] manual edit or other type of data corruption)


|x1= <code>_type = [[triggerType]] tr1;</code>|EXAMPLE1=
|x1= <sqf>_type = triggerType tr1;</sqf>
 
____________________________________________________________________________________________


| [[setTriggerType]] |SEEALSO=
|seealso= [[setTriggerType]]
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Activators|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:02, 28 April 2023

Hover & click on the images for description

Description

Description:
Returns the trigger type.
The trigger could be local or remote but the result returned by this command will be for the trigger type set up locally on the client that executed the command. See createTrigger for more info.
Groups:
Triggers

Syntax

Syntax:
triggerType trigger
Parameters:
trigger: Object
Return Value:
String - can be one of the following (see setTriggerType for details):
  • "NONE"
  • "EAST G"
  • "WEST G"
  • "GUER G"
  • "SWITCH"
  • "END1"
  • "END2"
  • "END3"
  • "END4"
  • "END5"
  • "END6"
  • "LOOSE"
  • "WIN"
Can return "ERROR" in case of an invalid trigger type (due to Mission.sqm manual edit or other type of data corruption)

Examples

Example 1:
_type = triggerType tr1;

Additional Information

See also:
setTriggerType

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