Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Graphicscore

[Q] TASK_RAPPEL_FROM_HELI, Did anyone already got it working ?

Recommended Posts

Graphicscore

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,

Share this post


Link to post
Share on other sites
Fireboyd78

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 by CarLuver69

Share this post


Link to post
Share on other sites
c39687

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 by c39687

Share this post


Link to post
Share on other sites
BenBaron

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.

Share this post


Link to post
Share on other sites
c39687

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 :D

Edited by c39687

Share this post


Link to post
Share on other sites
Prof_Farnsworth

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.

Share this post


Link to post
Share on other sites
AgentWD40

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 by AgentWD40

Share this post


Link to post
Share on other sites
Fireboyd78

OP, what are you trying to do? Land a helicopter? Or rappel from one?

Edited by CarLuver69

Share this post


Link to post
Share on other sites
Graphicscore

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.