triggerAttachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
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|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|gr1= Triggers |GROUP1=
|gr1= Triggers


| Assigns a static object to the trigger. The activation source is changed to "STATIC". |DESCRIPTION=
| Assigns a static object to the trigger. The activation source is changed to "STATIC".


| triggerName [[triggerAttachObject]] objectId |SYNTAX=
| triggerName [[triggerAttachObject]] objectId


|p1= triggerName: [[Object]] |PARAMETER1=
|p1= triggerName: [[Object]]


|p2= objectId: [[Number]] |PARAMETER2=
|p2= objectId: [[Number]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_trigger [[triggerAttachObject]] 1234;</code> |EXAMPLE1=
|x1= <code>_trigger [[triggerAttachObject]] 1234;</code>


| [[attachObject]], [[attachTo]], [[attachedObjects]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[lightAttachObject]], [[triggerAttachVehicle]], [[attachedObject]], [[triggerAttachedVehicle]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]] |SEEALSO=
| [[attachObject]], [[attachTo]], [[attachedObjects]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[lightAttachObject]], [[triggerAttachVehicle]], [[attachedObject]], [[triggerAttachedVehicle]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]]
}}
}}



Revision as of 12:25, 18 January 2021

Hover & click on the images for description

Description

Description:
Assigns a static object to the trigger. The activation source is changed to "STATIC".
Groups:
Triggers

Syntax

Syntax:
triggerName triggerAttachObject objectId
Parameters:
triggerName: Object
objectId: Number
Return Value:
Nothing

Examples

Example 1:
_trigger triggerAttachObject 1234;

Additional Information

See also:
attachObjectattachToattachedObjectsattachedTowaypointAttachVehiclewaypointAttachedVehiclelightAttachObjecttriggerAttachVehicleattachedObjecttriggerAttachedVehicletriggerIntervalsetTriggerIntervalenableSimulationsimulationEnabled

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

Posted on October 31, 2013
Killzone_Kid
This command doesn't quite work in Arma 3 [1]

Further investigation reveals that objectId param for this command is some kind of map id and not the id you can see in the editor. This map id could be seen in multiplayer when looking at netId of the static objects, for example "1:-23984219837", the -23984219837 would be the objectId. Unfortunately it still doesn't work.