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

Changing camera position to shoot through scope on gun

Right now I have 2 Cameras: the main camera displays the gun at its normal state and a second camera is attached to the gun (the gun is a child of the main camera) and when toggled it looks through the...

View Article


How To Keep My Weapon With My Camera?

Hello, I've just run into a problem. My gun does not stay with my camera when it begins to recoil, and after the methods being to run, it "Lerps" back to where it is supposed to. Here is what issue I...

View Article


fireRate javascript?

I'm making a miniagme, were, you can shoot. I use this Firerate stript, and I don't know why it doesn't work: the scene start, I shot one time, and the x become equal to 0.511. I don't know why it...

View Article

Need help with shooting and reload script

Hello, I have a shooting script that Instantiates bullets when the mouse0 button is pressed also it sends a ray cast to make bullet holes when the ray cast hits the walls. This is good but now I want...

View Article

I want to change gun position with my camera joystick

i want to change my gun position with my camera joystick, i am working on FPS first time, Need your help Thanks .

View Article


How to add gun to the model, as when it animate, the gun is dis-positioned.

I've my model fully working along with some 10 animations. but now when I'm adding a gun to the model, i.e. in idle state, it works fine, but when I walk the hands move and the gun it dis-positioned....

View Article

First Person Hands and Gun Overlay Position Question

I understand how to set up the overlay camera's settings such as clear flags and culling, and I know how to set up the hand and gun overlay relative to the camera. The problem is that I don't know...

View Article

Gun not reloading properly & time not deducting correctly when below 10 seconds

So I'm working on my 3rd prototype section for my mechanics for my game idea and currently working on a gun that raycasts a bullet hole when it fires at an object however if the object is not the right...

View Article


Firing bullets ( Tnx for the help )

using UnityEngine; using System.Collections; public class instantiate : MonoBehaviour { // have a bullet.prefab, and attached it to script public Rigidbody bullet; // barrelEnd- an empty object (...

View Article


Rapid Laser?

I'm trying to make my lasers shoot rapidly instead of shooting a long line here is my code, thanks! using UnityEngine; using System.Collections; public class LaserScript : MonoBehaviour { LineRenderer...

View Article

alternately firing 2 guns C#

Hi, I have a spaceship with 2 guns. I wanted to shoot them alternately. Like that: ![alt text][1] [1]: /storage/temp/61251-delme.jpg So I wrote that script: public GameObject shot; void Update () {...

View Article

Muzzle flash script not working properly

Hi all, For some reason this code here doesn't work and I have no clue why: function muzzleFlash () { gameObject.GetComponent(Light).enabled = true; gameObject.GetComponent(SpriteRenderer).enabled =...

View Article

Inaccurate shooting script for gun

Hello guys. I was making my own script to let my gun shoot. I've tried a lot of ways, from raycasting to instantiating my bullet game object, and the last option is working near to perfectly. The...

View Article


Unity 2d simple c# shooting script

Can somebody tell my a simple c# shooting script that fires a bullet at 1000 units (whatever the speed is), and when the bullet collides with something, it sets the object that it collides with's...

View Article

problems with switch guns need help

I need help with my gun swith statement (Look to the bottome of page): #pragma strict var EmptyInScene : GameObject; var weapons : GameObject[] = new GameObject[4]; // Array of Weapons private var...

View Article


Unet isLocalplayer issues with child objects of player

Hi im still new at networking with unity but i do enjoy the challenges, one of the issues im facing at the moment is this. i have a weapon script on my player > gun (Child object of player, also has...

View Article

How do I restart and stop this animator

I am trying to make a shooter game and I have a gun that is constantly firing and I have made the animation stop however I need it to start for it to fire once when the left mouse is clicked and stop...

View Article


Gun recoil with mouse look script help

I have added my mouselookscript to the spine of my model, and have made the camera a child of the spine. so when I look around my character looks up and down. I would like to add recoil to my spine...

View Article

Making my gun do damage from 25-50?

I just made a question post, and Glurth helped me, although I need help again. I am not sure how to do a damage rate from 25-50, so my gun does a number of damage thru that range. Ill give my code for...

View Article

How to make all Guns look at the same point

Hi ! I have a little problem with my Unity 3D Game. I need that all my guns point towards a same point, controlled by the mouse. Look at this picture : ![alt text][1] [1]: /storage/temp/65283-issue.png...

View Article
Browsing all 592 articles
Browse latest View live


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