NoNameSet Posted September 17, 2017 Share Posted September 17, 2017 (edited) I was looking through the natives a while back and saw: AI::TASK_PLANE_MISSION Hashes: 0x23703CD154E83B88 0x1D007E65 void TASK_PLANE_MISSION(Ped pilot, Vehicle aircraft, Vehicle targetVehicle, Ped targetPed, float destinationX, float destinationY, float destinationZ, int missionFlag, float angularDrag, float unk, float targetHeading, float maxZ, float minZ)// 0x23703CD154E83B88 0x1D007E65 my question is how do I get the ped in the plane to land it? yes I have used: AI::TASK_PLANE_LAND Hashes: 0xBF19721FA34D32C0 0x5F7E23EAvoid TASK_PLANE_LAND(Ped pilot, Vehicle plane, float runwayStartX, float runwayStartY, float runwayStartZ, float runwayEndX, float runwayEndY, float runwayEndZ)// 0xBF19721FA34D32C0 0x5F7E23EA Function.Call(Hash.TASK_PLANE_LAND, pilot, selectedAirplane, runwayStartPoint.X, runwayStartPoint.Y, runwayStartPoint.Z, runwayEndPoint.X, runwayEndPoint.Y, runwayEndPoint.Z); I used both natives with these values: NativeFunction.CallByName<uint>("TASK_PLANE_LAND", Pilot, Airplane, -1590.22693f, -2679.10132f, 14.5475368f, 1518.075f, 3116.2063f, 41.1344452f);NativeFunction.CallByName<uint>("TASK_PLANE_MISSION", Pilot, Airplane, 0, 0, 1518.075f, 3116.2063f, 41.1344452f, 0, 100f, 0f, 331.158356f, 200f, 400f); what the ped does: takes of at x,y,z then goes to the end destination and circles around it. I know this is possibly because of the missiontype but if I set it to none TASK_PLANE_LAND will take over and just start from x,y,z and won't even bother to go up... thanks for any help. Edited September 17, 2017 by NoNameSet Link to comment Share on other sites More sharing options...
NoNameSet Posted September 19, 2017 Author Share Posted September 19, 2017 *knock knock* Link to comment Share on other sites More sharing options...
aimless Posted September 19, 2017 Share Posted September 19, 2017 As far as i can tell TASK_PLANE_LAND does not work. Use TASK_PLANE_MISSION to fly down the runnway and decrease hight. These are the settings i use.Function.Call(Hash.TASK_PLANE_MISSION, 0, plane, 0, 0, position.X, position.Y, position.Z, 4, 40.0f, 70.0f, -1.0f, 50.0f, 20.0f);// fly to coord use multiple times(positions) to line up with runnway Function.Call(Hash.TASK_PLANE_MISSION, 0, plane, 0, 0, position.X, position.Y, position.Z + 10.0f, 4, 30.0f, 10.0f, -1.0f, 20.0f, -50.0f);// start to land Function.Call(Hash.TASK_PLANE_MISSION, 0, plane, 0, 0, position.X, position.Y, position.Z + 2.0f, 4, 20.0f, 12.0f, -1.0f, 20.0f, -50.0f);// land Then use a drive task to taxi on runnway. NoNameSet 1 Link to comment Share on other sites More sharing options...
NoNameSet Posted September 20, 2017 Author Share Posted September 20, 2017 As far as i can tell TASK_PLANE_LAND does not work. Use TASK_PLANE_MISSION to fly down the runnway and decrease hight. These are the settings i use. Function.Call(Hash.TASK_PLANE_MISSION, 0, plane, 0, 0, position.X, position.Y, position.Z, 4, 40.0f, 70.0f, -1.0f, 50.0f, 20.0f);// fly to coord use multiple times(positions) to line up with runnway Function.Call(Hash.TASK_PLANE_MISSION, 0, plane, 0, 0, position.X, position.Y, position.Z + 10.0f, 4, 30.0f, 10.0f, -1.0f, 20.0f, -50.0f);// start to land Function.Call(Hash.TASK_PLANE_MISSION, 0, plane, 0, 0, position.X, position.Y, position.Z + 2.0f, 4, 20.0f, 12.0f, -1.0f, 20.0f, -50.0f);// land Then use a drive task to taxi on runnway. thanks, I'll try that in a few Link to comment Share on other sites More sharing options...