GetHelicopterRotorSpeed: Difference between revisions

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



Revision as of 02:47, 27 October 2015

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

Before submitting check out Editing Guidelines Script Examples.

Retrieves the speed at which the rotor of a helicopter rotates.

Syntax

float getHelicopterRotorSpeed ( vehicle heli )

OOP Syntax Help! I don't understand this!

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


Required Arguments

  • heli: the helicopter element to get the rotor speed of.

Returns

Returns the rotor speed if successful. This is 0 when the helicopter is parked, and about 0.2 when it is fully spun up. It can be negative if the rotor rotates counter-clockwise. Returns false in case of failure (an invalid element or a vehicle element that is not a helicopter was passed).

See Also