Hi, im having trouble getting a trigger i have to play an animation on a chest to open the lid. I have a mesh collider on the "Chest1" and have istrigger ticked and have an animation on it aswell with "Take 001" in the animation slot. Ive also got a rigid body on my "Player" which is the first person controller incase thats the reason it wouldnt play. i want it so that once the "Player" reaches the "Chest1" it would start the animation "Take 001".
I have no idea on scripting made the script im using from some previous guidance. Would appreciate any help in correcting this.
Thanks in advance
function OnTriggerEnter (Player : Collider) {
animation.Play("Take 001");
}