GetHelicopterRotorSpeed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Retrieves the speed at which the rotor of a helicopter rotates. This is 0 when the helicopter is parked, and about 0.2 when it is fully spun up. ==Syntax== <...)
 
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
Retrieves the speed at which the rotor of a helicopter rotates. This is 0 when the helicopter is parked, and about 0.2 when it is fully spun up.
Retrieves the speed at which the rotor of a helicopter rotates.


==Syntax==
==Syntax==
Line 12: Line 12:


===Returns===
===Returns===
Returns the rotor speed if successful, ''false'' otherwise (an invalid element or a vehicle element that is not a helicopter was passed).
Returns the rotor speed if successful. This is 0 when the helicopter is parked, and about 0.2 when it is fully spun up. Returns ''false'' in case of failure (an invalid element or a vehicle element that is not a helicopter was passed).


==See Also==
==See Also==
{{Client vehicle functions}}
{{Client vehicle functions}}

Revision as of 16:56, 9 June 2008

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

Syntax

float getHelicopterRotorSpeed ( vehicle heli )

Required Arguments

  • heli: the helicopter element to change 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. Returns false in case of failure (an invalid element or a vehicle element that is not a helicopter was passed).

See Also