attachObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) 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 00:18, 17 January 2021
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