- Home /
How would i make a system that allows me to unlock and carry multiple weapons?
I've been trying to figure this out for a bit, I've been trying to make a retro styled fps for a bit but could never figure out a system that allows for weapon switching, weapon unlocking and carrying multiple weapons. I could figure out how to make a weapon switching system by itself, i could figure out how to make a pick up system by itself, but they both used making said weapons take use of being active and not active, and haven't been able to work together.
Answer by CmdrZin · Dec 17, 2020 at 11:40 PM
Try making a List to hold all your Weapon objects. Then for your Player just set the current weapon = List[ index ] where index is the number of the weapon.
Set .active = false when adding to the list. Set .active = true when assigning to the Player.
Your answer
Follow this Question
Related Questions
CoD style weapon selection 1 Answer
Spawning 2 players when the game starts 2 Answers
C# Destroy Prefab on Pickup 1 Answer
Animating a weapon into/out of player view 1 Answer
How to create a stationary weapon FPS controller ? 2 Answers