Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Sign in to follow this  
NumPad

How to correct the bullet spawn point when using Optic?

Recommended Posts

Hi, 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: Yd9A1q8.png

 

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.

Please login or register to see this code.

 

Edited by NumPad
Title wrong typo

Share this post


Link to post
Share on other sites

Hi, you must adjust aim position in Inspector window. 
And make sure that weapon does not have any rotation.

 

Here you can find few tutorials for old version of kit:
Please login or register to see this link.

 

Here i made few tutorials for new version.
Please login or register to see this link.
Please login or register to see this link.

Share this post


Link to post
Share on other sites

Hi, I found it. My problem is because of the specific weapon model. So now, in the code I added the Y position difference when I'm aiming.

 

Please login or register to see this code.

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×