Modme Forums
Menu:

how to change skybox as a certain amount of time passes

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


ModmeBot:

Thread By: maxman5050
I want the skybox to change between night and day multiple times throughout a game in equal intervals


ModmeBot:

Reply By: mathfag
in your sun volume add a SSI and call it in script with this

ssi 1 = lightstate 0
ssi 2 = lightstate 1...

while(1)
	{
	SetLightingState(0);
	wait 10;
	SetLightingState(1);
	wait 10;
	}


ModmeBot:

Reply By: maxman5050

mathfag
in your sun volume add a SSI and call it in script with this ssi 1 = lightstate 0 ssi 2 = lightstate 1... while(1) { SetLightingState(0); wait 10; SetLightingState(1); wait 10; }

error:
^1ERR(0) scripts/zm/zm_breakout.gsc (139,2) : syntax error, unexpected TOKEN_LEFT_CURLY, expecting $end : {


ModmeBot:

Reply By: eDeK

thread skybox();
function skybox()
{
  while(1)
  {
    SetLightingState(0);
    wait 10;
    SetLightingState(1);
    wait 10;
  }
  wait 1; 
}