attachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|(arg|eff|serverExec|mp|seealso)= " to "")
m (Text replacement - " " to " ")
Line 29: Line 29:


|r1= [[Nothing]]
|r1= [[Nothing]]
 
 
|x1= <code>myLocation [[attachObject]] [[player]];</code>
|x1= <code>myLocation [[attachObject]] [[player]];</code>


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

Revision as of 20:54, 10 June 2021

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:
attachedObjectcreateLocation

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