UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Lighting States not working

broken avatar :(
Created 7 years ago
by corybestgrill
0 Members and 1 Guest are viewing this topic.
2,124 views
broken avatar :(
×
broken avatar :(
Location: gbManchester
Date Registered: 21 October 2016
Last active: 2 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
corybestgrill's Groups
So I followed a couple of tutorials on making the lighting states change when the power is off / on.

In radiant I have it set so when it's in light state 1 it is night time and lights are switched on, then when it's light state two it is day time and the lights go off but for some reason my map starts up in daytime with the lights off.

Here is my code:
Code Snippet
Plaintext

//Lighting State Change When Power is On
thread init_power();


function init_power()
{
    level flag::wait_till("power_on");
    level util::set_lighting_state(3);
}

I was told in  tutorials to use lighting state 3 as the game recognises it as lighting state 2
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
So I followed a couple of tutorials on making the lighting states change when the power is off / on.

In radiant I have it set so when it's in light state 1 it is night time and lights are switched on, then when it's light state two it is day time and the lights go off but for some reason my map starts up in daytime with the lights off.

Here is my code:
Code Snippet
Plaintext

//Lighting State Change When Power is On
thread init_power();


function init_power()
{
    level flag::wait_till("power_on");
    level util::set_lighting_state(3);
}

I was told in  tutorials to use lighting state 3 as the game recognises it as lighting state 2

It would seem like once the power is turned on it sets it to state 2, therefore you would need the lights to be on in state 2 and off in state 1.
broken avatar :(
×
broken avatar :(
Location: gbManchester
Date Registered: 21 October 2016
Last active: 2 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
corybestgrill's Groups
It would seem like once the power is turned on it sets it to state 2, therefore you would need the lights to be on in state 2 and off in state 1.

So are you saying I should swap everything round and have night time and lights on as light state 2 and daytime with lights off as 1?
broken avatar :(
×
broken avatar :(
Location: gbManchester
Date Registered: 21 October 2016
Last active: 2 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
corybestgrill's Groups
Any ideas?

 
Loading ...