How to make a simple "Primary, Secondary" loadout system

Is there any way to make a “Primary, Secondary, Melee” weapon slots system easily like this without having to do a lot of modifications or just extra scripting in general? My game is a class-based game where each class has a specific primary, secondary, melee, etc that they are assigned. I’m not really familiar with these kind of systems so I was wondering what the best way to do it is.
image

2 Likes

Figured it out. You just have to classify each weapon as “Primary” or “Secondary” or “Utility” for example and then just check to make sure they don’t have more items than allowed based on how you classified each weapon.

For example, if a user tries to get a utility item, you have to check to make sure that in their inventory they dont already have 3 items that are tagged as “Utility”

Same for the gui part, just make it so it will find an item in the user’s inventory which is classified “primary” and then code it to show that item in primary gui slot.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.