Skip to main content

OnMeleeAttack

Usage​

  • Useful for canceling melee attacks
  • Return a non-null value to override default behavior

Examples​

""
object OnMeleeAttack(BasePlayer player, HitInfo info)
{
Puts("OnMeleeAttack works!");
return null;
}