I have tried everything to get this working It ain't even playing the animation I want to make If i hold down rightmousebutton It will play the AIM animation and if I release rightmousebutton it will go back to it's original position. Here's my script I tried to use I wrote it myself:
var otherObj : GameObject;
function Update()
{
if(Input.GetMouseKey(1));
otherObj.Animation.play("Aim");
}
How do I fix this
↧