triggerAttachVehicle: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|arg= global | |arg= global | ||
|eff= local | |eff= local | ||
|gr1= Triggers | |gr1= Triggers | ||
|Specifies the entity which will activate the selected trigger.<br> | |Specifies the entity which will activate the selected trigger.<br> | ||
Line 13: | Line 13: | ||
*If the activation source is '''"VEHICLE"''', '''"GROUP"''', '''"LEADER"''' or '''"MEMBER"''', it is changed to '''"NONE"'''. | *If the activation source is '''"VEHICLE"''', '''"GROUP"''', '''"LEADER"''' or '''"MEMBER"''', it is changed to '''"NONE"'''. | ||
*If '''[vehicle]''' is given, the trigger is coupled to the vehicle or its group. | *If '''[vehicle]''' is given, the trigger is coupled to the vehicle or its group. | ||
*When the source is '''"GROUP"''', '''"LEADER"''' or '''"MEMBER"''', it is coupled to the group, otherwise it is coupled to the vehicle and the source is changed to '''"VEHICLE"'''. | *When the source is '''"GROUP"''', '''"LEADER"''' or '''"MEMBER"''', it is coupled to the group, otherwise it is coupled to the vehicle and the source is changed to '''"VEHICLE"'''. | ||
| triggerName '''triggerAttachVehicle''' objects | | triggerName '''triggerAttachVehicle''' objects | ||
|p1= triggerName: [[Object]] | |p1= triggerName: [[Object]] | ||
|p2= objects: [[Array]] | |p2= objects: [[Array]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>trigger '''triggerAttachVehicle''' [<nowiki/>[[player]]<nowiki>];</nowiki></code> | |x1= <code>trigger '''triggerAttachVehicle''' [<nowiki/>[[player]]<nowiki>];</nowiki></code> | ||
|x2= <code>trigger '''triggerAttachVehicle''' <nowiki>[]</nowiki>;</code> | |x2= <code>trigger '''triggerAttachVehicle''' <nowiki>[]</nowiki>;</code> | ||
| [[attachObject]], [[attachTo]], [[attachedObjects]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[lightAttachObject]], [[attachedObject]], [[triggerAttachedVehicle]], [[triggerAttachObject]], [[triggerInterval]], [[setTriggerInterval]] | | [[attachObject]], [[attachTo]], [[attachedObjects]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[lightAttachObject]], [[attachedObject]], [[triggerAttachedVehicle]], [[triggerAttachObject]], [[triggerInterval]], [[setTriggerInterval]] | ||
}} | }} |
Revision as of 11:26, 18 January 2021
Description
- Description:
- Specifies the entity which will activate the selected trigger.
- If [] is given, the trigger is decoupled from the assigned vehicle (example 2).
- If the activation source is "VEHICLE", "GROUP", "LEADER" or "MEMBER", it is changed to "NONE".
- If [vehicle] is given, the trigger is coupled to the vehicle or its group.
- When the source is "GROUP", "LEADER" or "MEMBER", it is coupled to the group, otherwise it is coupled to the vehicle and the source is changed to "VEHICLE".
- Groups:
- Triggers
Syntax
- Syntax:
- triggerName triggerAttachVehicle objects
- Parameters:
- triggerName: Object
- objects: Array
- Return Value:
- Nothing
Examples
- Example 1:
trigger triggerAttachVehicle [player];
- Example 2:
trigger triggerAttachVehicle [];
Additional Information
- See also:
- attachObjectattachToattachedObjectsattachedTowaypointAttachVehiclewaypointAttachedVehiclelightAttachObjectattachedObjecttriggerAttachedVehicletriggerAttachObjecttriggerIntervalsetTriggerInterval
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Triggers
- Scripting Commands: Local Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands