attachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - "\|seealso= ?\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Line 32: Line 32:
|x1= <code>myLocation [[attachObject]] [[player]];</code>
|x1= <code>myLocation [[attachObject]] [[player]];</code>


|seealso= [[attachedObject]], [[createLocation]]
|seealso= [[attachedObject]] [[createLocation]]
}}
}}

Revision as of 13:56, 20 January 2022

Hover & click on the images for description

Description

Description:
Attaches a location to the specified object. To detach a location, attach it to objNull.
Groups:
Object ManipulationLocations

Syntax

Syntax:
location attachObject object
Parameters:
location: Location
object: Object
Return Value:
Nothing

Examples

Example 1:
myLocation attachObject player;

Additional Information

See also:
attachedObject createLocation

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