Secondary characters animation.

Thank´s for your answer.
I think is even more simple. Let me explain the idea better.
I just want to play the animation when the player comes near the character.