enderalse/source/scripts/defaultenabledisablelinkonopenclose.psc

10 lines
335 B
Plaintext
Raw Normal View History

Scriptname DefaultEnableDisableLinkOnOpenClose extends ObjectReference
{Script, when placed on a door, will enable it's linked ref on close, and disable it on open.}
Event OnOpen(ObjectReference akActionRef)
self.GetLinkedRef().Disable()
endEvent
Event OnClose(ObjectReference akActionRef)
self.GetLinkedRef().Enable()
endEvent