sorry for this, please share your wisdom guys… Ive been trying to make this work the whole day… from reading every forum and watching many videos i still cant find a way to make this work on my own…
var obj : Transform;
function OnTriggerEnter(other : Collider){
obj.animation.Play(“openDoors”);
};
i wa trting to animate my door with trigger once the character enters collider but once it was triggered i did not see the animation instead my character went through the door, i dont know what happend because when i was trying to do this earlier when my code for the trigger is not yet working and not triggering and cant access the animation from the game object my character/first person controller cant go through the doors… what should i do?
i tried changing the
var obj : Transform;
to:
var obj : GameObject;
and got the same result… Y_Y,