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.
23 lines
530 B
23 lines
530 B
5 months ago
|
scriptName defaultPlayEffectOnActivate extends objectReference
|
||
|
;
|
||
|
;
|
||
|
;=============================================================
|
||
|
|
||
|
string property anim01 = "playAnim01" auto
|
||
|
string property animEndEvent = "endAnim" auto
|
||
|
bool property waitForEndEvent = false auto
|
||
|
auto state waiting
|
||
|
event onActivate(objectReference triggerRef)
|
||
|
if waitForEndEvent
|
||
|
goToState("DoNothing")
|
||
|
playAnimationAndWait(anim01, animEndEvent)
|
||
|
goToState("waiting")
|
||
|
else
|
||
|
playAnimation(anim01)
|
||
|
endif
|
||
|
endEvent
|
||
|
endState
|
||
|
|
||
|
state DoNothing
|
||
|
endState
|