<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RU/getHelicopterRotorSpeed?action=history&amp;feed=atom</id>
	<title>RU/getHelicopterRotorSpeed - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RU/getHelicopterRotorSpeed?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/getHelicopterRotorSpeed&amp;action=history"/>
	<updated>2026-04-08T19:39:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/getHelicopterRotorSpeed&amp;diff=50778&amp;oldid=prev</id>
		<title>Fabervox: Created page with &quot;en:getHelicopterRotorSpeed __NOTOC__ {{Client function}} Retrieves the speed at which the rotor of a helicopter rotates.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; float get...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/getHelicopterRotorSpeed&amp;diff=50778&amp;oldid=prev"/>
		<updated>2017-04-22T20:09:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;http://wiki.multitheftauto.com/index.php?title=getHelicopterRotorSpeed&quot; class=&quot;extiw&quot; title=&quot;en:getHelicopterRotorSpeed&quot;&gt;en:getHelicopterRotorSpeed&lt;/a&gt; __NOTOC__ {{Client function}} Retrieves the speed at which the rotor of a helicopter rotates.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float get...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[en:getHelicopterRotorSpeed]]&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Retrieves the speed at which the rotor of a helicopter rotates.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getHelicopterRotorSpeed ( vehicle heli )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[vehicle]]:getHelicopterRotorSpeed|helicopterRotorSpeed|setHelicopterRotorSpeed}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''heli:''' the helicopter element to get the rotor speed of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
==Примеры==&lt;br /&gt;
В этом примере, при вводе команды ''grs'' пилотом или пассажиром вертолета, мы получаем скорость вращения лопастей и выводим в чат.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function rotorSpeed() &lt;br /&gt;
    local theVehicle = getPedOccupiedVehicle (localPlayer)&lt;br /&gt;
    if theVehicle then &lt;br /&gt;
      local controller = getVehicleController (theVehicle)&lt;br /&gt;
        if controller == localPlayer then &lt;br /&gt;
          local vehecileType = getVehicleType(theVehicle)&lt;br /&gt;
	  if vehecileType == &amp;quot;Helicopter&amp;quot; then &lt;br /&gt;
             outputChatBox(&amp;quot;You helicopter roto speed &amp;quot;..math.ceil(getHelicopterRotorSpeed(theVehicle)),0,255,0)&lt;br /&gt;
          end &lt;br /&gt;
       end &lt;br /&gt;
   end &lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;grs&amp;quot;,rotorSpeed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/Client vehicle functions}}&lt;br /&gt;
[[en:getHelicopterRotorSpeed]]&lt;/div&gt;</summary>
		<author><name>Fabervox</name></author>
	</entry>
</feed>