triggerAttachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "{{ExternalLink|" to "{{Link|")
 
(43 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


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


|1.00|Game version=
|game2= arma1
|version2= 1.00


|gr1= Triggers |GROUP1=
|game3= arma2
____________________________________________________________________________________________
|version3= 1.00


| Assigns a static object to the trigger. The activation source is changed to "STATIC". |DESCRIPTION=
|game4= arma2oa
____________________________________________________________________________________________
|version4= 1.50


| triggerName [[triggerAttachObject]] objectId |SYNTAX=
|game5= tkoh
|version5= 1.00


|p1= triggerName: [[Object]] |PARAMETER1=
|game6= arma3
|version6= 0.50


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


| [[Nothing]] |RETURNVALUE=
|descr= Assigns a static object to the trigger. The activation source is changed to "STATIC".
____________________________________________________________________________________________
 
|x1= <code>_trigger [[triggerAttachObject]] 1234;</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[attachObject]], [[attachTo]], [[attachedObjects]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[lightAttachObject]], [[triggerAttachVehicle]], [[attachedObject]], [[triggerAttachedVehicle]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]] |SEEALSO=
|s1= triggerName [[triggerAttachObject]] objectId
}}
 
|p1= triggerName: [[Object]]


<h3 style="display:none">Notes</h3>
|p2= objectId: [[Number]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on October 31, 2013
|r1= [[Nothing]]
<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.


<!-- Note Section END -->
|x1= <sqf>_trigger triggerAttachObject 1234;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[attachObject]] [[attachTo]] [[attachedObjects]] [[attachedTo]] [[waypointAttachVehicle]] [[waypointAttachedVehicle]] [[lightAttachObject]] [[triggerAttachVehicle]] [[attachedObject]] [[triggerAttachedVehicle]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]]
[[Category:Scripting Commands OFP Elite|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{Note
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|user= Killzone_Kid
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
|timestamp= 20131031215600
[[Category:Command Group: Activators|{{uc:{{PAGENAME}}}}]]
|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>
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.
}}

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.