Jump to content
View in the app

A better way to browse. Learn more.

RDR2Mods.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OPEN_SEQUENCE_TASK, is there anyway to use anything other than 0 as placeholder?

Featured Replies

Posted

Hello to whoever is reading this,

 

I have an issue with a OPEN_SEQUENCE_TASK related task. I am trying to make a PED do a specific set of actions after each other. For I tried to use the OPEN_SEQUENCE_TASK feature. Howver after a time the game no longer recognizes the PED who is referred to 0 or something. The PED will no longer do what he's supposed to do unless I change the 0 to it's name. However if I do that I can no longer run the actions after each other, now the PED will only do the last set action. Could someone help me with finding a way around this?

 

Here's the part of the code I am referring to:


                Object seq;
                AI::OPEN_SEQUENCE_TASK(&seq);
                AI::_0x92DB0739813C5186(target, horse, -1, -1, 2.0f, 1, 0, 0); // Mount the horse
                AI::_0xFD45175A6DFD7CE9(target, player, 3, 0, -999.0f, -1, 0); // FLEE
                AI::CLOSE_SEQUENCE_TASK(seq);

                AI::CLEAR_PED_TASKS(target, 1, 1);
                AI::TASK_PERFORM_SEQUENCE(target, seq);

  • Author
22 minutes ago, LMS said:

That behavior sounds more like you are reaching some internal task sequence/pool limit. Have you tried using this right after performing the sequence to free it?

 

Okay dude, I cannot express my gratitude to you on this one, it finally works now. I was stuck on this for so damn long XD. You're the best!!

Edited by DoctorBones

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.