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

Rotate the textures in the particle system to direction of the particle system?

Well the problem is that I have created a texture in Photoshop that I use for my particle system. I use this particle system as my bullets. The thing is, the guns in my game rotate to look at the...

View Article


Gun not receiving shadows

Hi. I'm making an fps and I just made my gun not clip through walls. But after I did that the gun does not receive any shadows when I walk into a dark area. anyone know how to fix this?

View Article


BCE0005: Unknown identifier: 'bulletSpawn'.

i just get this when i am making bullets BCE0005: Unknown identifier: 'bulletSpawn'. var cameraObject : GameObject; var targetXRotation : float; var targetYRotation : float; var targetXRotationV :...

View Article

Add force to a rigid body with raycast

I made a gun script and it works good and stuff but I can't get it to add force to a rigid body with out getting a error. heres the main part of the script var TheDammage = 100; function Update () {...

View Article

how do i make a proper mounted Machine gun

I have no idea how to even start this, but I'm trying to get a restricted moving machine gun. similar to the ones in the call of duty series that are already positioned.

View Article


Realistic Scope Effect?

Is there a way in making a scope have a sort of realistic effect like: A) Having a visible curvature (not the lens object, the image) B) Having the renderTexture deformed/displaced/etc. as shown...

View Article

JavaScript - FireMode Toggle Help

This is what I currently have: if(Input.GetKeyDown("v")) { FireMode = "Semi"; } if(Input.GetKeyDown("b")) { FireMode = "Auto"; } I want to be able to press one key to toggle between the two firemodes.

View Article

How to make gun sway script affect camera

So, I am trying to add my gun sway effect to my camera that draws my guns over everything else instead of adding the script to every gun, because if I do that my bullets just fly through the walls and...

View Article


Make bullet launch at center of screen

I've tried searching around for a code to fire a bullet to center of screen I know it has to do with ray cast but I don't know how to implement it in my code Thanks var bullet : Rigidbody; var power :...

View Article


Need help with my gun script!

I made a shooting script but when I shoot the gun it shoots really fast and it shoots a lot of bullets at once. I only want it to shoot one bullet every time. Here is my script. using UnityEngine;...

View Article

multiplayer help?!!??!

Hey guys! I'm using the fps kit from Azuline Studios and I really enjoy it so far. But, I've made a campaign and a zombie mode. I would love to have the zombie mode multilayer, but, I don't know how....

View Article

Guns Magazine Filling Itself

My gun script is causing my gun to randomly fill up the max ammo, and I'm not sure why. var projectile : Rigidbody; var speed = 10; var Ammo = 6; var Reloading : boolean = false; var TexturesToLoad :...

View Article

Picking up ammo from the weapon on the ground

Hello! Maybe you now the guy ETeeski. So, i'm making a FPS game using his tutorials. Work pretty good, but i have a problem. ETeeski didn't said anything about it in his tutorials, but it exists. I...

View Article


Timing Between each Gun Shot

I have a script for shooting and it shoots way to fast. how can i change the fire rate? Here is the script: var projectilePrefab:Transform; var projectile2Prefab:Transform; var strayFactor : int = 2;...

View Article

How to shoot RayCast in center of screen?

I need some scripting help My Code #pragma strict var damage : float = 1; var bulletsinclip = 30; var bulletsperclip = 30; var clips = 3; private var nextFireTime = 0.0; var fireRate = .02; function...

View Article


MuzzleFlash for gun

Hi, i need my gun to shoot with a muzzle flash. i have a prefab but it just loops and loops i want it so that i can right click and it plays the prefab thing.(hope i make sence) all helped would be...

View Article

How to make my gun bob up and down whilst running

hey everyone. I am a complete newbie when it comes to Unity3D. I have only just figured out how to attatch a gun to the fp camera. nowwwwwww. When i press "W" i move forward but my gun is still and it...

View Article


Raycast Targeting Reticle.

Basically I have some guns, you can switch between them, and shoot them, and I have them creating a raycast down the barrel so that when its done it will render a reticle at 5 meters out or on the...

View Article

Headshot Collision

Basically I've got a zombie that only is effected by headshots, however when I have a bullet or ray or w/e collide with the object it pulls the parents tag not the tag from the head, (I have a...

View Article

stop gun from rotating

I'm making a 2d platformer where the player has a gun and he can shoot. the gun is rotated according to the mouse and it works fine. what I want to do is that the gun won't pass the ground.. for...

View Article
Browsing all 592 articles
Browse latest View live


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