Question Forcing Weapon from magicbox

thelegend92

Veteran
Messages
2
Reaction score
1
Points
553
Hello! i am working on learning gsc. how is it possible to make it so i force a weapon out of the box? thanks!
 

MrFawkes1337

Veteran
Messages
42
Reaction score
19
Points
793
The mystery Box iirc uses the level.zombie_weapons array to load weapons, then uses GetArrayKeys to check if a player has a specific weapon key and removes it from the array. If you edit the level.zombie_weapons array in a way that leaves your weapon of choice at that time, and saves it to a new array, you could probably create a mystery box to use it, but I don't know about the main box. in theory its possible, I recommend looking at zm_magicbox.gsc, as thats where I looked for a simple Idea for you.
 
Top