Need some help with my gun reloading script
I've made a script for reloading my gun. It has a set number of bullets that are in the gun, a set number of bullets that can be in the "clip" at once, and a set number of bullets that are in reserve,...
View ArticleHelp with a game!
Hi! Me and my team are making a game if you want to see it check out my channel. Here is the video link: https://www.youtube.com/watch?v=YaFKm0pTdYg&list=UUsajeqfGhv7DKIUa1jrEwQw We are gonna need...
View ArticleHow to check for a mouse drag
I have a mouse orbit script, and also a script that shoots when the left mouse button is clicked. However, whenever I drag, the gun also shoots. How can I check to see if the mouse button has been...
View ArticleFps question
So I have heard when making a FPS you can make hands or anything visible to the camera. But in the scene, all we see is just arm's and a gun. But what if I make multiplayer. How do I make it look like...
View ArticleAutomatic Shooting Script
***First off:*** **I'm from Germany sorry for my english** ---------- i've been written a Script to shoot a single Prefab. But now i want an automatic Gun. sooooo...... Can Anybody help me to make this...
View ArticleGun shot as a light ray/"Burst"?
Hello! I am on my way to make my first little game thingy. Nothing for release or anything at all, i just want to mock a bit about in unity first. So i have created a gun. A functioning gun, using...
View ArticleWrote a script for Shooting, reloading and to display the AMMO in a GUIText
This is the script, When ever I start the game It says "Assets/shoot.js(17,22): BCE0018: The name 'ammotext' does not denote a valid type('not found')" I have no Idea what to do >.> var sound :...
View ArticleHow to make my gun semi-auto?
I want to know how to make my gun semi auto instead of full automatic? I've tried to use a boolean to turn of the inovake but it did not work. I try to make a shotgun/sniper/rifle and wonder if anyone...
View ArticleHelp with Gui texture/Audio
Hey i have a gun script that works great but i need to transfer it from pc to android. Like instead of me clicking the scene i want it so when you press a gui texture, it fires, like on the pc version....
View ArticleFPS Run Animation Gun - Rotation Issue
when I tried to make the Run Animation I changed the rotation of the weapon -60 degrees . When the run animation was being interupted by the walk animation (for example when you Get the button up) my...
View Articlemusket gun script is not working
this script is supposed to make the gun shoot once and then reload but it just lets me keep shooting i am pretty much a beginner with scripting here is the script var reloadTime = 5; var totalAmmo =...
View ArticleOnTriggerEnter is often not working
I'm trying to make a shooting system. I use rigidbodys for the bullets and I want to make the hit detection with the a hitbox of the ridgidbody object. I'm using the "OnThriggerEnter"-function for...
View ArticleReload Mobile
Hey guys im making an Android game, a fps game, and after 30 bullets, i want the gun to reload when i press a gui texure, or when they reload when the want. Any ideas? //Simple prefab shooting script...
View ArticleGun is not shooting? Please Help!
My gun script for my multiplayer game does not work? is there something that i am doing wrong? Code: using UnityEngine; using System.Collections; public class Shoot : MonoBehaviour { public GameObject...
View ArticleUsing the arrow keys to shoot using c#
Hey I'm using this simple code for my player to shoot. But how do I get the player to shoot in each direction of the arrow keys? so far he only shoots right. using UnityEngine; using...
View ArticleGun Shoot bullet + sound script unexpected char
var Bullet : Transform; var Spawn : Transform; function Update () { if(Input.GetButtonDown("Fire1")) { Shot(); } } function Shot() { var pel = Instantiate(Bullet, Spawn.position, Spawn.rotation);...
View ArticleBullets not spawning (Instantiate)
Been following this tutorial: https://www.youtube.com/watch?v=VkNUDn7rdPY&index=13&list=PL5MghP-s6HUahXF3ss5wjseBCal9UpH_9 Unfortunately, no bullets spawn when hit the left mouse button....
View ArticleGetButtonDown problem | C#
Hello, I'm trying to make a weapon script that allows me to change the firing mode from being able to hold down the trigger on a machine gun, or make it so you have to keep clicking for the gun to keep...
View ArticleHelp with gun accuracy in degrees.
I want to add inaccuracy to fired bullets. I've been using the typical method that adds a randomized vector3 by the velocity vector3 of the bullet. This is fine for a quick and dirty solution, but...
View Article