the function
get_user_weapons(id, weapons[32], &num) will return(?) the bitsum of all weaponbits a player has, I want to create an entity when the user dies with this bit, and when someone touches it, they will pick up all weapons that user had, what would be the easiest way of doing this? I have considered making a switch with the return and starting with the highest bitflag weapon and working my way down to add weapons, I am sure there is an easier way to do this though. any help with this would be greatly appreciated.
__________________