Designing an FPS Framework: Beginner’s guide [PART 2]

I will try to do some tests thanks!

hey dude, amazing tutorial, but when my ammo goes to zero i cant shoot anymore, can u help me?
obraz_2023-11-28_211232949

I know it’s been several months, but I just saw this and forgot to reply (mb), I’m sure you’ve figured it out by now but I still wanted to answer for the people who has the same problem.

instead of input.UserInputType it should be input.KeyCode

(haven’t been on the forums for ages)

1 Like

Kind of curious, is there a way to return the gun to the starting shooting position with the spring module you used? I’m currently having a rough time figuring that out. Since my recoil is only going up and not returning

this is what it looks like, i’ve tried using lerp to do it but it does not work for me, it could be my bad scripting skills since I’m not really good at it

There’s multiple ways you can do that, one way is to simply shove it in the opposite direction too or like someone already mentioned here:

1 Like