AnimationTrigger DoorClosing

Hi,

I just got an AudioTrigger (OneTimePlay) and i want to let a door or some falling rocks…
and is there someway to blend in the animation script into my sound trigger script?

SoundTriggerScript:

var bool : boolean = true;

    function OnTriggerEnter() {

        if (bool){

        audio.Play(); 

        }

       bool = false;

    }

The trigger is for both the Sound and Animation…

,DVBear-

well u could play the animation right there

SoundTriggerScript:
var anim :GameObject;
var bool : boolean = true;

    function OnTriggerEnter() {

        if (bool){

        audio.Play(); 
        anim.animation.Play("door");
        }

       bool = false;

    }

remember to add the game object in the inspector. use that if ur gameObject u r going to animate isnt where the script is attached.