TASK HELI MISSION

From GTAMods Wiki
Jump to navigation Jump to search
TASK_HELI_MISSION
Number of parameters: 13
Parameter #TypeDescription
1.IntegerChar (pilot) Handle
2.IntegerHelicopter Handle
3.IntegerUnknown (Appears to be "0")
4.IntegerUnknown role (Appears to be the Handle of the local Player OR to be "0")
5.IntegerDestination X
6.IntegerDestination Y
7.IntegerDestination Z
8.IntegerUnknown (Values in sco are from 0 to 19)
9.floatSpeed
10.IntegerUnknown (Appears to be from "0" to "30")
11.floatUnknown (often set to "-1",it haves sometime values up to 90.0f)
12.IntegerUnknown (sometime set to "-1", it seems to have a role regarding altitude)
13.IntegerUnknown (sometime set to "-1")
Return value:
TypeDescription
None

This function seems to act as a 'Flight_To'. You can use it to set the altitude of the waypoint.

To be confirmed : p4 will specify if Destination is absolute or relative to p4 character position.