How to stop animation using trigger?

I must know how to stop animation by entering the trigger, i’ve looked for an answer everywhere, and i haven’t found it yet, please help. Thanks in advace. PS: Sorry for my bad english. :smiley:

Three parts to this:

o Look at how colliders with trigger=true use OnTriggerEnter. There are lots of examples of how to make a trigger do something when someone enters.

o Look at how to access components of another object, from within a trigger. If you can talk to the player and change even their color, that’s a step. For example, animation.Play("abc"); is for you, but col.animation.Play("anc") is for when col represents some other game object. Lots of OnCollisionEnter examples have this.

o Look at how to stop an animation. Test it by having the player stop their own animation (maybe something like if(Input.GetKeyDown("z")), for testing.) The Stop command works, but starting another one (like an idle) works even better.