Modme Forums

How to find the Active Mystery Box in Script

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: Abnormal202
Hello, I'm trying to make a script where a different model appears depending on what box location the box is in. I've been looking through _zm_magicbox.gsc for hours and I just can't seem to figure out how to find the box that is active in script, and use that to make a certain script_model appear. If anyone else has experience working with the mysterybox system in Black Ops 3, your help would be greatly appreciated.


ModmeBot:

Reply By: Abnormal202
Found the answer myself. The way you grab the current active mystery box is with level.chests[level.chest_index].