SetVehicleAngularVelocity: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetVehicleAngularVelocity(vehicle, x, y, z [, reset])}} {{FuncParameters}} {{FuncParam|vehicle|__E..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the vehicle's angular (rotational) velocity.}} | ||
{{FuncSyntax|SetVehicleAngularVelocity(vehicle, x, y, z [, reset])}} | {{FuncSyntax|SetVehicleAngularVelocity(vehicle, x, y, z [, reset])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|vehicle| | {{FuncParam|vehicle|The vehicle identifier.}} | ||
{{FuncParam|x| | {{FuncParam|x|The X axis velocity}} | ||
{{FuncParam|y| | {{FuncParam|y|The Y axis velocity}} | ||
{{FuncParam|z | | {{FuncParam|z|The Z axis velocity}} | ||
{{FuncParamOptional|reset| | {{FuncParamOptional|reset|'''true''' to reset the angular velocity, default: '''false'''}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns '''true'''.}} | ||
== Example == | == Example == | ||
Line 18: | Line 18: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{VehicleFunctions}} |
Revision as of 19:31, 30 August 2020
Description
Set the vehicle's angular (rotational) velocity.
Syntax
SetVehicleAngularVelocity(vehicle, x, y, z [, reset])
Parameters
- vehicle
The vehicle identifier. - x
The X axis velocity - y
The Y axis velocity - z
The Z axis velocity - reset (optional)
true to reset the angular velocity, default: false
Return Value
- This function returns true.
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