attachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.08|Game version=
|1.08


|arg= |Multiplayer Arguments=
|arg= |Multiplayer Arguments=
Line 9: Line 9:
|eff= |Multiplayer Effects=
|eff= |Multiplayer Effects=


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


|gr2= Locations |GROUP2=
|gr2= Locations


| 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]].


| location '''attachObject''' object |SYNTAX=
| location '''attachObject''' object


|p1= location: [[Location]] |PARAMETER1=
|p1= location: [[Location]]
|p2= object: [[Object]] |PARAMETER2=
|p2= object: [[Object]]


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


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


}}
}}

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

Bottom Section