AHK1221 Posted July 13, 2016 Share Posted July 13, 2016 Hi guys, I cannot seem to figure out a way to detect a player damaging another ped. I have tried HAS_ENTITY_DAMAGED_ENTITY, didnt work. Any suggestions? Link to comment Share on other sites More sharing options...
AHK1221 Posted July 14, 2016 Author Share Posted July 14, 2016 Anyone? Link to comment Share on other sites More sharing options...
nitanmarcel Posted July 14, 2016 Share Posted July 14, 2016 (edited) Is ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY This is it Edited July 14, 2016 by nitanmarcel Link to comment Share on other sites More sharing options...
AHK1221 Posted July 14, 2016 Author Share Posted July 14, 2016 Is ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY This is it I did put in the post, i tried that, didnt work. Link to comment Share on other sites More sharing options...
uNiverselEgacy Posted July 15, 2016 Share Posted July 15, 2016 Is ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY This is it I did put in the post, i tried that, didnt work. It works fine for me. You need to test against the vehicle if player is in a vehicle. HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY probably won't work if you want to detect indirect damage. Link to comment Share on other sites More sharing options...
nitanmarcel Posted July 15, 2016 Share Posted July 15, 2016 Is ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY This is it I did put in the post, i tried that, didnt work. It works fine for me. You need to test against the vehicle if player is in a vehicle. HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY probably won't work if you want to detect indirect damage. I think he need to check for peds with foreach Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now