Modme Forums
Menu:

Active box

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


ModmeBot:

Thread By: mathfag
Any way to know which box is active?

I've tried

level.chest_index
but it randomizes the number every game.


Basically I'm making a HUD that tells you where the box is (like in kino where the lights turn on on the board but for the hud).

////part of script       

 switch( level.chest_index )
        {
            case 0: 
                thread score_box_hud( "House", 10, 260, 1 ); 
                break;
            case 1: 
                thread score_box_hud( "Hallway", 10, 260, 1 );
                break;
            case 2: 
                thread score_box_hud( "Basement", 10, 260, 1 ); 
                IPrintLnBold("basement");
                break; 
            default: 
                thread score_box_hud( "error", 10, 260, 1 ); 
                break;
        }


As you can see I can't use this if the number randomizes every game.


PS is there a way to know when a firesale is active