mtrain
New member
I am trying to make an escaping move from grabbing by enemy, by pressing special button. But player must perform an alternate special move. So what i make:
Players special:
And script:
The problem is that player still perform regular special move instead Follow20 while being grabbed. But if change enemies "ANI_GRAB", for example, to "ANI_FALL" or "ANI_WALK" player will perform Follow20.
Thank you)
Players special:
Code:
anim special
loop 0
delay 10
offset 155 138
@cmd bigcounter
frame data/chars/axel/x/1090.gif
And script:
Code:
void bigcounter()
{// counterattack from big grab
void self = getlocalvar("self");
int player = getlocalvar("player");
void target = getentityproperty(self, "opponent");
void EName = getentityproperty(target,"defaultname"); // Get enemies real name.
int anim_id = getentityproperty(target, "animationid");
if (EName == "Big" && anim_id == openborconstant("ANI_GRAB")){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW20"));
}
}
The problem is that player still perform regular special move instead Follow20 while being grabbed. But if change enemies "ANI_GRAB", for example, to "ANI_FALL" or "ANI_WALK" player will perform Follow20.
Thank you)