knightscript Posted April 21, 2017 Share Posted April 21, 2017 Hello, I have been looking for a way to check if melee damage was dealt with a weapon, because I want to add a gears of war animation when hit with a weapon, I was looking at the MTA Damage Types, found this: Quote 56 Melee Seems to be never called (?); for an actual melee damage, the fist weapon ID (0) is used (see here) Does anyone have an Idea what can I use to accomplish this? thanks! Link to comment
NeXuS™ Posted April 21, 2017 Share Posted April 21, 2017 Try to use getPedWeapon on the attacker to get his weapon on his current slot, and check with that ID if it's a melee. 1 Link to comment
knightscript Posted April 21, 2017 Author Share Posted April 21, 2017 Alright, Ill try it out and let you know how it goes, thank you Link to comment
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