attachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "")
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma |= Game name
| arma |Game name=


|1.08|= Game version
|1.08|Game version=


|arg= |= Arguments in MP
|arg= |Multiplayer Arguments=


|eff= |= Effects in MP
|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
| Attaches a location to the specified object. To detach a location, attach it to [[objNull]].|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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


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


}}
}}
Line 37: Line 41:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Locations|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Object Manipulation|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands Take On Helicopters|{{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