Modme Forums

Mystery Box won’t spawn unless Start prefab is used?

Game Modding | Call of Duty: Black Ops 3 | General Discussion


BetiroVal:

I don't know why it happens, but for some reason, I cannot have a random mystery box spawn.
If I try to place the box_01, box_02 prefabs down, both are visually glitched and will not work.
Any ideas why?

Note: These boxes are custom.
They do work, provided I use the box_start prefab I've created for them.
And they do not glitch when the mystery box moves.


Wild:

That's because you also have to add something to your map's .gsc

My setup is with Vertasea's V7 boxes. Only using locations 1 through 9, not the start location. Then inside of zm_yourmap.gsc underneath zm_usermap::main(); add this:

//Random mystery box start
    level.random_pandora_box_start = true;

And then the box starts in a random location every game :)


Brodie3750:

That's because you also have to add something to your map's .gsc

My setup is with Vertasea's V7 boxes. Only using locations 1 through 9, not the start location. Then inside of zm_yourmap.gsc underneath zm_usermap::main(); add this:
//Random mystery box start
    level.random_pandora_box_start = true;

And then the box starts in a random location every game :)



what would you need to do to make it only random between 2 spots?

e.g if i wanted it to randomise between the start box location and box location 3 when a game is launched


Scary Branden:

In your map's gsc main function
level.random_pandora_box_start = true;


Set the KVP of script_struct to start_exclude - 1 for boxes that do not appear randomly.

https://forum.modme.co/threads/random-mystery-box-location.3224/