How to create a perfect block system?

I already got the Blocking system, it currently uses Attributes, but how would I go with creating a Perfect Block system?

Could you elaborate? We don’t know what a blocking system is.

I’m assuming like a combat system.
If you’re going advanced with block direction and stuff, use raycast I think. If the opponent if raycasting you, they block. If not, they take damage.

If you’re going simpler, just check if the block attribute is true, if so, no damage will be dealt.

Context?? As in Tags, Forcefields or what?? what blocking system.

Im guessing perfect hlock on my soulshatters logic, perfect block is like parries.

Blocking right before the enemy attack you will stun them

The way to do is is quite simple, just add a task.wait() and a bool attribute called canperfect or so
Then set the attribute to true whenever the player blocks for, lets say 0.5 seconds.

After that, add a code in your damage script that if the attribute is true stun the attacker

3 Likes

Blocking as in blocking for a combat system. Mb for not elaborating

That isn’t my question, I already finished the combat system. Please read people’s entire posts before replying.

Thank you, I will try this solution out :slight_smile:

Okay-
You just said you had a blocking system and I was assuming since you weren’t very clear.
But post solved anyways.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.