Graphicscore 35 Posted May 19, 2015 Share Posted May 19, 2015 Hello my friends, Did anybody got the Task TASK_RAPPEL_FROM_HELI working ? I am currently trying to land a chopper on the ground(controlled by AI) but unfortunately it's not working, now I am trying to get out of this chopper safely. I tried the TASK_RAPPEL_FROM_HELI with the params given by the Native DB from Alexander Blade, if I use the TASK_RAPPEL_FROM_HELI on the Player, the player automatically ejects out of the chopper, directly, if I use it on a ped inside the Chopper my game crashed. Tried with FIB Peds and a Valkyrie as Helicopter. Is there anything I have to watch out for, like "no player" or "only ped x/y can do that" ? Regards, Link to post Share on other sites
Fireboyd78 382 Posted May 19, 2015 Share Posted May 19, 2015 (edited) You might have to make a call to AI::TASK_HELI_MISSION before it'll work properly. There's not a whole lot to go off of in the decompiled scripts, so it could be anything at this point.This subroutine might help? void sub_175bc6(Ped a_0, Vehicle a_1, auto a_2, Vector3 a_3) { v_8 = 1.0; v_9 = -1.0; v_A = -1.0; v_B = 10; v_C = 5.0; v_D = 0; v_E = v_B; if (GAMEPLAY::IS_BIT_SET(g_1870E1._f8966[a_2/*268*/]._fB5, 6)) { if ((l_4475._f2B5[a_2/*1*/] == 1) && (l_4475._f201[a_2/*1*/] < 5)) { v_E = SYSTEM::ROUND(g_1870E1._f8966[a_2/*268*/]._f70[l_4475._f201[a_2/*1*/]/*1*/]); v_B = 0; v_D = 4096; } else if (GAMEPLAY::GET_GROUND_Z_FOR_3D_COORD(a_3, &v_F)) { v_E = SYSTEM::ROUND(a_3._f2 - v_F); v_B = 0; v_D = 4096; } } if (!GAMEPLAY::IS_BIT_SET(l_F0C[sub_746f(a_2)/*1*/], sub_743e(a_2))) { AI::CLEAR_PED_TASKS(a_0); PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(a_0, 1); GAMEPLAY::SET_BIT(&l_F0C[sub_746f(a_2)/*1*/], sub_743e(a_2)); AI::TASK_HELI_MISSION(a_0, a_1, 0, 0, a_3, 4, v_8, v_9, v_A, v_B, v_E, v_C, v_D); } else if (sub_feadf(a_0, a_2, 0xb41f1a34, 0)) { AI::TASK_HELI_MISSION(a_0, a_1, 0, 0, a_3, 4, v_8, v_9, v_A, v_B, v_E, v_C, v_D); }} Edited May 19, 2015 by CarLuver69 Link to post Share on other sites
c39687 62 Posted May 19, 2015 Share Posted May 19, 2015 (edited) I would love to know how to make a ped land a heli too. In IV I tried to do the same but never succeeded. Also, I am trying to think of one time in the single player if a ped using AI landed a helicopter. I can't think of a time but I haven't played the story in a long time. It might be possible that there is no native for landing if the r* developers never needed a ped to land a helicopter. The only helicopters controlled by AI, that I can think of, are just police helis, and they never land. If you figure this out I would love to know too! good luck! Edited May 19, 2015 by c39687 Link to post Share on other sites
BenBaron 21 Posted May 19, 2015 Share Posted May 19, 2015 All I can say is, that they definitely do land...at least at Los Santos Airport there is one helicopter landing and taking off controlled by the AI. 1 Link to post Share on other sites
c39687 62 Posted May 19, 2015 Share Posted May 19, 2015 (edited) Ahh ok, I am not as familiar with the game than most. I usually am just standing outside Franklin's house testing scripts lol. Havent played campaign since I had it on PS3 when it first came out Edited May 19, 2015 by c39687 Link to post Share on other sites
Prof_Farnsworth 27 Posted May 19, 2015 Share Posted May 19, 2015 I would love to know how to make a ped land a heli too. In IV I tried to do the same but never succeeded. Also, I am trying to think of one time in the single player if a ped using AI landed a helicopter. I can't think of a time but I haven't played the story in a long time. It might be possible that there is no native for landing if the r* developers never needed a ped to land a helicopter. The only helicopters controlled by AI, that I can think of, are just police helis, and they never land. If you figure this out I would love to know too! good luck! I made them land in IV. I'll have a look and see what I can come up with. 1 Link to post Share on other sites
AgentWD40 16 Posted May 19, 2015 Share Posted May 19, 2015 (edited) gtav native void TASK_VEHICLE_DRIVE_TO_COORD(Ped pedHandle, Vehicle vehicleHandle, float x, float y, float z, float speed, Any p6, Hash vehicleModel,int drivingMode, float p9, float p10) // E2A2AA2F659D77A7 E4AC0387 here is gtaiv code i used to adjust heli vector, hopefully it works for gtav... driver.Task.DriveTo(waypoint.Position+new Vector3(x,y,z), 50, false); Edited May 20, 2015 by AgentWD40 Link to post Share on other sites
Fireboyd78 382 Posted May 19, 2015 Share Posted May 19, 2015 (edited) OP, what are you trying to do? Land a helicopter? Or rappel from one? Edited May 19, 2015 by CarLuver69 Link to post Share on other sites
Graphicscore 35 Posted May 19, 2015 Author Share Posted May 19, 2015 OP, what are you trying to do? Land a helicopter? Or rappel from one? Either. Originally I want to land it but it seems to not work out. I just want to get the PEDs safe to the ground. Link to post Share on other sites