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.

Featured Replies

Posted

Hello everyone,

 

I just had the ScriptHookRDR2 and installed a few mods, very impressive! I have made couple simple scripts like to change player's status.

 

Now I would learn more about how to make a ped like dog to sense the world and act around. I know how to spawn one but looking for the way to drive/control it. Here are some detailed actions I could imagine for the dog now:

- move/run to the East for 5 steps

- standing on the current place and moving its head to the left, or to the player, so its sight will change to the new direction and focus will follow

- sense the current area of the world and respond certain behaviors like dig or piss

 

Do you have any mod scripts about this, driving a dog to sense and act in its world? 

 

So far, from the NativeDB, I found some functions seem relevent, and especially a list of ped task natives, but no ideas how to use them. 

 

SET_PED_USING_ACTION_MODE

ENABLE_CONTROL_ACTION

SET_PED_STEALTH_MOVEMENT

IS_PED_HEADTRACKING_PED

 

https://www.rdr2mods.com/wiki/pages/list-of-ped-task-native-functions-in-rdr2-r4/

 

Do you have any good practice/examples about how to use these natives to drive the dog, or using others?

 

By watching the dogs built in the game, I think the game developers already provided lots of scripts to drive the dogs, gave them the kind of controlling mechanisms. I hope to learn them too if anyone could share it:)

 

Besides the natives I could access using the Hook, Is there any RDR2 libraries I could use too like RDR2.Native? From an online search, I found the code like below but not sure whether they are real and how to use them

 

using RDR2;

using RDR2.Native;

...

private Ped dogPed;

...

dogPed.Task.FollowPed(...);

...
 

 

 

 

Hi, have you seen Dog Companion mod?

https://www.nexusmods.com/reddeadredemption2/mods/725

My Utube Channels

Gunter Severloh (Arma 3)

Gunter Severloh RDR2 - (Official Bandit Hideouts Mod channel)

RDR2 Mod - Bandit Hideouts Mod - This mod adds 140 bandit hideouts, 50 ambush locations to RDR2, and More!

RDR2 Mod - Hired Guns Mod - Hire up to 9 gunmen at saloons to travel, and protect you from predators and bandits!

 

 

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.