- Home /
Gun Animate when it shoots
I've making a online FPS game by my self with 3 small levels.
i only have one gun, its the M9. the only thing i need to make this gun look realistic, its a scripts that makes the gun amimate a certain animation when i click the fire button or the right mouse click
Be more specific with what you need. Are you familiar/comfortable with scripting? Do you need a whole script file? (If so you're better off picking up the tutorial).
Answer by BigBlob · Jan 28, 2012 at 04:48 PM
ohhh no its ok i got, i just have to make a script Gun_Anim and animation called Gun
function Update() {
if(Input.GetButtonUp("Fire1"));
animation.Play("Gun");
}
then apply the script and the animation to the gun object
I'm not that good at scripts and also just 12 years old.
Felipe
Dude you are super cool, only 12 this is super cool dude
Stijn
Answer by BigBlob · Apr 07, 2012 at 06:58 PM
So instead of that script that works terrible use this one:
Enemy:
Then copy and paste this to the end of your health script:
You are free to make some changes.
Felipe
Your answer
Follow this Question
Related Questions
3rd Person Gun Aim 1 Answer
Unity does not recognize reload animation for gun 1 Answer
How would I go about making an animation affected by this script? 1 Answer
Troubles With A Shoot Script 1 Answer
Shooting & Animation Problem 1 Answer