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.
24 lines
554 B
24 lines
554 B
scriptName defaultActivateOnLoad extends ObjectReference
|
|
{ Activates the object's linkedref on load. Includes a slight delay to make sure the target is loaded, too. }
|
|
|
|
ObjectReference myLinkedRef
|
|
Keyword Property linkedRefKeyword Auto
|
|
bool property doOnce Auto
|
|
|
|
Auto State PreActivation
|
|
Event OnLoad()
|
|
Utility.Wait(0.25)
|
|
Self.GetLinkedRef(LinkedRefKeyword).Activate(Self)
|
|
if (doOnce)
|
|
gotoState("PostActivation")
|
|
EndIf
|
|
EndEvent
|
|
|
|
Event OnActivate(ObjectReference obj)
|
|
OnLoad()
|
|
EndEvent
|
|
EndState
|
|
|
|
STATE PostActivation
|
|
;Do nothing
|
|
EndState
|
|
|