I am working on a Battle Royale type game and I need assistance with creating an item pickup system.
Currently, I have a script cycling through a table of in-game weapons and finding a weapon with the closest distance to adornee a billboard UI to. The issue with this current setup is that:
- it will eventually have to cycle through hundreds of in-game items
- it freaks out when the player is in-between items (tries to adornee to both at the same time)
- it isn’t really user-friendly (players may want an item they are aiming towards instead of closest to)
- the billboard UI is really responsive to camera movements and can be hard to read when the player is moving their camera to the slightest amount.
Is there any library or learning resource that tackles item pickup systems similar to that of Fortnite or BOTW? Anything helps me out!