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

    1. GTANet.com

    1. GTA Online

      1. The Cayo Perico Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    1. Announcements

    2. Support

    3. Suggestions

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


Graphicscore

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,

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
Link to post
Share on other sites

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
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.

  • Like 1
Link to post
Share on other sites

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
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.

  • Like 1
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
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
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.

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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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