Entity::getSpeed

From RAGE Multiplayer Wiki
Revision as of 23:42, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

result is in meters per second

------------------------------------------------------------
So would the conversion to mph and km/h, be along the lines of this.

float speed = GET_ENTITY_SPEED(veh);
float kmh = (speed * 3.6);
float mph = (speed * 2.236936);
------------------------------------------------------------

Syntax

entity.getSpeed();

Required Arguments

Return value

  • float

Example

// todo

See also