void grabcheckG(void Ani1, void Ani2, void Ani3, void Ani4)
{ // Hero's groundgrab checker
// This script prevents hero from grabbing Bosses with the incorrect animation.
// Ani1 = Animation to play if enemie is GORO, KINTARO, MOTARO
// Ani2 = Animation to play if enemie is KIMOKAHN
// Ani3 = Animation to play if enemy but not anyone on the mentioned characters
// Ani4 = Animation to play if not enemy
void self = getlocalvar("self");
void target = getentityproperty(self, "opponent");
if(target!=NULL()){
if(getentityproperty(target, "a") == 0){
int Check = checkgrab(target);
if(Check == 0)
{
changeentityproperty(self, "animation", openborconstant(Ani2));
} else if(Check == 1){
changeentityproperty(self, "animation", openborconstant(Ani1));
} else if(Check == 2){
setlocalvar("Target" + self, target);
changeentityproperty(self, "animation", openborconstant(Ani3));
}
} else {
changeentityproperty(self, "animation", openborconstant(Ani4));
}
}
}