Trigger Animation

hey guys thanks for the scripts but non of them work

can some one explaine how it works to lets say have a gameobject box in front of a sliding door that i have made in max and animated in max the animation is calld in unity Take 001 but when i walk in to my box to trigger the animation of the sliding door nothing happens i just want to walk into the box and than the animation from the dliding doors to play just once each time i enter the trigger box

the scripts you give me are not working on cillision ontriggerenter

please help me ow and can you tell me where to put the scripts on what obeject and way thanks guys

does the box have a Collider on it and is it marked "IsTrigger"?

http://www.design3.com/unity/feature-a-techniques/door-functionality

function OnTriggerEnter (other : Collision)
{
if(other.gameObject.name == “Trigger”)
{
animation.Play(“Doors”);
}

function OnTriggerExit(other:Collision)
{

}

Remember you maust have this script attched to your object with tha animation. so you may need to change the name == “Trigger” to name == “Player” for it to work only if your character is called player other wise rename it to what your character is hope this helps