Hi,
I’m trying to trigger a 3ds MAX animation called ‘Take 001’ with a key press ‘s’. I created the following Java script after looking in the forums:
function Update()
{
if(Input.GetButtonDown("s"))
{
animation.Play("Take 001");
}
}
I added the script as a component to the same object in the hierarchy as the animation. However, when I hit play and then ‘s’ nothing happens. Do I need to add something else in the script? Alternatively should I be doing something else with the script?
Many thanks,