Deleted804086User Posted June 14, 2009 Share Posted June 14, 2009 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 myselfref lightshort toggle begin onactivateif myself == 0set myself to thisendifif light == 0set light to myself.getlinkedrefendif if toggle == 0light.disableactivateset toggle to 1elselight.enableset toggle to 0activateendifend Link to comment Share on other sites More sharing options...
TGBlank Posted June 14, 2009 Share Posted June 14, 2009 set myself to this <-- wrong. Use GetSelf Link to comment Share on other sites More sharing options...
Deleted804086User Posted June 14, 2009 Author Share Posted June 14, 2009 according to GECK getself is in invalid... :wallbash: Link to comment Share on other sites More sharing options...
TGBlank Posted June 14, 2009 Share Posted June 14, 2009 http://geck.bethsoft.com/index.php/GetSelf sigh, just try with this: SCN ValhallaLightSwitchScript Ref rLight Begin OnActivate Set rLight To GetLinkedRef If (rLight.GetDisabled) rLight.Enable Else rLight.Disable EndIf Activate end Link to comment Share on other sites More sharing options...
Deleted804086User Posted June 14, 2009 Author Share Posted June 14, 2009 NM trial and error saves the day!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.