Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitInVehicle

Last wiki revision 2022-07-27

Checks whether a specified unit is within an vehicle. inVehicle = UnitInVehicle(unit)

  • unit: : UnitId
  • inVehicle:

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.

Source

https://warcraft.wiki.gg/wiki/API_UnitInVehicle · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.