triggerAttachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dt class="note">'''\[\[.*\]\]'''" to "<dt class="note">$1")
m (Fix username deletion mistake)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


| [[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]] |SEEALSO=
}}
}}


Line 31: Line 30:


<dd class="notedate">Posted on October 31, 2013
<dd class="notedate">Posted on October 31, 2013
<dt class="note">[[]]<dd class="note">This command doesn't quite work in Arma 3 [http://feedback.arma3.com/view.php?id=15750]<br><br>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]
<dd class="note">This command doesn't quite work in Arma 3 [http://feedback.arma3.com/view.php?id=15750]<br><br>
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.
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.


<!-- Note Section END -->
<!-- Note Section END -->
Line 39: Line 38:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|TRIGGERATTACHOBJECT]]
[[Category:Scripting Commands OFP Elite|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP Elite |TRIGGERATTACHOBJECT]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|TRIGGERATTACHOBJECT]]
[[Category:Command_Group:_Activators|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Activators|{{uc:{{PAGENAME}}}}]]

Revision as of 19:44, 19 May 2020

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

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

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.

Bottom Section