Перейти к содержанию

Vehicle::setForwardSpeed

Материал из RAGE MP Wiki Archive
Версия от 23:49, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

SCALE: Setting the speed to 30 would result in a speed of roughly 60mph, according to speedometer.

Speed is in meters per second
You can convert meters/s to mph here:
http://www.calculateme.com/Speed/MetersperSecond/ToMilesperHour.htm

Syntax

<syntaxhighlight lang="javascript">vehicle.setForwardSpeed(speed);</syntaxhighlight>

Required Arguments

  • speed: float

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also