AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   give user multiple weapons (dynamically) (https://forums.alliedmods.net/showthread.php?t=229339)

HLM 11-05-2013 15:58

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.

alan_el_more 11-05-2013 16:08

Re: give user multiple weapons (dynamically)
 
Check this

HLM 11-05-2013 17:11

Re: give user multiple weapons (dynamically)
 
Quote:

Originally Posted by alan_el_more (Post 2057288)

Yes, thank you. Just what I needed.

ConnorMcLeod 11-05-2013 17:11

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.