Code:
void anichange(void Ani)
{// Animation changer
void self = getlocalvar("self");
changeentityproperty(self, "animation", openborconstant(Ani)); //Change the animation
}
when i use the above script it works fine for players and idle objects. When used for enemies once they play the animation they are forced to they get stuck and the AI wont take over unless they get hit is there any fix for this ?