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.
17 lines
403 B
17 lines
403 B
5 months ago
|
ScriptName DefaultDisableLinkedRefOnLoad extends ObjectReference
|
||
|
{If this object is enabled, when the cell loads, it disables its linkedref. Useful for enable-state swapping on cell loads.}
|
||
|
|
||
|
bool disableOnLoad = False
|
||
|
|
||
|
Event OnCellLoad()
|
||
|
if (disableOnLoad)
|
||
|
Self.GetLinkedRef().Disable()
|
||
|
EndIf
|
||
|
EndEvent
|
||
|
|
||
|
Event OnActivate(ObjectReference obj)
|
||
|
disableOnLoad = True
|
||
|
EndEvent
|
||
|
|
||
|
Event OnReset()
|
||
|
EndEvent
|