I am trying to make 4 doors open when the game character hits a trigger box. (I can make 1 door work just fine.) When I add the other doors to the script they immediately open and don’t operate. (I created the door animations in 3DS Max). The script:
var player:Collider;
var door1 : GameObject;
var door2 : GameObject;
var door3 : GameObject;
var door4 : GameObject;
function OnTriggerEnter (other : Collider)
{
if (other == player)
door1.animation.CrossFade(“Opening”);
door2.animation.CrossFade(“Opening”);
door3.animation.CrossFade(“Opening”);
door4.animation.CrossFade(“Opening”);
}