STUCK! Firing a simple sphere from below the camera at crosshair in the...
I have a game that spawns "enemies" within a sphere around the camera, the player moves the camera to target and simply presses the screen to fire. For now my "ammo" is simply a sphere and for visual...
View ArticleUnity 5.6.0f3 + GearVR screen white flash
Hello, i am have some bug with white screen flash when start the app and when go back from Oculus Confirm Menu or Global Menu to the game. I аm try versions 5.6.0f3, 5.6.0p4 and this bug have both. In...
View ArticleTrouble with both rapid fire and also firing on control in fps game.
Hello there it's me Richard B. Haley yet again with another problem and this time it's with both the firing speed along with the fact that I cannot (for some reason), seem to shoot my guns when ever I...
View ArticleAim Down Sights and Weapon Sway not working unless animations are not assigned
Hi, Aim down sights and weapon sway won't work unless in the animator the actual animations aren't assigned. (Except Idle, Idle works fine.) ![alt text][1] This is currently my setup under the animator...
View ArticleMy shooting is being glichy
I just want prefabs to go from the player to the target. Here is my script. void FixedUpdate() { timer = Time.time; Vector3 Emitter = transform.position; if (Input.GetMouseButton(0)) { if (Time.time -...
View ArticleRayCast Line Not Rotating with Gun?
Hey gang Have my Recast machine gun looking beautiful here only problem is "Forward " Dose not rotate when I rotate my Gun and keeps facing the One-direction... public float FireRate = 0.1f; private...
View ArticlePhoton Weapon View
Hello friends. I'm doing an online game using photon. But I do not see the gun when I do it. Please help us how to fix it.
View ArticleHow can i make GUI ammo
HI,HI,HI , HOW CAN I MAKE GUI AMMO SCRIPT THAT SHOW THE CURRENT AMMO IN GUN AND THE LEFT AMMO , AND WHEN I RELOAD ,THE AMMO LEFT IS Decrease Plz type script
View ArticleGun - 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 ArticleHow 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 ArticleReload 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 ArticleCS: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 ArticleHelp 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 ArticlePick 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 ArticleAmmo 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 ArticleDmC: 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 Articlefully 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 ArticleRaycast 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 ArticleMy 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