Hi, i wanted to press a key for example E to open the door that i animated in 3ds max which i set the frame 0 to 100 is the pivot door slowly open. can anyone help me out with the scripting?? i would like to know how i close it as well. thanks
ok, say ‘doorOpen’ is keys 0 - 100. You also have to have keys for ‘doorClose’ which would be keys 101 - 200 or something of that nature.
you can split the animations in the prefab when you imported your object.
Now, to make the animations work without having say ‘doorOpen’ loop continuously, is a matter up switching variables on and off in the update function right after the piece of code that makes the door animation open. Hope that helps