Firing a simple sphere from below the camera at crosshair in the centre of...
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 ArticleGun Recoil System Messes Up View
I'm working out a gun recoil system. I have it working pretty well, with one exception. When it moves, it makes my camera mess up and I can't figure out how to get it back other than by restarting the...
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 ArticleHelp 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 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 ArticleReload a gun in VR with motion controllers
Hello, I have a question. I want to implement reloading in my shooter game in oculus with oculus touch. I want it to be somewhat gunstringer (xbox kinect) game style. shake to reload. I am trying to...
View ArticleRotations inside gameObjects
I cant tell exactly what goes on when I try to rotate an object inside of a gameObject with script. I placed my camera inside of a gameObject for more manipulation, so I can rotate the camera, and then...
View ArticleHow do I add a muzzle flash to my gun?
Basically the title. Im realllllly new to making games in unity and i just spent an 2 hours trying to figure this out. All i want it to do is when i click to fire a effect (i already have made) plays...
View Articleactivate gearVR at runtime
As lot of users , i would like to create a first UI selection screen in order to configure my scene, then apply parameters and activate a GearVR view. i ve tried few tests. if VR mode supported in...
View Article