Jump to content

Help with a simple script.


Welkynd420

Recommended Posts

Im pretty new to scripting. I only know how to do a few basic ones. Im trying to make an "activator" that when activated will enable/disable all of a specific lightID in the cell. Currently I have a bunch of lights that make the room dark. So the idea would be that on activating a switch these "dark lights" would be disabled, making the cell lighter. Any advice on where to start would be appreciated.

Link to comment
Share on other sites

figured I might as well state what i've tried so far.

 

begin disable_darklight

 

short controlvar

 

if ( onactivate == 1 )

 

if ( controlvar == 0 )

 

"darklight_1000"->disable

set controlvar to 1

 

if ( controlvar == 1 )

"darklight_1000"->enable

set controlvar to 0

return

endif

endif

endif

 

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...