GetVehicleBoundingBox: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
An example can be found in the vdebug package by Voltaism: https://github.com/vugi99/onset-vdebug/blob/master/client/cl_vdebug.lua#L98 | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{VehicleFunctions}} | {{VehicleFunctions}} |
Latest revision as of 11:32, 1 September 2020
Description
Gets the local bounds of the vehicle.
Syntax
GetVehicleBoundingBox(vehicle)
Parameters
- vehicle
The vehicle identifier.
Return Value
- Returns 6 floats: MinX, MinY, MinZ, MaxX, MaxY, MaxZ
Min is the origin (pivot) minus the extent of the vehicle. Max is the origin (pivot) plus the extent of the vehicle.
Example
An example can be found in the vdebug package by Voltaism: https://github.com/vugi99/onset-vdebug/blob/master/client/cl_vdebug.lua#L98
See also
- CreateVehicle
- DestroyVehicle
- IsValidVehicle
- GetVehicleCount
- GetAllVehicles
- GetVehicleModel
- GetVehicleModelName
- SetVehicleRespawnParams
- IsVehicleStreamedIn
- GetStreamedVehiclesForPlayer
- GetStreamedVehicles
- SetVehicleLocation
- GetVehicleLocation
- SetVehicleRotation
- GetVehicleRotation
- SetVehicleHeading
- GetVehicleHeading
- SetVehicleHealth
- GetVehicleHealth
- SetVehicleLicensePlate
- GetVehicleVelocity
- GetVehicleDriver
- GetVehiclePassenger
- GetVehicleNumberOfSeats
- SetVehicleColor
- GetVehicleColor
- SetVehicleLinearVelocity
- SetVehicleAngularVelocity
- GetVehicleGear
- SetVehicleHoodRatio
- GetVehicleHoodRatio
- SetVehicleTrunkRatio
- GetVehicleTrunkRatio
- StartVehicleEngine
- StopVehicleEngine
- GetVehicleEngineState
- SetVehicleLightEnabled
- GetVehicleLightState
- SetVehicleDamage
- GetVehicleDamage
- AttachVehicleNitro