UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: animallover on June 13, 2017, 06:31:01 pm

Title: lightning states
Post by: animallover on June 13, 2017, 06:31:01 pm
How can i change the lightning state? For example like use a trigger or something and the skybox changes? Is this possible?
Title: Re: lightning states
Post by: Archaicvirus on June 16, 2017, 03:43:54 am
How can i change the lightning state? For example like use a trigger or something and the skybox changes? Is this possible?
Code Snippet
Plaintext
void SetLightingState(<new light state>)

[MANDATORY] <new light state> new state to change to. Lighting state defaults to 1 at start of game
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: Changes lighting state for the map
EXAMPLE: SetLightingState( 2 )
trig waittill("trigger");
SetLightingState(2);

ambient lighting
lightning bolt
:accepted:

I haven't done this before, but the tutorials I've seen describe first setting up an additional lighting state within your map using radiant. Your default skybox should be ssi1, out of a total 4 states. You would set up a different skybox on ssi2, so when you switch lighting states... you guessed it. There is a tutorial on this already, here I believe. I don't know the entire process, but hope that helps.