HughJanus 244 Posted July 21, 2022 Share Posted July 21, 2022 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? Quote Link to comment Share on other sites More sharing options...
LMS 673 Posted July 21, 2022 Share Posted July 21, 2022 If you tell me what native you are using to set it, I can see how easy it is to read back. Quote Link to comment Share on other sites More sharing options...
HughJanus 244 Posted July 22, 2022 Author Share Posted July 22, 2022 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! Quote Link to comment Share on other sites More sharing options...
LMS 673 Posted July 24, 2022 Share Posted July 24, 2022 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? Quote Link to comment Share on other sites More sharing options...
HughJanus 244 Posted July 25, 2022 Author Share Posted July 25, 2022 @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. Quote Link to comment Share on other sites More sharing options...
TuffyTown 23 Posted July 25, 2022 Share Posted July 25, 2022 You can check if a ped is bleeding out via IS_PED_IN_WRITHE(Ped ped) Quote Link to comment Share on other sites More sharing options...
HughJanus 244 Posted July 25, 2022 Author Share Posted July 25, 2022 1 hour ago, TuffyTown said: You can check if a ped is bleeding out via IS_PED_IN_WRITHE(Ped ped) Isnt that only for the real writhing? (squirming on the ground) Quote Link to comment Share on other sites More sharing options...
LMS 673 Posted July 25, 2022 Share Posted July 25, 2022 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. Quote Link to comment Share on other sites More sharing options...
HughJanus 244 Posted July 26, 2022 Author Share Posted July 26, 2022 9 hours ago, LMS said: Â You might also get lucky by querying ped flags. How would I go about that? Quote Link to comment Share on other sites More sharing options...
LMS 673 Posted July 27, 2022 Share Posted July 27, 2022 Try looping flags from "GET_PED_CONFIG_FLAG" - perhaps one of them changes if they are bleeding out. 1 Quote Link to comment Share on other sites More sharing options...
HughJanus 244 Posted July 28, 2022 Author Share Posted July 28, 2022 @LMS OK, thanks. And how many flags are there? Do I iterate 0 to 100 or 0 to 1000 or 0 to 10000? :D Quote Link to comment Share on other sites More sharing options...
LMS 673 Posted August 1, 2022 Share Posted August 1, 2022 0-1000 is probably a good start (I would assume there are less than 1000 flags, but more than 100). 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.