<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AtaskVehicleHeliProtect</id>
	<title>Player::taskVehicleHeliProtect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AtaskVehicleHeliProtect"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::taskVehicleHeliProtect&amp;action=history"/>
	<updated>2026-06-05T07:23:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Player::taskVehicleHeliProtect&amp;diff=3684&amp;oldid=prev</id>
		<title>Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::taskVehicleHeliProtect&amp;diff=3684&amp;oldid=prev"/>
		<updated>2017-05-06T23:39:46Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;pilot, vehicle and altitude are rather self-explanatory.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;p4: is unused variable in the function.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;entityToFollow: you can provide a Vehicle entity or a Ped entity, the heli will protect them.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;#039;targetSpeed&amp;#039;:  The pilot will dip the nose AS MUCH AS POSSIBLE so as to reach this value AS FAST AS POSSIBLE.  As such, you&amp;#039;ll want to modulate it as opposed to calling it via a hard-wired, constant #.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;#039;radius&amp;#039; isn&amp;#039;t just &amp;#039;stop within radius of X of target&amp;#039; like with ground vehicles.  In this case, the pilot will fly an entire circle around &amp;#039;radius&amp;#039; and continue to do so.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;NOT CONFIRMED:  p7 appears to be a FlyingStyle enum.  Still investigating it as of this writing, but playing around with values here appears to result in different -behavior- as opposed to offsetting coordinates, altitude, target speed, etc.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;NOTE: If the pilot finds enemies, it will engage them until it kills them, but will return to protect the ped/vehicle given shortly thereafter.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;player.taskVehicleHeliProtect(vehicle, entityToFollow, targetSpeed, p4, radius, altitude, p7);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;vehicle:&amp;#039;&amp;#039;&amp;#039; Vehicle handle or object&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;entityToFollow:&amp;#039;&amp;#039;&amp;#039; Entity handle or object&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;targetSpeed:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p4:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;radius:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;altitude:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p7:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Player_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Marty uploader</name></author>
	</entry>
</feed>