attachedTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
(clearer)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the object it is attached to.
| Returns object the given object is attached to or [[objNull]] if the given object is not attached to anything. |DESCRIPTION=
<br>Returns [[objNull]] if not attached to anything.
  |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''attachedTo''' object |SYNTAX=
| '''attachedTo''' obj |SYNTAX=


|p1= object: [[Object]] - child object |PARAMETER1=   
|p1= obj: [[Object]] - given object |PARAMETER1=   


| [[Object]] - parent object |RETURNVALUE=  
| [[Object]] - object the given object is attached to |RETURNVALUE=  





Revision as of 23:06, 12 June 2019

Hover & click on the images for description

Description

Description:
Returns object the given object is attached to or objNull if the given object is not attached to anything.
Groups:
Uncategorised

Syntax

Syntax:
attachedTo obj
Parameters:
obj: Object - given object
Return Value:
Object - object the given object is attached to

Examples

Example 1:
if (isNull attachedTo _obj1) then { hint "_obj1 is not attached to anything."; };

Additional Information

See also:
attachObjectattachToattachedObjectswaypointAttachVehiclewaypointAttachedVehiclelightAttachObjecttriggerAttachVehicleattachedObjectdetach

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