Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
335 B
10 lines
335 B
5 months ago
|
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
|