Returns whether the player is in a vehicle. Used in the default UI to determine whether to show the "Leave Vehicle" button while controlling siege vehicles, turrets, and certain special mounts and quest entities.


See also Vehicle functions.

Signature:

canExit = CanExitVehicle()

Returns:

  • canExit - 1 if the player is in a vehicle and can exit; otherwise nil (1nil)