attachedObjects: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________


| Returns a list of objects attached to the given object. |DESCRIPTION=
| Returns a list of objects attached to the given object. |DESCRIPTION=
____________________________________________________________________________________________


| '''attachedObjects''' obj |SYNTAX=
| '''attachedObjects''' obj |SYNTAX=
Line 17: Line 14:


| [[Array]] of [[Object]]s attached to the given object|RETURNVALUE=
| [[Array]] of [[Object]]s attached to the given object|RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>{
|x1= <code>{
Line 26: Line 22:
   [[hint]] "There are no objects attached to player";
   [[hint]] "There are no objects attached to player";
};</code> |EXAMPLE2=
};</code> |EXAMPLE2=
____________________________________________________________________________________________


| [[attachObject]], [[attachTo]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[lightAttachObject]], [[triggerAttachVehicle]], [[attachedObject]], [[detach]] |SEEALSO=
| [[attachObject]], [[attachTo]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[lightAttachObject]], [[triggerAttachVehicle]], [[attachedObject]], [[detach]] |SEEALSO=

Revision as of 01:30, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns a list of objects attached to the given object.
Groups:
Object Manipulation

Syntax

Syntax:
attachedObjects obj
Parameters:
obj: Object - given object
Return Value:
Array of Objects attached to the given object

Examples

Example 1:
{ detach _x; } forEach attachedObjects player;
Example 2:
if (count attachedObjects player == 0) then { hint "There are no objects attached to player"; };

Additional Information

See also:
attachObjectattachToattachedTowaypointAttachVehiclewaypointAttachedVehiclelightAttachObjecttriggerAttachVehicleattachedObjectdetach

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