setTriggerActivation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(locality correction)
("ANYPLAYER")
Line 11: Line 11:
| 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.|= 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.|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 17:


|p1= trigger: [[Object]] - Trigger object |= Parameter 1
|p1= trigger: [[Object]] - Trigger object |= Parameter 1
|p2= by: [[String]] - Who activates trigger. Can be "NONE" or<br>
|p2= by: [[String]] - Who activates trigger. Can be <tt>"NONE"</tt> or<br>
''Side': "EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY"<br>
* Side: <tt>"EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY", "ANYPLAYER" (''Since Arma 3 v1.67'')</tt>
''Radio'': "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"<br>
* Radio:<tt> "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"</tt>
''Object'': "STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"<br>
* Object: <tt>"STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"</tt>
''Status'': "WEST SEIZED", "EAST SEIZED" or "GUER SEIZED"|= Parameter 3
* Status: <tt>"WEST SEIZED", "EAST SEIZED" or "GUER SEIZED"</tt>|= Parameter 3
|p3= type: [[String]] -  How trigger is it activated. Can be:<br>
|p3= type: [[String]] -  How trigger is it activated. Can be:<br>
''Presence'': "PRESENT", "NOT PRESENT"<br>
* Presence: <tt>"PRESENT", "NOT PRESENT"</tt>
''Detection'': "WEST D", "EAST D", "GUER D" or "CIV D"
* Detection: <tt>"WEST D", "EAST D", "GUER D" or "CIV D"</tt>
|= Parameter 4
|= Parameter 4
|p4= repeating: [[Boolean]] - Activation can happen repeatedly |= Parameter 5
|p4= repeating: [[Boolean]] - Activation can happen repeatedly |= Parameter 5
Line 31: Line 31:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_trigger setTriggerActivation ["WEST", "EAST D", true]</pre> |= Example 1
|x1= <code>_trigger setTriggerActivation ["WEST", "EAST D", true]</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________
|mp= Triggers are global. Activation changes are local. |=
|mp= Triggers are global. Activation changes are local. |=

Revision as of 23:27, 30 November 2016

-wrong parameter ("Arma") defined!-1.00
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:
Triggers are global. Activation changes are local.
Groups:
Uncategorised

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

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