Quantcast
Channel: Questions in topic: "gun"
Browsing all 592 articles
Browse latest View live
↧

Gun - Ammo , reloading and UI problem.

Hello,I need help with realoding/shooting script and UI displaying. When i press the reload button the displayed numbers are completely random than they should be. For example the maxium number of ammo...

View Article


How to destroy objects only when they collide with other objects?

I have done a gun that automatically fires bullets every "update". The problem I'm having is when I added the script: void OnCollisionEnter() { Destroy (gameObject); } the bullets collide with each...

View Article


Help w/ Gun Recoil

As the name suggests. Working on an FPS game where the gun has recoil. I've tried everything that I can find that is relevant to my project and nothing seems to be working. I would like to just start...

View Article

Reload Gun?

Hi, there. Can someone help me with an script... It is from a unity preset game. Is an shooter. How can i add reload function, and bullet count. I have the reload sound (3 sec duration). Here is the...

View Article

CS:GO-like recoil

Hi, I am trying to make gun spray pattern recoil like CS:GO. I was thinking maybe I can cycle through a Vector3 Array. But I Don't know how to lerp from one Vector3 to another to another I was thinking...

View Article


Help with AimDownSight

Hi there. I have problem with my Shot script. I can aim down sight but sometimes it's glitchy. Photo of normal aim down: ![alt text][1] Now the "broken". it happens sometimes but i want to stop it:...

View Article

Pick up and Drop a gun

Hello. I want to make a FPS game and I need a script for pick up and drop gun. Or when i have a arm, i want to press e and drop my gun and pick up another gun from the ground. C# or JavaScript. Prefer C#.

View Article

"There is no CharacterController attached to the "example" game object, but a...

Hi, I'm just getting start with unity so obviously i don't know that much. I recently got a few errors when i played my game: 1. "There is no CharacterController attached to the "example" game object,...

View Article


Ammo Counting,

i need some help im trying to make a version of the space shooter tutorial where you have an ammo amount displayed on the screen that decreases when you shoot but increases when you destroy an asteroid

View Article


DmC: Devil May Cry Dual Shot?

I'm wondering just how they pulled off the way Dante shoots Ebony and Ivory in this game. What happens is that it's somewhat automatic, in that when you press the fire button, one gun fires, then the...

View Article

fully automatic gun script not working

so I have a gun script attached to a gun GameObject. My goal is to have a gun that when you hold down the mouse it shoots rays at firerate/Time.time . Unfortunately, I can not make this work. I have...

View Article

Raycast Projectile w/ Physics

I'm trying to make a raycast the responds to physics. I do NOT want to use the collision system since these projectiles will be moving rather fast and the collision system isn't very reliable with fast...

View Article

My gun reloading dont work,can i please get help.

using System.Collections; using System.Collections.Generic; using UnityEngine; public class shoot : MonoBehaviour { public Rigidbody bulletPrefab; public Transform bulletSpawn; public float...

View Article


How can I achieve precise projectile shooting towards the crosshair in Unity?

Hi. I'm trying to make a gun that shoots projectiles. I've placed the gun in the player's arms on the right of the camera, and now when I shoot a projectile it isn't moving towards the center of the...

View Article

Aiming Down the Sights Script (HELP)

So I decided to make a script about aiming down the sights, in the Hierarchy I have two arms that are default, and I created arms that make it look like its holding a gun. I disabled the two arms that...

View Article


Adding muzzle flash to the unity

#pragma strict var Rounds : int; var Ammo : int; var Reloading : boolean; var MaxAmmo : int = 20; var theDammage = 100; var delay = 0.1; var timestamp = 0.0; var ReloadTime = 1.8; private var reloading...

View Article

Bullet Spawn's Rotation Changes When Gun's Rotation Changed

When turret/gun is turning , bulletSpawn's rotation is turning too. So i cannot spawn bullets in proper direction. Here is some screen shots. Normal Rotation : http://imgur.com/uYBvgjr When i rotate...

View Article


Animation script

My aim is it to press a key and the player takes out a gun. If you press the key again, he puts it back. I've already got the animation, but I tried many scripts, but they didnn't work. Pls help me! 1....

View Article

Recoil with the FPS controller

Hello! I'm trying to create a recoil system to my current FPS game. The recoil system should rotate the camera, and then slowy change back to normal again, however the mouselook script locks the...

View Article

Having trouble getting fps gun(s) too shoot please help me out now

Hey there it's me Richard Haley once again just letting you all know that I'm now having trouble getting fps gun(s) too shoot bullets out of them, when I press down on the left mouse button. I really...

View Article
Browsing all 592 articles
Browse latest View live


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