give user multiple weapons (dynamically)
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.
|
Re: give user multiple weapons (dynamically)
|
Re: give user multiple weapons (dynamically)
Quote:
|
Re: give user multiple weapons (dynamically)
Create a weaponbox then, you should be able to store in it all player weapons and bpammo, storage is built with the same system.
|
| All times are GMT -4. The time now is 23:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.