So currently I have a system which equips Weapons, right now. I am planning on adding armour and potions. So I have done the weapons and the only thing I need to fix is when a player dies everything in there backpack and character, so an equipped weapon gets, removed. I know I’ll need a character related event but not sure how it will work, and how to implement.
If you need me to show any code, please let me know. All I need is a guide of some sort to make sure when a player dies there items would get removed.
I know about this event, but how would I get the equipped weapons, would I make a for loop, if so how. I tried this event with giving basically reloading there data, but this creates duplicates, and may cause loss of data. With a for loop, would I just have to loop through everything and save it?