Vehicle::velocity: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
This property using for getting or setting vehicle velocity.
This property using for getting vehicle velocity.


'''Note: this property is read-only.'''
==Getter==
* '''<span style="color:#008017">Vector3</span>'''
== Example ==
== Example ==
<source lang="javascript">
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
let velocity = vehicle.velocity
let velocity = vehicle.velocity
console.log(velocity.x, velocity.y, velocity.z)
console.log(velocity.x, velocity.y, velocity.z)
</source>
</syntaxhighlight>
</div>
==See Also==
{{Vehicle_block}}

Revision as of 15:31, 7 September 2017

This property using for getting vehicle velocity.

Getter

  • Vector3

Example

Server-Side
let velocity = vehicle.velocity
console.log(velocity.x, velocity.y, velocity.z)

See Also

Template:Vehicle block