SetHelicopterRotorSpeed

From Multi Theft Auto: Wiki
Revision as of 16:54, 9 June 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Sets the rotor speed of a helicopter. ==Syntax== <syntaxhighlight lang="lua"> bool setHelicopterRotorSpeed ( vehicle heli, float speed ) </syntaxhighlight> ===Required Arguments=== *''...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the rotor speed of a helicopter.

Syntax

bool setHelicopterRotorSpeed ( vehicle heli, float speed )

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