This module allows you to add parry to your game.

To use this module, simply add it to the Attacker along with Melee Combat System and fill in the inspector values as mentioned below.

Inspector

Screenshot 2026-09-18 053316.png

Parry List (list<Attack>)

Add your parry just like you would add a normal Attack,

This works by matching both AttackDirection and AttackType from each of the Parry List with Attack of Attacker. Then based on the parry Attack Parry Reaction of Reaction module is used.

Default Parry Attack (Attack)

If none of the AttackDirection and AttackType combinations in the Parry List match the incoming attack then this Default Parry Attack will be used.

Parry Scan Area (float)

How far from the attached GameObject to scan for Attackers that can be parried.

Parry Window

Parry window is the time period for which an incoming attack can be parried.

AttackStart indicates when parry window starts and ParryWindow indicates how long the window remains open for.

For example - if AttackStart is 0.2 and ParryWindow is 0.3 then, parry window starts when the attack animation reaches 20% of its duration and remains open for 0.3 sec after that.

Method

public void Parry()

Call this method when you want to perform parry.

This method performs a scan within the Parry Scan Area. If a GameObject on the Attack Layer is performing an attack within the parry window then the parry will be executed for that GameObject.