attachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 13: Line 12:


|gr2= Locations |GROUP2=
|gr2= Locations |GROUP2=
____________________________________________________________________________________________


| Attaches a location to the specified object. To detach a location, attach it to [[objNull]].|DESCRIPTION=
| Attaches a location to the specified object. To detach a location, attach it to [[objNull]].|DESCRIPTION=
____________________________________________________________________________________________


| location '''attachObject''' object |SYNTAX=
| location '''attachObject''' object |SYNTAX=
Line 24: Line 21:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>myLocation [[attachObject]] [[player]];</code> |EXAMPLE1=
|x1= <code>myLocation [[attachObject]] [[player]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[attachedObject]], [[createLocation]] |SEEALSO=
| [[attachedObject]], [[createLocation]] |SEEALSO=

Revision as of 01:18, 17 January 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

Notes

Bottom Section