Game Development Community

Animation not finishing on AI Players

by Michael Bacon · in Torque Game Engine · 10/04/2007 (8:43 am) · 2 replies

I'm working on AI. I have a bot that runs around chasing the player he is set to stop a given distance away.

Usually his animation never finishes. He will stand there when he reaches his threshold with one leg up in the air or some other pose. Sometimes he does finish the animation (probably if its close enough to being finished). How can I force the animation back into the standing pose?

The controllable player always returns to the standing pose. I can just tap the key and he will wiggle a little and go back. But the AI player just stand there, animation half done. I don't understand...

#1
10/04/2007 (9:52 am)
Have you change any variables that involve your package size ?

Aun.
#2
10/04/2007 (4:12 pm)
I'm not quite sure what you mean by package size? Which package?


My executable is bigger. My code is bigger. My script is bigger. The animations and models have not been touched. The animation code has not been touched. It works just fine on the player character. The only effective difference between a real player and an AI player is that a real player gets its moves from the game connection move manager and the AI calculates his own moves from getAIMove.

When I want to stop the AI from moving I set the movement values to zero (or rather I dont update them from the NullMove values).