Method PlayerBotAI:IsInVehicle [-] [+]

Returns true if the bot is on a vehicle matching every requested capability.

Synopsis

isInVehicle = PlayerBotAI:IsInVehicle( canControl )
isInVehicle = PlayerBotAI:IsInVehicle( canControl, canCast )
isInVehicle = PlayerBotAI:IsInVehicle( canControl, canCast, canAttack )
isInVehicle = PlayerBotAI:IsInVehicle( canControl, canCast, canAttack, canTurn )
isInVehicle = PlayerBotAI:IsInVehicle( canControl, canCast, canAttack, canTurn, fixed )

Arguments

boolean canControl (false)
See method description.
boolean canCast (false)
See method description.
boolean canAttack (false)
See method description.
boolean canTurn (false)
See method description.
boolean fixed (false)
See method description.

Returns

boolean isInVehicle
See method description.