attachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "")
(24 intermediate revisions by 9 users not shown)
Line 1: Line 1:
attachObject
{{Command|Comments=
____________________________________________________________________________________________
 
| arma |Game name=
 
|1.08|Game version=
 
|arg= |Multiplayer Arguments=
 
|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]].|DESCRIPTION=
____________________________________________________________________________________________
 
| location '''attachObject''' object |SYNTAX=
 
|p1= location: [[Location]] |PARAMETER1=
|p2= object: [[Object]] |PARAMETER2=
 
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>myLocation [[attachObject]] [[player]];</code> |EXAMPLE1=
____________________________________________________________________________________________
 
| [[attachedObject]], [[createLocation]] |SEEALSO=
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[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

-wrong parameter ("Arma") defined!-1.08
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