C# How to do smooth movement to scope
I wanted to know how i can make it when i am in hip cam i can go to sights cam which i put the position of instead of as another camera. this is what i put: Screen.showCursor = false; Vector3 hipCam =...
View ArticleGun with ammo help
I need help with my gun script. I have been searching all over the internet but have not been able to find any help. I have the gun working fairly good but when I try to make my bullets change then it...
View ArticleSetting bullet instansiate direction? help?
Hello, I'm making a medieval first person shooter, similar to the usual FPS but a magic wand instead for a gun, fireballs instead of bullets. The fireballs are not as fast as bullets, so creating a...
View ArticleDo I have to have the animation with the gun?
I am making an animation with blender and i already made the gun but i wanted to know if i have to make the animation with the person holding the gun or do i attach it to his hands with codes in unity3d
View ArticleProblems with Classes...i think
Yeah, so I'm just trying to grasp the concept of classes, so bear with me. I have these lines of code in my scripts. I want to make a class of gun attributes called Gun. Then I want to make a variable...
View ArticleChange Gun Fire Rate
Hi, I am trying to make a gun shoot 14 bullets a second. I have tried many codes, but the only that will shoot at all. One will shoot one bullet every frame, and the other will shoot one bullet a...
View ArticleBootcamp destroy a Enemy
Hi I downloaded the Bootmcamp project and I want to made a enemy witch can be destroyed with the machinegun, but I dont know how to detect the projectil of the gun(it hasnt a collider)(I think they are...
View ArticleUnity Animation doesn't work at all?
I have a gun that has multiple animations. An Idle, a Walking, a sprint, and an AimDownSight. Whenever I set the animations for Idle and Walking they work flawlessly. The second I start trying to use...
View ArticleC# How to have a gun select
Just wanted to know how i can have a gun select spawn the correct gun when i pick it in my loadout. what i have so far is: if (GUILayout.Button ("Change Guns")) { if (GUILayout.Button ("Pistol")) { if...
View ArticleC# How to have weapon pickup
I wanted to ask how i can have weapon pick up when i go over the weapon
View Articlewhat does a gun shoot java script look like
i am very new to coding and was wondering what a java script gun shoot script would look like and how i would use it?
View ArticleGet the Guns by Character
i have a gun and character. What can I do to get the guns by Character
View ArticleAiming down gun scope
I need to know how I can get my gun to aim down the scope so I can get more accurate shots. First part as a sniper aim with zoom in when aiming. Second as a normal machine gun aim. If anyone could help...
View ArticleLight Ignores Layer !!!
I have a problem with my lighting in my FPSGame. I created a new camera and a new layer to prevent weapons from going into walls. The problem is, that whenever I go into a shadow area, the gun wont...
View ArticleNeed help with my gun movement script
So I have been following a tutorial series by ETeeski Tutorials, and I got stuck on fps 1.8. AKA scripting a basic gun with weight. This is the script: #pragma strict var cameraObject : GameObject; var...
View ArticleUnderstanding Gun Scopes & Fov
I'm working to create a semi-realistic weapon simulator prototype. I am not asking for any code on "Sniper scope zooming", as that has been asked numerous times before. At the moment I'm trying to...
View ArticleAdding force to a Rigidbody with Raycast
Hello i need help with adding force to a rigidbody through a raycast i have tried many tutorials but i cant seem to make them work with my script here is my script var Power : int = 18; var CurSpawn :...
View ArticleReal gun range and rigidbody.addforce power?
Hello! I want to make my FPS game as accuratly as possible. How can I make the rigidbody.addforce so that it would be like a real gun? Like how what should I make the addforce integer to be in order to...
View ArticleSetting bullet instansiate direction? help?
Hello, I'm making a medieval first person shooter, similar to the usual FPS but a magic wand instead for a gun, fireballs instead of bullets. The fireballs are not as fast as bullets, so creating a...
View ArticleAutomatic gun sound freaking out
Hi, I have a serious problem, whenever I try to fire my gun in unity the sound plays as it should and that, but after 5 seconds or so the sound starts to freak out, and I have no idea why. Here's what...
View Article