Didhit counter attack

I want to use didhit script for countering specific attack#'s while blocking for ex. if player is blocking and attack6 makes contact player will shoot that projectile back at the enemy while still receiving chip damage as is normal when blocking attacks is there currently a didhit script similar to this that can be tweaked for this purpose?
 
I just had the thought of instead of doing the whole didhit work around it would be simpler to have the player stay in blockpain# anim until block button is released is there a built in way to do this because once the blockpain anim is triggered it only last for one frame and the player is automatically forced into idle animation
 
You could try using cancels to perform the moves in blockpain.

Also here's the script to force to IDLE anim.

Code:
void beidle()
{// Go to IDLE animation!
    void self = getlocalvar("self");

    setidle(self, openborconstant("ANI_IDLE"));
}

 
Back
Top Bottom