- Home /
Help with setting up a trigger animation
Im making a first person maze exploring game, i have my first person controller set up to explore the maze freely and i have chest objects in the maze already placed. I have no idea how to make it so that when the first person controller reaches the chest it will play an animation of the lid opening. Any help with this would be greatly appreciated.
Thanks in advance
Answer by AngryOldMan · Apr 13, 2011 at 05:18 PM
add a collider to the chest then tick istrigger for the collider component in the inspector. Have an animation on the chest of the lid opening then make a script that is on the chest that says when the character enters the trigger play animation. There are so many ways to do this, give it a go then if you encounter problems post another question explaining what you are tying to achieve, what you have done and what the problem is.
ok thankyou for the help ill have a go at that.
Your answer
![](https://koobas.hobune.stream/wayback/20220613122539im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Having a door dissapear once a key is collected 1 Answer
Animation not playing but trigger works 1 Answer
Collider Activate Trigger Animation 0 Answers
Trigger animation going crazy 3 Answers