setTriggerActivation: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - " *\|= * " to " ") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>") |
||
| (40 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma1 | | |game1= arma1 | ||
|version1= 1.00 | |||
| | |game2= arma2 | ||
| | |version2= 1.00 | ||
| | |game3= arma2oa | ||
|version3= 1.50 | |||
| | |game4= tkoh | ||
|version4= 1.00 | |||
|game5= arma3 | |||
|version5= 0.50 | |||
| | |arg= global | ||
|eff= local | |||
|p1= trigger: [[Object]] - Trigger object | |gr1= Triggers | ||
|p2= by: [[String]] - Who activates trigger. Can be | |||
* Side: | |descr= Defines the trigger activation type. | ||
* Radio: | |||
* Object: | 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. | ||
* Status: | |||
|s1= trigger [[setTriggerActivation]] [by, type, repeating] | |||
|p1= trigger: [[Object]] - Trigger object | |||
|p2= by: [[String]] - Who activates trigger. Can be {{hl|"NONE"}} or<br> | |||
* Side: {{hl|"EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY", "ANYPLAYER"}} (''Since Arma 3 v1.67'') | |||
* Radio:{{hl| "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"}} | |||
* Object: {{hl|"STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"}} | |||
* 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: | * Presence: {{hl|"PRESENT", "NOT PRESENT"}} | ||
* Detection: | * Detection: {{hl|"WEST D", "EAST D", "GUER D" or "CIV D"}} | ||
| [[ | |p4= repeating: [[Boolean]] - Activation can happen repeatedly | ||
|x1= < | |r1= [[Nothing]] | ||
|x1= <sqf>_trigger setTriggerActivation ["WEST", "EAST D", true];</sqf> | |||
|mp= Activation changes are local. | |mp= Activation changes are local. | ||
| [[triggerActivation]] | |seealso= [[triggerActivation]] [[triggerActivated]] [[createTrigger]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerTimeout]] [[setTriggerType]] [[triggerAttachVehicle]] [[triggerAttachObject]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]] | ||
}} | }} | ||
Revision as of 22:43, 28 June 2022
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:
Additional Information
- See also:
- triggerActivation triggerActivated createTrigger setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType triggerAttachVehicle triggerAttachObject triggerInterval setTriggerInterval enableSimulation simulationEnabled
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Triggers
- Scripting Commands: Local Effect