SetHelicopterRotorSpeed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Added OOP syntax)
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{Needs_Example}}
Sets the rotor speed of a helicopter.
Sets the rotor speed of a helicopter.



Revision as of 02:48, 27 October 2015

Accessories-text-editor.png Script Example Missing Function SetHelicopterRotorSpeed needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

Sets the rotor speed of a helicopter.

Syntax

bool setHelicopterRotorSpeed ( vehicle heli, float speed )

OOP Syntax Help! I don't understand this!

Method: vehicle:setHelicopterRotorSpeed(...)
Variable: .helicopterRotorSpeed
Counterpart: getHelicopterRotorSpeed


Required Arguments

  • heli: the helicopter to adjust the rotor of.
  • speed: the new rotor speed. Usual values are 0 if the helicopter stands still, or 0.2 if the rotor is fully spun up. Higher values than normal will not affect the helicopter's handling. Negative values are allowed and will make the rotor spin in the opposite direction (pushing the helicopter down).

Returns

Returns true if successful, false otherwise.

See Also