hi, i have a chest game object called "Chest1" and i have a mesh collider on it with isTrigger ticked, and an animation attached with "Take 001" in the animation slot- this is the actually animation of the chest lid opening.
This is the script i have at the moment,
function OnTriggerEnter (Player : Collider) {
animation.Play("Take 001");
}
This script is attached to chest game object. When the first person controller named "Player" reaches the chest i want it to play the animation of the lid opening, but it isnt doing so. Any suggestions are appreciated.
Thanks in advance