Search the Community
Showing results for tags 'spawn point'.
Found 1 result
NumPad posted a topic in Discussions / Bug reportsHi, I'm using the C# version of FPS Kit 2 v1.5. I add a weapon and an optic (Holographic Sight), so when I fire the weapon in hip mode, the bullet goes to the center of the screen. Nice. When I'm aiming: When I aiming, the bullet goes lower than my Red Reticle of the HoloSight, making you hit the chest when pointing to the target's head. Is there some way to change that? Or I'm doing something wrong? I copied the script parameters from the defalut M4 w/ Silencer. I think that this part of code is responsable to set from where the bullet spawn and hit. Vector3 dir = gameObject.transform.TransformDirection(new Vector3(Random.Range(-0.01f, 0.01f) * triggerTime, Random.Range(-0.01f, 0.01f) * triggerTime, 1)); Vector3 pos = transform.parent.position; //Vector3 pos = OpticPos.transform.position; if (Physics.Raycast(pos, dir, out hit, range, layerMask))