setTriggerActivation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


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


|gr1= Triggers |GROUP1=
|gr1= Triggers


| Defines the trigger activation type.  
| Defines the trigger activation type.  


See [[ArmA:_Mission_Editor#Triggers_Mode_.28F3.29|ArmA:Mission Editor - Triggers]] for a thorough overview of triggers and its fields for activation, effects, etc.  Since Arma 3 v1.67, "ANYPLAYER" activation can be used to detect any player.|DESCRIPTION=
See [[ArmA:_Mission_Editor#Triggers_Mode_.28F3.29|ArmA:Mission Editor - Triggers]] for a thorough overview of triggers and its fields for activation, effects, etc.  Since Arma 3 v1.67, "ANYPLAYER" activation can be used to detect any player.


| trigger '''setTriggerActivation''' [by, type, repeating] |SYNTAX=
| trigger '''setTriggerActivation''' [by, type, repeating]


|p1= trigger: [[Object]] - Trigger object |PARAMETER1=
|p1= trigger: [[Object]] - Trigger object
|p2= by: [[String]] - Who activates trigger. Can be <tt>"NONE"</tt> or<br>
|p2= by: [[String]] - Who activates trigger. Can be <tt>"NONE"</tt> or<br>
* Side: <tt>"EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY", "ANYPLAYER"</tt> (''Since Arma 3 v1.67'')
* Side: <tt>"EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY", "ANYPLAYER"</tt> (''Since Arma 3 v1.67'')
* Radio:<tt> "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"</tt>
* Radio:<tt> "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"</tt>
* Object: <tt>"STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"</tt>
* Object: <tt>"STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"</tt>
* Status: <tt>"WEST SEIZED", "EAST SEIZED" or "GUER SEIZED"</tt>|PARAMETER3=
* Status: <tt>"WEST SEIZED", "EAST SEIZED" or "GUER SEIZED"</tt>
|p3= type: [[String]] -  How trigger is it activated. Can be:<br>
|p3= type: [[String]] -  How trigger is it activated. Can be:<br>
* Presence: <tt>"PRESENT", "NOT PRESENT"</tt>
* Presence: <tt>"PRESENT", "NOT PRESENT"</tt>
* Detection: <tt>"WEST D", "EAST D", "GUER D" or "CIV D"</tt>
* Detection: <tt>"WEST D", "EAST D", "GUER D" or "CIV D"</tt>
|PARAMETER4=
|p4= repeating: [[Boolean]] - Activation can happen repeatedly |PARAMETER5=


| [[Nothing]] |RETURNVALUE=
|p4= repeating: [[Boolean]] - Activation can happen repeatedly
 
| [[Nothing]]
   
   
|x1= <code>_trigger [[setTriggerActivation]] ["WEST", "EAST D", [[true]]]</code> |EXAMPLE1=
|x1= <code>_trigger [[setTriggerActivation]] ["WEST", "EAST D", [[true]]]</code>
|mp= Activation changes are local.
|mp= Activation changes are local.


| [[triggerActivation]], [[triggerActivated]], [[createTrigger]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[triggerAttachVehicle]], [[triggerAttachObject]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]] |SEEALSO=
| [[triggerActivation]], [[triggerActivated]], [[createTrigger]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[triggerAttachVehicle]], [[triggerAttachObject]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]]


}}
}}

Revision as of 12:12, 18 January 2021

Hover & click on the images for description

Description

Description:
Defines the trigger activation type. See ArmA:Mission Editor - Triggers for a thorough overview of triggers and its fields for activation, effects, etc. Since Arma 3 v1.67, "ANYPLAYER" activation can be used to detect any player.
Multiplayer:
Activation changes are local.
Groups:
Triggers

Syntax

Syntax:
trigger setTriggerActivation [by, type, repeating]
Parameters:
trigger: Object - Trigger object
by: String - Who activates trigger. Can be "NONE" or
  • Side: "EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY", "ANYPLAYER" (Since Arma 3 v1.67)
  • Radio: "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"
  • Object: "STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"
  • Status: "WEST SEIZED", "EAST SEIZED" or "GUER SEIZED"
type: String - How trigger is it activated. Can be:
  • Presence: "PRESENT", "NOT PRESENT"
  • Detection: "WEST D", "EAST D", "GUER D" or "CIV D"
repeating: Boolean - Activation can happen repeatedly
Return Value:
Nothing

Examples

Example 1:
_trigger setTriggerActivation ["WEST", "EAST D", true]

Additional Information

See also:
triggerActivationtriggerActivatedcreateTriggersetTriggerAreasetTriggerStatementssetTriggerTextsetTriggerTimeoutsetTriggerTypetriggerAttachVehicletriggerAttachObjecttriggerIntervalsetTriggerIntervalenableSimulationsimulationEnabled

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