Jump to content

How can I determine the movement set of a ped?


 Share

Recommended Posts

I would like to make peds behave a certain way when they are using a certain movement set.

E.g. when someone is drunk, they walk wobbly - I would like to know if there is a getter-method for the movement set (I have only found a setter).

Does anyone know?

Link to comment
Share on other sites

0x89F5E7ADECCCB49C is for setting the walking style (e.g. "injured_left_leg") and 0x923583741DC87BCE for setting the stance (e.g. "DEFAULT").

I suppose there must be a getter, but I have not found the correct native function yet 😕

Thanks for looking into it!

Link to comment
Share on other sites

After a quick look, I do not see anything immediately. It looks like it is also stored in a ped component, so takes another layer if you were to retrieve it manually via memory. What are you trying to do?

Link to comment
Share on other sites

16 hours ago, HughJanus said:

@LMS I'm trying to flag NPCs which are currently bleeding out. Since its no task (at least none I was able to find), the next thing thats obvious would be the movement.

 

You might also get lucky by querying ped flags.

Link to comment
Share on other sites

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...