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.
16 lines
478 B
16 lines
478 B
Scriptname defaultDisableOnloadAfterWait extends ObjectReference
|
|
{This reference will disable a set time after being enabled.}
|
|
import debug
|
|
import game
|
|
import utility
|
|
|
|
float property timeBeforeDisable = 1.0 auto
|
|
{Time before you want this reference to disable after it is enabled. - DEFAULT = 1}
|
|
|
|
bool property willFade = FALSE auto
|
|
{Whether this reference will fade when it is disabled. - DEFAULT = 0}
|
|
|
|
Event OnLoad()
|
|
wait(timeBeforeDisable)
|
|
self.Disable(willFade)
|
|
EndEvent |