- Home /
Question by
BawsAnimations · Oct 08, 2012 at 10:19 PM ·
animationplayshootscope
Animation when mouse button is held down?
I am trying to make a scope view and I need the guy to move closer to the camera for this. I want to play the animation when the right mouse button is held down. This animation isn't working but when I press "right click" the print "scope view" is printed even thought the animation is not played. Help? (Yes all the names of the scripts/animations are correctly spelled).
function Start () {
}
function Update () {
if (Input.GetMouseButtonDown(1)) ;
animation.Play ("scope") ;
print ("scope view") ;
crossfade = true ;
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613082052im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Annoying Maya animation 1 Answer
Animation doesn't play 2 Answers
FPS Aim Down Sights. Exact Position. 1 Answer
Help With Animation Play Back - Reverse 1 Answer
Move cube forward 0 Answers