http://i.imgur.com/PHRol1h.pngI added a piece of script to change the lightstate when the power is turned on, but this does not seem to work. Does this work right?
function poweron()
{
trig = getent("use_power_switch","targetname");
trig waittill("trigger",user);
if( isdefined( user ) )
{
level util::set_lighting_state( 2 );
}
}
Double Post Merge: October 06, 2016, 12:23:52 am
I even commentated it out, and it still happens. :(