Aerisetta
Active member
Hello, I have a question about how to control a spawned text entity.
Right now, I have a character that SPAWNS a text entity.
After, the TEXT entity will continue to loop the IDLE animation of the text entity.
I want it so that if the player presses a button, it will change the TEXT entity animation to FOLLOW1 (or whatever animation).
However, whenever I press any button, it only skips frames in the text entity and nothing else
I have tried adding this keyscript in, but it doesnt seem to do anything
Right now, I have a character that SPAWNS a text entity.
After, the TEXT entity will continue to loop the IDLE animation of the text entity.
I want it so that if the player presses a button, it will change the TEXT entity animation to FOLLOW1 (or whatever animation).
However, whenever I press any button, it only skips frames in the text entity and nothing else
I have tried adding this keyscript in, but it doesnt seem to do anything
Code:
if(anim == openborconstant("ANI_IDLE"))
{
if(keyPress & openborconstant("FLAG_ANYBUTTON"))
{
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
}