attachedTo obj

Operand types

obj: Object

Type of returned value

Description

Returns the object it is attached to.
Returns objNull if not attached to anything.

obj:
Object - child object (as in object that is attached to something)

Return value is the Object that the child object is attached to.

Used In

Arma3

Example

loon1 attachTo [(_tanks select (random _tankCount))];
while {alive (attachedTo loon1)} do {
sleep 1;
loon1 sideChat "Tank is OK.";
};


if (isNull attachedTo _obj1) then {hint "_obj1 is not attached to anything."};
Search OFPEC COMREF