Quantcast
Browsing all 592 articles
Browse latest View live

Why does my gun shoot 1 bullet and use 2 ammo? [C#]

So, I have my gun script and it shoots bullets where my mouse courser is, but sometimes it uses 2 ammo per shoot, which I don't want. I don't know where the problem it. Could someone help me out? Code:...

View Article


How to make my gun shoot down [C#]

So, I have my gun and it can shoot up and and forward, but not down. Its a 3rd person shooter, and the shooting system is click and fire where the courser is. Can someone help me out? using...

View Article


[New Script] How to shoot where my camera is [C#]

Okay, this is a different script from the last time I posted about this topic. So, I have a TPS and the cursor is locked in the middle. The camera is 360, and I want to be able to shoot where my camera...

View Article

Wierd rotations in very simple reload animation

Hello all, I have a gun, which I rotate a to the left and down a little for a reload animation. I want to keep it still for a few seconds before going back to it's original rotation. So I go a few...

View Article

Reload 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 Article


Rotations 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 Article

How 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 Article

activate 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


New Arms for every Gun model or IK targets?

Hey, I want to make a multiplayer FPS. I already created the whole Body of my character wich is only seen by the other player and several guns with the same arms for each one. Now I realised that I...

View Article


Testing Animations And They Just Don't Seem To Work

So I'm planning to make a personal project and wanted to create the simplest gun I could think of. Two objects, one main gun and another the magazine. So I animate both the gun and the magazine in...

View Article

Trigger events with bullets

I am trying to find a way to use the following code to trigger a target to fall over. However; every way I try to do this I can't get the event to occur. using UnityEngine; using System.Collections;...

View Article

How to have magazine from a gun come out realistically and actually spawn...

I'm trying to code a reload animation. In a game like Max Payne 3 when the gun reloads the gun realistically ejects out a magazine when the character removes it when his hands. And then grabs and puts...

View Article

Mecanim idle becomes permanently screwed up.

Let's say I have a gun object, that is disabled, not destroyed, when weapons are switched. Let's say that the hand holding the barrel moves during an animation to, say, grab the magazine. I have an...

View Article


Adding muzzle flash to the gun....

I Want to add a muzzle flash to the gun the gun automatically fires if the gun aims on enemy...... #pragma strict var Rounds : int; var Ammo : int; var Reloading : boolean; var MaxAmmo : int = 20; var...

View Article

Reloading delay problem..

#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; function Start() {...

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>