
11-21-2012, 09:33 PM
|
Registered User
|
Join Date: May 2012
Posts: 84
|
|
Weapon Scrolling
The best way I can explain what I am trying to do, is compare it to a hat system (Where the hat appears above your head, and you scroll though, and if you don't have the hat, it goes onto the next one)
I'm trying to avoid making an inventory so I am making a weapon system where you can scroll though your different weapons.
Every weapon is assigned a number.
For example, Katana = weapon 1.
So when you get it, clientr.weapon1 = true; so the client knows the player has it.
So lets say you have weapon1, 2, 3, 6.
How would I go about making a system that scrolls through 1, 2, and 3, but because there is no 4 or 5, it skips right to 6? |
|
|