triggerAttachObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "{{ExternalLink|" to "{{Link|") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_trigger triggerAttachObject 1234;</sqf> | ||
|seealso= [[attachObject]] [[attachTo]] [[attachedObjects]] [[attachedTo]] [[waypointAttachVehicle]] [[waypointAttachedVehicle]] [[lightAttachObject]] [[triggerAttachVehicle]] [[attachedObject]] [[triggerAttachedVehicle]] [[triggerInterval]] [[setTriggerInterval]] | |seealso= [[attachObject]] [[attachTo]] [[attachedObjects]] [[attachedTo]] [[waypointAttachVehicle]] [[waypointAttachedVehicle]] [[lightAttachObject]] [[triggerAttachVehicle]] [[attachedObject]] [[triggerAttachedVehicle]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]] | ||
}} | }} | ||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20131031215600 | |||
|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. | |||
}} | |||
Further | |||
Latest revision as of 16:24, 4 January 2023
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
- 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.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Triggers