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
531 B
24 lines
531 B
Scriptname defaultBloodPoolScript extends ObjectReference
|
|
|
|
import debug
|
|
import utility
|
|
|
|
bool property startFull = false auto conditional
|
|
{set to true to start filled}
|
|
|
|
string property fillAnim = "play" auto
|
|
{OnLoad calls this if the object starts in the open state}
|
|
|
|
EVENT OnLoad()
|
|
if (startFull)
|
|
playAnimation(fillAnim) ;activator starts filled
|
|
endif
|
|
endEVENT
|
|
|
|
auto STATE waiting ; waiting to be activated
|
|
EVENT onActivate (objectReference triggerRef)
|
|
; fill when activated
|
|
playAnimation(fillAnim)
|
|
endEVENT
|
|
endState
|
|
|
|
|