setTriggerActivation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
 
(69 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.00


|1.00|= Game version
|game2= arma2
|eff= local |= Effects in MP
|version2= 1.00
____________________________________________________________________________________________


| Defines the trigger activation type.  
|game3= arma2oa
|version3= 1.50


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
|game4= tkoh
____________________________________________________________________________________________
|version4= 1.00


| trigger '''setTriggerActivation''' [by, type, repeating] |= Syntax
|game5= arma3
|version5= 0.50


|p1= trigger: [[Object]] - Trigger object |= Parameter 1
|arg= global
|p2= by: [[String]] - Who activates trigger. Can be "NONE" or<br>
|eff= local
''Side': "EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY"<br>
''Radio'': "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET"<br>
''Object'': "STATIC", "VEHICLE", "GROUP", "LEADER", "MEMBER"<br>
''Status'': "WEST SEIZED", "EAST SEIZED" or "GUER SEIZED"|= Parameter 3
|p3= type: [[String]] -  How trigger is it activated. Can be:<br>
''Presence'': "PRESENT", "NOT PRESENT"<br>
''Detection'': "WEST D", "EAST D", "GUER D" or "CIV D"
|= Parameter 4
|p4= repeating: [[Boolean]] - Activation can happen repeatedly |= Parameter 5


| [[Nothing]] |= Return value
|gr1= Triggers
____________________________________________________________________________________________
 
|x1= <pre>_trigger setTriggerActivation ["WEST", "EAST D", true]</pre> |= Example 1
____________________________________________________________________________________________
|mp= Triggers are local. Thus, activation changes are as well. |=


| [[triggerActivation]], [[triggerActivated]], [[createTrigger]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[triggerAttachVehicle]], [[triggerAttachObject]]  |= See also
|descr= 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.
|s1= trigger [[setTriggerActivation]] [by, type, repeating]
|p1= trigger: [[Object]] - trigger object
|p2= by: [[String]] - who activates trigger. Can be {{hl|"NONE"}}, or:
{{{!}} class="wikitable valign-top"
! Side
! Radio
! Object
! Status
{{!}}-
{{!}}
{{Columns|2|
* {{hl|"EAST"}}
* {{hl|"WEST"}}
* {{hl|"GUER"}}
* {{hl|"CIV"}}
* {{hl|"LOGIC"}}
* {{hl|"ANY"}}
* {{GVI|arma3|1.68|size= 0.75}} {{hl|"ANYPLAYER"}}
}}
}}
{{!}}
{{Columns|3|
* {{hl|"ALPHA"}}
* {{hl|"BRAVO"}}
* {{hl|"CHARLIE"}}
* {{hl|"DELTA"}}
* {{hl|"ECHO"}}
* {{hl|"FOXTROT"}}
* {{hl|"GOLF"}}
* {{hl|"HOTEL"}}
* {{hl|"INDIA"}}
* {{hl|"JULIET"}}
}}
{{!}}
{{Columns|3|
* {{hl|"STATIC"}}
* {{hl|"VEHICLE"}}
* {{hl|"GROUP"}}
* {{hl|"LEADER"}}
* {{hl|"MEMBER"}}
}}
{{!}}
* {{hl|"WEST SEIZED"}}
* {{hl|"EAST SEIZED"}}
* {{hl|"GUER SEIZED"}}
{{!}}}


<h3 style="display:none">Notes</h3>
|p3= type: [[String]] - how trigger is it activated. Can be:
<dl class="command_description">
{{{!}} class="wikitable valign-top"
<!-- Note Section BEGIN -->
! Presence
<!-- Note Section END -->
! Detection
</dl>
{{!}}-
{{!}}
* {{hl|"PRESENT"}}
* {{hl|"NOT PRESENT"}}
{{!}}
* {{hl|"WEST D"}}
* {{hl|"EAST D"}}
* {{hl|"GUER D"}}
* {{hl|"CIV D"}}
{{!}}}


<h3 style="display:none">Bottom Section</h3>
|p4= repeating: [[Boolean]] - activation can happen repeatedly
[[Category:Scripting Commands|SETTRIGGERACTIVATION]]
 
[[Category:Scripting Commands OFP Elite |SETTRIGGERACTIVATION]]
|r1= [[Nothing]]
[[Category:Scripting Commands ArmA|SETTRIGGERACTIVATION]]
 
[[Category:Command_Group:_Activators|{{uc:{{PAGENAME}}}}]]
|x1= <sqf>_trigger setTriggerActivation ["WEST", "EAST D", true];</sqf>
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
|mp= Activation changes are local.
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
|seealso= [[triggerActivation]] [[triggerActivated]] [[createTrigger]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerTimeout]] [[setTriggerType]] [[triggerAttachVehicle]] [[triggerAttachObject]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]]
}}

Latest revision as of 14:30, 12 March 2024

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.
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 Radio Object Status
  • "EAST"
  • "WEST"
  • "GUER"
  • "CIV"
  • "LOGIC"
  • "ANY"
  • Arma 3 logo black.png1.68 "ANYPLAYER"
  • "ALPHA"
  • "BRAVO"
  • "CHARLIE"
  • "DELTA"
  • "ECHO"
  • "FOXTROT"
  • "GOLF"
  • "HOTEL"
  • "INDIA"
  • "JULIET"
  • "STATIC"
  • "VEHICLE"
  • "GROUP"
  • "LEADER"
  • "MEMBER"
  • "WEST SEIZED"
  • "EAST SEIZED"
  • "GUER SEIZED"
type: String - how trigger is it activated. Can be:
Presence Detection
  • "PRESENT"
  • "NOT PRESENT"
  • "WEST D"
  • "EAST D"
  • "GUER D"
  • "CIV D"
repeating: Boolean - activation can happen repeatedly
Return Value:
Nothing

Examples

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

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 or on the Forums.
Only post proven facts here! Add Note