how to do damage to objects with decal
when i shoot, the gun doesnt spawn bullets, but draws decals on objects, now how do i aply damage to the objects on witch the decals draws?
View ArticleHow do I make a Blender model not become smooth when imported into Unity 3d
I have just recently made a 3d model in unity of a mp7 and looks great but whenever i import it into Unity the model becomes smooth and losses all the edges. I've also tried to import it in different...
View ArticleHow to I make a gun shoot at mouse pointer,2.5d platformer
Hello , i have a 2.5d platformer with a player and some boxes and i can jump around , crouch , move rigid bodys with the player . Now i want to add a gun in the project. I want to be able to shoot at...
View ArticleHow to make player model hold weapons
Well, basically, what I'm trying to achieve is that I want my player model to hold a gun, but the problem is that I'm using mecanim, and I want to make the gun be there all the time, and I know that...
View ArticleFps Gun Scrpt :)
I'm making a FPS i attached a game object to the main camera of a first person controller the game object is to serve as a spawn point to the gun but when i move the camera up and down in the game the...
View ArticleI have been working on an fps for 15 hours now and have ran into this error...
public var bulletPrefab : Transform; public var bulletSpeed : float = 6000; var ammo : int = 30; var gunShot : AudioClip;Shot; var reload : AudioClip;Reload; var emptyClip : boolean = false;} function...
View ArticleBullet Penetration
Ok, so I have been playing with creating guns in unity and I want to create bullet penetration, I have seen a few ideas on how to implement this but they are all for raycast guns, I'm spawning a bullet...
View ArticleGun reload not working?
Hello all, this is my ammo script attached to the gun: var Bullet : Rigidbody; //The bullet prefab is a Rigid body var Spawn : Transform; //Where the bullet shoots from var BulletSpeed : float = 1000;...
View ArticleHow would I go about making an animation affected by this script?
So I made an animation called "M1911Idle" and it is attached to the the arm holding it. It works, but when I use another script to "add weight" to the gun, like when you turn, the gun moves a bit, not...
View ArticleMake two lines of code execute simultaneously?
So I have these two lines of code: yield WaitForSeconds(ReloadTime); audio2.Play(); How would I make those two lines happen at the same time, so while it is waiting for the reload time to pass, it...
View ArticleGun wont stop shaking in shoulder position, when aiming down sights, no shaking?
Hello, my pistol that is a child of the Main Camera in my custom FPS player won't stop slightly jittering while I'm not aiming with right mouse button.. what could be causing this? Thanks. Also, there...
View ArticleDoes animating an object with children still work? (legacy)
Hey all, I'm down to making animations for firing, reloading, idle, running, etc. to my gun, and I was researching how to animate the gun (has multiple parts, like the slide, trigger, clip, etc. into...
View ArticleSpring joint for gun movement in FPS hand?
Hello, I was wondering if I could use a spring joint component somehow to make it so that the arms and gun slightly move to add realism, when the player moves the mouse to look around, or when the...
View ArticleWhen i shoot, the next shoot will have the bullet half way down the screen!!!
when i want to shoot my gun, the first bullet will shoot fine but when i go to shoot anymore... the bullet will be half way down the screen. My code for the FP_Shooting: using UnityEngine; using...
View ArticleWhich is better, shooting a bullet from camera or from the gun itself?
Hi, I was wondering if it would be a better idea to instantiate a bullet projectile from the camera in the forward direction of the player, directly to the dynamic crosshair, or if it would be better...
View ArticleInvoke problem, can't manually reload
Hello, I'm making an FPS game, (right now just working on the player/gun, etc.) and I'm having a bit of a problem. I'm trying to make it so that the player can manually reload using the R key **but**...
View ArticleTemporarily disable audio?
The title basically says it, but I'm making an FPS game and would like to know how to disable audio for a specific time, (for example, 3 seconds.) My FPS character can press the reload key (R) as many...
View ArticleMaking a gun shoot WELL?
Hello, I've been using unity for a while, and I know basic scripting, although I'm still learning. I know that I'm going to get yelled at to go watch tutorials and whatnot, and to learn scripting, but...
View ArticleHow to I make a gun shoot at mouse pointer,2.5d platformer
Hello , i have a 2.5d platformer with a player and some boxes and i can jump around , crouch , move rigid bodys with the player . Now i want to add a gun in the project. I want to be able to shoot at...
View ArticleGun Rotation Sway
Hi, I'm trying to have my weapon rotate with the mouse movements but then rotate back upright. And I want to limit it's rotation. using UnityEngine; using System.Collections; public class GunSway :...
View Article