Returns whether a unit is currently riding a flight path (taxi). Valid for any unit in the player's area of interest, but generally useful only for player -- taxi flights move quickly, so a taxi-riding unit visible to the player will not remain visible for very long.


See also Unit functions, Taxi/Flight functions.

Signature:

onTaxi = UnitOnTaxi("unit")

Arguments:

  • unit - A unit to query (string, unitID)

Returns:

  • onTaxi - 1 if the unit is on a taxi; otherwise nil (1nil)