- Documentation
- Server functions
- setVehicleRotorSpeed
Function
setVehicleRotorSpeed
Stores the rotation speed of a helicopter rotor or a plane propeller.
Syntax
bool setVehicleRotorSpeed(vehicle vehicle, float value)Arguments
vehiclevehicle- A helicopter or plane.
valuefloat- Speed -10..10.
Returns
true on success.
Example
local heli = createVehicle(487, 1765, -2290, 14)
setVehicleRotorSpeed(heli, 0.2)
Notes
State for scripts. The rotor in the game spins according to the engine; setting it by script does not change it yet.