Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
→ WoW API
Checks whether a specified unit is within an vehicle.
- the Unit to check
isTrue isTrue - returns 1 if the specified unit is in a vehicle, nil otherwise.
if UnitInVehicle("target") then SendChatMessage("My Target is in a vehicle.", "SAY"); else SendChatMessage("My Target is not in a vehicle.", "SAY"); end
Says "My Target is in a vehicle." if the target is in a vehicle, "My Target is not in a vehicle." otherwise.