I’m working on my first VR game with a friend of mine, and I’m currently coding in the mag system. One of the parts of this involves ammo count. I need a way to have a default count of ammo (in this case 30 ill just use a pub variable and then I can attach the modular script to each specific mag to set it) and then have the count in each prefab deplete separately such that you don’t run black on ammo, go to reload and load in an empty mag because they all run off the same script. Also, while I’m on this topic, I’d like to ask about having A: the value of ammoCount correspond to the amount of rounds that actually get rendered in the mag (for windowed PMAG’s, Lancers, etc.) and B: putting a follower spring on a spline and have that move as the count goes down and the follower moves up towards the top. Anyways, that’s enough rambling about my stupidity, if anybody’s got an answer, it’d be much appreciated!
Thanks for your time and I hope I didn’t bore you to death lmao