Player::taskHeliMission

From RAGE Multiplayer Wiki


Client-Side
Function

 JavaScript




JavaScript Syntax


Mission Types

* MISSION_NONE = 0,               // 0
* MISSION_CRUISE,                 // 1
* MISSION_RAM,                    // 2
* MISSION_BLOCK,                  // 3
* MISSION_GOTO,                   // 4
* MISSION_STOP,                   // 5
* MISSION_ATTACK,                 // 6
* MISSION_FOLLOW,                 // 7
* MISSION_FLEE,                   // 8
* MISSION_CIRCLE,                 // 9
* MISSION_ESCORT_LEFT,            // 10
* MISSION_ESCORT_RIGHT,           // 11
* MISSION_ESCORT_REAR,            // 12
* MISSION_ESCORT_FRONT,           // 13
* MISSION_GOTO_RACING,            // 14
* MISSION_FOLLOW_RECORDING,       // 15
* MISSION_POLICE_BEHAVIOUR,       // 16
* MISSION_PARK_PERPENDICULAR,     // 17
* MISSION_PARK_PARALLEL,          // 18
* MISSION_LAND,                   // 19
* MISSION_LAND_AND_WAIT,          // 20
* MISSION_CRASH,                  // 21
* MISSION_PULL_OVER,               // 22
* MISSION_PROTECT					// 23

Flags

NONE = 0
AttainRequestedOrientation = 1
DontModifyOrientation = 2
DontModifyPitch = 4
DontModifyThrottle = 8
DontModifyRoll = 16
LandOnArrival = 32
DontDoAvoidance = 64
StartEngineImmediately = 128
ForceHeightMapAvoidance = 256
HEIGHTMAPONLYAVOIDANCE = 320
DontClampProbesToDestination = 512
EnableTimeslicingWhenPossible = 1024
CircleOppositeDirection = 2048
MaintainHeightAboveTerrain = 4096
IgnoreHiddenEntitiesDuringLand = 8192
DisableAllHeightMapAvoidance = 16384

Required Arguments

  • vehicle: Vehicle handle
  • pedToFollow: Ped handle to follow
  • posX: float
  • posY: float
  • posZ: float
  • mission: int
  • cruisespeed: float
  • radius: float
  • heliOrientation: float
  • flightHeight: int
  • minHeightAboveGround: int
  • slowDownDistance: float
  • flag: int

Return value

  • Undefined

Syntax

entity.taskHeliMission(vehicle, targetPed, posX, posY, posZ, mission, cruisespeed, radius, heliOrientation, flightHeight, minHeightAboveGround, slowDownDistance, flag);

Example

// Makes the helicopter pilot land on destination (X: 2113.1481, Y: 4799.7558, Z: 41.1516)
heliPed.taskHeliMission(heli.handle, 0, 0, 2113.1481, 4799.7558, 41.1516, 20, 1.0, 5, -1.0, 10, 0, 5.0, 32);



See also