Wikia

WoWWiki

Watchlist Recent changes

API UnitInVehicle

Main Menue



Checks whether a specified unit is within an vehicle.

Contents

Arguments Edit

unit 
the Unit to check

Returns Edit

isTrue isTrue - returns 1 if the specified unit is in a vehicle, nil otherwise.

Example Edit

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

Result Edit

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

Pages on WoWWiki

95,753pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
58,025photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki