setTriggerActivation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}")
m (Text replacement - "<tt>([^= ]+)<\/tt>" to "{{hl|$1}}")
Line 29: Line 29:
|p1= trigger: [[Object]] - Trigger object
|p1= trigger: [[Object]] - Trigger object
|p2= by: [[String]] - Who activates trigger. Can be {{hl|"NONE"}} or<br>
|p2= by: [[String]] - Who activates trigger. Can be {{hl|"NONE"}} or<br>
* Side: <tt>"EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY", "ANYPLAYER"</tt> (''Since Arma 3 v1.67'')
* Side: {{hl|"EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY", "ANYPLAYER"}} (''Since Arma 3 v1.67'')
* Radio:<tt> "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"</tt>
* Radio:{{hl| "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"}}
* Object: <tt>"STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"</tt>
* Object: {{hl|"STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"}}
* Status: <tt>"WEST SEIZED", "EAST SEIZED" or "GUER SEIZED"</tt>
* Status: {{hl|"WEST SEIZED", "EAST SEIZED" or "GUER SEIZED"}}
|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: {{hl|"PRESENT", "NOT PRESENT"}}
* Detection: <tt>"WEST D", "EAST D", "GUER D" or "CIV D"</tt>
* Detection: {{hl|"WEST D", "EAST D", "GUER D" or "CIV D"}}


|p4= repeating: [[Boolean]] - Activation can happen repeatedly
|p4= repeating: [[Boolean]] - Activation can happen repeatedly

Revision as of 01:15, 16 November 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