Machine Gun shooting
Hello! I have the TankShooting Script from the Tanks! Tutorial and I need help converting it into a script where when you hold the fire button, it doesn't recharge but constantly shoots, like a machine...
View ArticleAmmo Script
I'm trying to add a magazine to my gun so people will have to reload, but I don't know how. If someone could help me get a script that displays how many shots are left in the magazine and add a...
View ArticleGun Switching not syncing across Network - UNET
Hello, I have a problem where I have my gun switching script working fine. It allows me to click a number and switch to that gun, which is held in an array. The problem is that when I have two players...
View ArticleHow to make collision for the rocket launcer in singleplayer shooter?
Hi everyone. I made a rocket launcer and add a second camera for layer with this weapon. I cant add collision for the 3d model of rocketgun because it is bad for gameplay. This rocketgun instantiate...
View ArticleHow to add a Gun Reload feature to my script
Im making an FPS Shooter but i cant find a way for the game to count the amount of times the gun has shot so i can put a limit before i have to reload please help Script ---> var Projectile :...
View ArticleColliders won't be added to List?
So I'm doing an explosives script, similar to the gun from "Resistance 2" where the bullet I shoot connects to the surface/enemy I shoot at and then on right click the bullet explodes damaging...
View Articlemaking bullet go travel at angle fired and limit gun rotation in Unity C#...
I have two scripts. rotate gun: using UnityEngine; using System.Collections; public class rotateGun : MonoBehaviour { public float rotateSpeed; public float minRotate, maxRotate; public float...
View Article2D Accuracy
So I want a better way to handle bullet spray in 2D games. It needs to work with distance so that the farther away an object is the less accurate a shot will be. var Mos =...
View ArticlePainting With Particles
I Want To Make A Gun That Shoots Paint, I Currently Have A Script That Disables And Enables The Gun And A Particle System. Now The Idea Is, That When A Particle Hits The World, It Paints Paint(:P)....
View ArticleShooting animation for gun while aiming and while in hip fire
Hi, what I'm trying to achieve is for my gun to play one animation while aiming and another while in hip fire. script for RayCast/shooting that I use: < var fwd =...
View ArticleGetting a crosshair to project onto the object a barrel is aiming at
Hello, I am trying to get a crosshair to project onto the object that the player is aiming at (like the Resident Evil 4's aiming system is). This means that crosshair should appear smaller as objects...
View ArticleWierd rotations in very simple reload animation
Hello all, I have a gun, which I rotate a to the left and down a little for a reload animation. I want to keep it still for a few seconds before going back to it's original rotation. So I go a few...
View ArticleHow to make an automatic fire mode for a gun (Javascript)
Hello guys, im new in unity so i want to ask this question... I have a script taken from a Youtube Tutorial. It is a single fire only script but i want to have an automatic gun. Also it would be...
View Article2D Platformer Gun Equip Script Not Working
I have a 2D Platformer game and I have weapons on the ground that I want to be able to pick up. And so I made this script trying to do that and I'm trying to make the gun become a child of the player...
View ArticleHow do I create a First-Person View model with hands and multiple weapons?
I understand how to add a model to a camera by making it a child object and repositioning it. What I am trying to understand is how to have a hand model with several weapon models, how to organize/use...
View Article2D Bullet Not Working
I have a 2D platformer and am using C#. And I'm trying to shoot my bullet prefab out of my gun. So basically, when I shoot my gun the bullet spawns but doesn't move, it gets stuck in mid-air. And...
View ArticleReloads correctly first time, but can't reload till count hits 0
In my game the gun will reload correctly the first time if its not 0 and will take the correct amount out of the reserves but after that first reload you can't reload again until the loaded ammo hits...
View ArticleVertical gun movement exaggerated
This question has certainly been answered before, but I haven't found an answer in almost 2 days now. I'm currently working on my first Unity project, and at the moment I'm trying to make a gun that...
View ArticleGun recoil animation not working.
I made a animation of gun recoil, and script that is supposed to play the animation when I left click. It is not playing the animation. I am very new to unity. The Script: function Update() {...
View ArticleHow do I add muzzle climb into a gun script?
I'm making a FPS and I'm having problems creating muzzle climb for my guns. I haven't seen anything on this forum about muzzle climb and I desperately need help creating it. Thanks in advance! P.S. I'm...
View Article