I'm trying to write a script, basically the theory behind it is a send enemy to animation via attack
So as players attack connects to enemy it sends enemy to any animation desired, I have the theory but trouble executing the code some help would be appreciated.
Code:
void changeaniondamage(int anim, int Damage, int Flag){
{ // change opponent animation on damage
void self = getlocalvar("self");
void target = getentityproperty(self, "opponent");
void ohealth = getentityproperty(target,"health");
if(ohealth < Damage && Flag == 1){
changeentityproperty(target, "animation", anim);
}
So as players attack connects to enemy it sends enemy to any animation desired, I have the theory but trouble executing the code some help would be appreciated.