Question Forcing Weapon from magicbox

thelegend92

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

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
Hello! i am working on learning gsc. how is it possible to make it so i force a weapon out of the box? thanks!
Interesting question. When I got time I'll check.
 

MrFawkes1337

Veteran
Messages
42
Reaction score
19
Points
568
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