Returns whether a unit is controlling another unit. Applies to Mind Control and similar cases as well as to players piloting vehicles.
See also Unit functions, Vehicle functions.
Signature:
isControlling
=
UnitIsControlling("unit")
Arguments:
unit
- A unit to query (string
, unitID)
Returns:
isControlling
- 1 if the unit is controlling another unit; otherwise nil (1nil
)