WoW:API UnitOnTaxi: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Updated to match the current API boilerplate.)
(The function requires an argument.)
Line 3: Line 3:


Returns 1 if unit is on a taxi, nil otherwise.
Returns 1 if unit is on a taxi, nil otherwise.
  onTaxi = UnitOnTaxi()
  onTaxi = UnitOnTaxi("unit")




== Arguments ==
== Arguments ==
:none
:;unit: String - the [[API_TYPE_UnitId|Unit ID]] to check.
 


== Returns ==
== Returns ==
:; onTaxi : [[Boolean]] - Whether the unit is on a taxi.
:; onTaxi : [[Boolean]] - Whether the unit is on a taxi.

Revision as of 02:37, 24 June 2008

WoW API < UnitOnTaxi


Returns 1 if unit is on a taxi, nil otherwise.

onTaxi = UnitOnTaxi("unit")


Arguments

unit
String - the Unit ID to check.

Returns

onTaxi
Boolean - Whether the unit is on a taxi.