GetVehicleBoundingBox: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetVehicleBoundingBox(vehicle)}} {{FuncParameters}} {{FuncParam|vehicle|__EDIT_ME__}} {{FuncRetur..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Gets the local bounds of the vehicle.}} | ||
{{FuncSyntax|GetVehicleBoundingBox(vehicle)}} | {{FuncSyntax|GetVehicleBoundingBox(vehicle)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|vehicle| | {{FuncParam|vehicle|The vehicle identifier.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|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 == | == Example == | ||
Line 14: | Line 15: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{VehicleFunctions}} |
Revision as of 07:50, 5 March 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
__EDIT_ME__
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