- Home /
Question by
CrilleStyles · May 18, 2014 at 08:38 PM ·
animationgun
Mousebutton held down loop animation on another gameobject does not work?
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
Comment
Your answer
Follow this Question
Related Questions
My animation barely moves with root motion. 1 Answer
animating multiple weapons with 2 arms 0 Answers
Gun script help 1 Answer
Animation on gun sometimes skips? 1 Answer
Animations have been cleared, help! 0 Answers