- Home /
Arena shooter style weapon inventory
I am making a local multiplayer fps and I'm aiming towards an arena shooter style of gameplay. How would I go about making a weapon inventory like quake and unreal tournament where you can hold more than 2 weapons at a time and switch between them at any time if the player has picked them up
Answer by top2323 · Jun 19, 2018 at 04:11 AM
When you pick them up, you could assign the weapon to a free number key, then when the player presses a number key, you unparent the current weapon, move it far away, then parent the new weapon and move it to the previous gun's location
@top2323 cool, I do have a weapon switching script already set up, it is attached to the weapon holder child of my player and the weapons are attached to the weapon holder as children, it scrolls through the available children attached to the weapon holder, I could use that as a base and add a ammo variable to my shooting script that when the gun's ammo is depleted it becomes unavailable to use
Your answer
Follow this Question
Related Questions
Searching your inventory for an item,How do i search for an item in my inventory? 1 Answer
UNet - Spawning items for players to pick up 0 Answers
I'm trying to make a weapon pickup script but can't quite get it to work. 0 Answers
adding inventory items is half-working 0 Answers
Swapping Weapons In Game 0 Answers