- Home /
Third Person Controller animation problem
I have rigged a model and created 2 animations for it..idle and walk. Once I imported the models with the animations on I then attached the Third Person Camera and TP Controller scripts to the model. Now when I play the game my player is constantly playing the same animation even when Im not pushing any buttons..any ideas on what I have done wrong?
Answer by Kith · Jun 12, 2011 at 09:47 PM
The ThirdPersonController script will not automatically handle the playing of animations for you, just the movement of your character. You're going to have to decide when a certain animation should play by throwing in an Animation.Play("walk") and Animation.Play("idle") into the ThirdPersonController script wherever you need it to be.
That is, assuming those are the names of your animations.
Are you sure? Then why do I even have to set in the 3rd person controller inspector animations for the third person controller part?
Your answer
Follow this Question
Related Questions
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers
Realistic Character Animation and TPC. 2 Answers