Player::taskPlaneLand: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 1: Line 1:
  Function.Call(Hash.TASK_PLANE_LAND, pilot, selectedAirplane, runwayStartPoint.X, runwayStartPoint.Y, runwayStartPoint.Z, runwayEndPoint.X, runwayEndPoint.Y, runwayEndPoint.Z);  
  Function.Call(Hash.TASK_PLANE_LAND, pilot, selectedAirplane, runwayStartPoint.X, runwayStartPoint.Y, runwayStartPoint.Z, runwayEndPoint.X, runwayEndPoint.Y, runwayEndPoint.Z);  
Using this you can task the ped to land (This will only task the ped to land the plane if already in air)
You need to turn the engines on manually because the ped will not
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.taskPlaneLand(plane, runwayStartX, runwayStartY, runwayStartZ, runwayEndX, runwayEndY, runwayEndZ);</syntaxhighlight>
<syntaxhighlight lang="javascript">player.taskPlaneLand(plane, runwayStartX, runwayStartY, runwayStartZ, runwayEndX, runwayEndY, runwayEndZ);</syntaxhighlight>
Line 14: Line 17:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
// This will task the ped to land in Sandy Shore airport
Ped.taskPlaneLand(VehicleOfPed.handle, 1060.688232421875, 3077.2314453125, 40.273826599121094, 1667.779541015625, 3240.7724609375, 39.652400970458984);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==

Revision as of 10:54, 17 May 2020

Function.Call(Hash.TASK_PLANE_LAND, pilot, selectedAirplane, runwayStartPoint.X, runwayStartPoint.Y, runwayStartPoint.Z, runwayEndPoint.X, runwayEndPoint.Y, runwayEndPoint.Z); 

Using this you can task the ped to land (This will only task the ped to land the plane if already in air) You need to turn the engines on manually because the ped will not

Syntax

player.taskPlaneLand(plane, runwayStartX, runwayStartY, runwayStartZ, runwayEndX, runwayEndY, runwayEndZ);

Required Arguments

  • plane: Vehicle handle or object
  • runwayStartX: float
  • runwayStartY: float
  • runwayStartZ: float
  • runwayEndX: float
  • runwayEndY: float
  • runwayEndZ: float

Return value

  • Undefined

Example

// This will task the ped to land in Sandy Shore airport
Ped.taskPlaneLand(VehicleOfPed.handle, 1060.688232421875, 3077.2314453125, 40.273826599121094, 1667.779541015625, 3240.7724609375, 39.652400970458984);

See also