Page 1 of 1

How to know if the player is punching and not using melee weapon?

Posted: Sat Jul 20, 2019 5:13 pm
by NearHuscarl

Code: Select all

IPlayer.IsMeleeAttacking
return true if player is melee attacking with or without melee weapon. But what if I need to know when the player is attacking without weapon (bare hand)?

Re: How to know if the player is punching and not using melee weapon?

Posted: Sat Jul 20, 2019 5:31 pm
by Gurt
You can check
IPlayer.CurrentWeaponDrawn == WeaponItemType.NONE

Re: How to know if the player is punching and not using melee weapon?

Posted: Sun Jul 21, 2019 7:28 am
by NearHuscarl
That would do it. Thank you!