Warning: file_put_contents(/ff_dc327a2b8ad0a8d0d10fb3bae5e88bc1696a7dc0918d52df.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
attachedTo - OFPEC Scripting Command Reference | OFPEC The Editing Center

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."};

Advertisement