Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia

Checks whether a specified unit is within an vehicle.

inVehicle = UnitInVehicle(unit)

Arguments[]

unit
string : UnitId

Returns[]

inVehicle
boolean

Example[]

 if UnitInVehicle("target") then
   SendChatMessage("My Target is in a vehicle.", "SAY");
 else
   SendChatMessage("My Target is not in a vehicle.", "SAY");
 end

Result[]

Says "My Target is in a vehicle." if the target is in a vehicle, "My Target is not in a vehicle." otherwise.