Quantcast
Channel: Questions in topic: "gun"
Viewing all articles
Browse latest Browse all 592

Mousebutton held down loop animation on another gameobject does not work?

$
0
0
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

Viewing all articles
Browse latest Browse all 592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>