Arma 3 Scripting

Command in Object Manipulation

attachedObjects

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns a list of objects attached to the given object.

Syntax

attachedObjects obj

Parameters:

Returns: 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";
};

See also

attachObject · attachTo · attachedTo · waypointAttachVehicle · waypointAttachedVehicle · lightAttachObject · triggerAttachVehicle · attachedObject · detach