Jump to content

Script Issue


Deleted804086User

Recommended Posts

I am attempting to create a light switch, and I am using the following script, but the GECK keeps say "myself" and "ligh" are not valid ID's... Sooo I'm confused.

 

scn ValhallaLightSwitchScript

 

ref myself

ref light

short toggle

 

begin onactivate

if myself == 0

set myself to this

endif

if light == 0

set light to myself.getlinkedref

endif

 

if toggle == 0

light.disable

activate

set toggle to 1

else

light.enable

set toggle to 0

activate

endif

end

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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