Vehicle::rotation: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
This property is being used to get or set vehicle rotation.
This property using for getting or setting vehicle rotation.


==Getter==
==Getter==
Line 9: Line 8:


== Example ==
== Example ==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
{{ServersideCode|
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<pre>
<syntaxhighlight lang="javascript">
let rotation = vehicle.rotation;
let rotation = vehicle.rotation;
vehicle.rotation = new mp.Vector3(0, 0, 90);
vehicle.rotation = new mp.Vector3(0, 0, 90);
console.log(vehicle.rotation.x, vehicle.rotation.y, vehicle.rotation.z);
console.log(vehicle.rotation.x, vehicle.rotation.y, vehicle.rotation.z);
</syntaxhighlight>
</pre>
</div>
}}


==See Also==
==See also==
{{Entity_block}}
{{Vehicle_definition}}

Latest revision as of 13:50, 24 May 2019