Whenever I look down my character moves on its own
For my game, I want to have a grappling gun, but I had an issue where if I look down (not fully) my character starts moving to the left, here is the grapple gun code using UnityEngine; public class...
View ArticleBug With 2D Gun
So I have a gun script the follows the mouse and I add force to the right, but in my character controller script if my player moves left it change the scale from 1 to -1 basically changing where the...
View Articledamage system
so i have a gun script and a custom bullet script does any one know how i can make a damage system like the enemy will have 100 health and not a one shot this is the gun script //bullet force public...
View ArticleGrappling gun line still has line when inactive
Hello, can someone help. I've combined DaniDevs Grappling gun script with Brackeys GunSwitching script and I'm having an issue, If I switch to a different gun in the middle of grappling, the line stays...
View ArticleHow to move gun from middle of screen to right of screen?
So i'm making an FPS where time slows down when you aim. There's an aim counter that automatically un-aims the gun when you've been aiming too long. For this, I'm moving the gun from the center of the...
View Articlewhen float is less then zero, do action once
I'm making a game where time slows down when you aim. There's a timer so that you can't aim forever. When the timer goes off, I want the gun to move to the right once, but I can't seem to figure it...
View Articlehow to display the correct numbers of ammunition per weapons
Hello, I'm a beginner of unity and coding, when I have a probleme I check on internet but after an hour of reserching I didn't found any solution. My problem is: I have 2 weapons and a TextMeshProUGUI...
View Articleremoving an int after random use
Yeah idk how to work with break or return but for my semi randomized game i need it to pick out a random number do it then disable it, to reload is pressed(i already have the randomized and doing stuff...
View ArticleHow to make weapon orbitiong player and follow the camera at the same time...
I'm trying to make some neon style rougue-like game with a sphere that represents a main character.... And i'm really stuck with this gun issue cause when i'm making it a camera child...
View ArticleCircular Bullet Spread for Shotgun / Bloom
Hello All, I am currently trying to make a shotgun script for my game. I want to add a bullet spread to each bullet. I want to bullet spread to be in a circle though not a square. The Shoot function is...
View ArticleAny Suggestions for how I could improve the gun cooldown?
I am currently working on a game where the Enemy follows the player and then shoots. Right now the shooting goes on forever. I tried to add a cooldown but it doesn't seem to be working. Do you know How...
View ArticleHow to setup gun shot sound using only animator
Im using Unity 2018.4.20f1, this is the version required to produce content for "Vrchat". vrchat doesnt allow many custom scripts so i need to figure out a way to do this using only animators, i have a...
View Articlehow to add shoot cooldown
I want to add shoot cooldown to my single shot gun how do i do it using UnityEngine; using System.Collections; using UnityEngine.UI; using TMPro; public class SingleShotGun : MonoBehaviour { public...
View ArticleHitmarker still shows while reloading
Im making an aim trainer and i just added reloading and ammo, but heres the thing, u can still see the hitmarker. i tried putting it in an if(!isReloading) if statement but it still doesn't work heres...
View ArticleHow to pass weapon owner name to projectile?,
Evening or Morning. I am trying to pass the weapon owners name to a projectile? I am able to get the weapon owners name but when i try to pass it to the projectile, the projectile owners name is the...
View ArticleHow to make delay for shooting in Unity/photon 2
Here is my code: using Photon.Pun; using System.Collections; using System.Collections.Generic; using UnityEngine; public class SingleShotGun : Gun { [SerializeField] Camera cam; PhotonView PV; public...
View Articlebullet doesn't go anywhere
I made the following script and attached it to my gun, which has a child that is located at the barrel named launch. using System.Collections; using System.Collections.Generic; using UnityEngine;...
View ArticleBullets velocity are stopped after i resume time,Shooting While Time Is Disabled
Hi! I am currently making a puzzle solving FPS where 1 ability is to STOP TIME. When you stop time there is one issue, bullets that you shoot when time is stopped remain stopped after you resume time,...
View ArticleBullet moving back and forth between player and random position.
Whenever I instantiate a bullet it glitches and starts moving between the player and a seemingly random position.![alt text][1] [1]: /storage/temp/163307-20200713-1344.png
View ArticleHow would I implement this reload system?
I'm making a game where reloading is a core game mechanic. I am nowhere near implementing it yet but I am fairly sure I can get the reload done with a timeline, which I start whenever I want to reload....
View Article