OpNn 0 Posted August 30, 2018 Share Posted August 30, 2018 (edited) **sorry, didnt see the sub forum "Coding", please move the topic there. hey guys, it is possible to find in which part of the ped's body got hit ? i mean leg, chest, head, arm... thanks Edited August 30, 2018 by OpNn Link to post Share on other sites
Guest Posted August 30, 2018 Share Posted August 30, 2018 I can only see GET_PED_LAST_WEAPON_IMPACT_COORD but I don't know if that's the coord you shot at, or the coord you got hit at. You'd have to create a small test mod to see if you got results back when you fired at something, or when you got shot. I don't see anything that gives you precise body parts though, so you're probably going to have do some "nearest bone" calculations and then just approximate which part got hit. I have never done anything with weapons though, so hopefully one of the more experienced weapon scripters will offer up some better help. Link to post Share on other sites
OpNn 0 Posted September 5, 2018 Author Share Posted September 5, 2018 On 8/31/2018 at 1:26 AM, LeeC2202 said: I can only see GET_PED_LAST_WEAPON_IMPACT_COORD but I don't know if that's the coord you shot at, or the coord you got hit at. You'd have to create a small test mod to see if you got results back when you fired at something, or when you got shot. I don't see anything that gives you precise body parts though, so you're probably going to have do some "nearest bone" calculations and then just approximate which part got hit. I have never done anything with weapons though, so hopefully one of the more experienced weapon scripters will offer up some better help. Well, i search the function you named, and found the function GET_PED_LAST_DAMAGE_BONE, which is the function i needed thanks for the help! Link to post Share on other sites
Guest Posted September 5, 2018 Share Posted September 5, 2018 (edited) Weird... I don't have that native in my list. I think I need to get an updated Native List. Glad you got it sorted though and thanks for posting back what you found. Edit: It seems I do have it... don't know how I missed that. Edited September 5, 2018 by Guest Link to post Share on other sites