triggerAttachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
m (Text replacement - "{{ExternalLink|" to "{{Link|")
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= ofpe
|version1= 1.00


|1.00
|game2= arma1
|version2= 1.00
 
|game3= arma2
|version3= 1.00
 
|game4= arma2oa
|version4= 1.50
 
|game5= tkoh
|version5= 1.00
 
|game6= arma3
|version6= 0.50


|gr1= Triggers
|gr1= Triggers


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


| triggerName [[triggerAttachObject]] objectId
|s1= triggerName [[triggerAttachObject]] objectId


|p1= triggerName: [[Object]]
|p1= triggerName: [[Object]]
Line 15: Line 29:
|p2= objectId: [[Number]]
|p2= objectId: [[Number]]


| [[Nothing]]
|r1= [[Nothing]]
 
 
|x1= <code>_trigger [[triggerAttachObject]] 1234;</code>
|x1= <sqf>_trigger triggerAttachObject 1234;</sqf>


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


<dl class="command_description">
{{Note
<dt><dt>
|user= Killzone_Kid
<dd class="notedate">Posted on October 31, 2013</dd>
|timestamp= 20131031215600
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
|text= This command doesn't quite work in {{arma3}}: see {{Link|link= http://feedback.arma3.com/view.php?id=15750|text= this ticket}}<br><br>
<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.
 
}}
</dl>
 
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 16:24, 4 January 2023

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:
attachObject attachTo attachedObjects attachedTo waypointAttachVehicle waypointAttachedVehicle lightAttachObject triggerAttachVehicle attachedObject triggerAttachedVehicle 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
Killzone_Kid - c
Posted on Oct 31, 2013 - 21:56 (UTC)
This command doesn't quite work in Arma 3: see this ticket

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.