NED
Well-known member
Hello,
I would like to fix this airgrab check script.
The command
The script
I would like to tweak the script to ignore anim2 and anim3
I would like the anima to change to a desired animation only if it hits airborne enemies
And if not (jetpacks,bikers,non airborne enemies...) it continues the animation ongoing.
Is this possible? How can it be fixed to allow this?
Thanks
I would like to fix this airgrab check script.
The command
Code:
@cmd grabcheckA "ANI_FOLLOW20" "ANI_FOLLOW60" "ANI_FOLLOW60"#success miss miss
The script
Code:
void grabcheckA(void Ani1, void Ani2, void Ani3)
{ // Hero's airgrab checker
// This script prevents hero from grabbing ground enemies, bikers, jetpacks, special enemies and non-enemy entities
// Ani1 = Grab animation to play
// Ani2 = Animation to play if hit enemy are bikers or jetpacks
// Ani3 = Animation to play if hit opponent are not airborne enemies
void self = getlocalvar("self");
void target = getentityproperty(self, "opponent");
if(target!=NULL()){
if(getentityproperty(target, "a") > getentityproperty(target, "base")){
int Check = checkgrab(target);
if(Check == 0)
{
changeentityproperty(self, "animation", openborconstant(Ani2));
} else if(Check == 1){
setlocalvar("Target" + self, target);
changeentityproperty(self, "animation", openborconstant(Ani1));
}
} else {
changeentityproperty(self, "animation", openborconstant(Ani3));
}
}
}
I would like to tweak the script to ignore anim2 and anim3
I would like the anima to change to a desired animation only if it hits airborne enemies
And if not (jetpacks,bikers,non airborne enemies...) it continues the animation ongoing.
Is this possible? How can it be fixed to allow this?
Thanks
