I want to make a it so when my player collides with my trigger (empty game object) it starts my animation of a table moving across the room.
I tried using this script
var (animation) : AnimationClip;
var (object) : GameObject;
function OnTriggerEnter(){
animation.Play ("animation");
}
but it doesn’t seem to work.
I’m very new to scripting and any help would be appreciated!
No worries! Glad I could help.
– Kleptomaniac