attachObject: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "") |
||
(20 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma | | | arma |Game name= | ||
|1.08| | |1.08|Game version= | ||
|arg= |= | |arg= |Multiplayer Arguments= | ||
|eff= |= | |eff= |Multiplayer Effects= | ||
|gr1= Object Manipulation |GROUP1= | |||
|gr2= Locations |GROUP2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Attaches a location to the specified object. To detach a location, attach it to [[objNull]].|= | | Attaches a location to the specified object. To detach a location, attach it to [[objNull]].|DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | location '''attachObject''' object |SYNTAX= | ||
|p1= [[Location]] |= | |p1= location: [[Location]] |PARAMETER1= | ||
|p2= [[Object]] |= | |p2= object: [[Object]] |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>myLocation [[attachObject]] [[player]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[attachedObject]] |= | | [[attachedObject]], [[createLocation]] |SEEALSO= | ||
}} | }} | ||
Line 40: | Line 44: | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands | [[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]] | ||
[[Category: | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 16:14, 24 September 2020
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