I've been fighting with this for hours and tried many different ways - nothing works correctly. I've got a pull chain, have also tried a lever (same difference), that is supposed to enable/disable an xmarker. Xmarker is connected to many other objects and is disabled by default. The levers/chains only enable it and won't disable it or to put it another way seem to work once. I've tired variations of these 2 scripts.
ObjectReference Property RefToToggle Auto Event OnActivate(objectReference akActivator) If RefToToggle.IsDisabled() Enable() EndIf If RefToToggle.IsEnabled() Disable() EndIf EndEvent
As I said it enables the marker and its connected objects then its dead. Other script...
objectReference property refToToggle auto auto state waiting Event OnActivate(objectReference akActivator) if refToToggle.isEnabled() refToToggle.disable() goToState("Done") endifif refToToggle.isDisabled() refToToggle.Enable() goToState("Done") endif endEventendState
Same thing happens, works once.
I've tried other default scripts but get the same results. Help please.