GetVehicleRotation: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 11: Line 11:


== Example ==
== Example ==
<syntaxhighlting=Lua>
<syntaxhighlight lang="Lua">
local rx, ry, rz = GetVehicleRotation(vehicle)
local rx, ry, rz = GetVehicleRotation(vehicle)
-- Reset pitch and roll, leave yaw alone
-- Reset pitch and roll, leave yaw alone
SetVehicleRotation(vehicle, 0.0, ry, 0.0)
SetVehicleRotation(vehicle, 0.0, ry, 0.0)
</syntaxhighlighting>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{VehicleFunctions}}
{{VehicleFunctions}}

Revision as of 07:15, 16 November 2019