Wikia

WoWWiki

API UnitInVehicle

Talk0
98,523pages on
this wiki

Checks whether a specified unit is within an vehicle.

Contents

Arguments

unit 
the Unit to check

Returns

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

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.

Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki