4
Fork 0
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.
 
 
 

44 lines
809 B

scriptName NorSarcophagusTopAnim01SCRIPT extends ObjectReference
{This script causes the sarcophagus lid to animate when activated}
import debug
import utility
;bool onLoadDone
;bool onResetDone
bool isOpened = false
;*******************************************
Event onReset()
onLoad()
endEvent
;*******************************************
Event onLoad()
if(!isOpened)
playAnimation("SnapClosed")
endif
endEvent
;*******************************************
Auto State waiting
Event onActivate (objectReference triggerRef)
gotoState ("busy")
isOpened = true
playAnimation("OpenStart")
endEvent
endState
;*******************************************
State busy
Event onActivate (objectReference triggerRef)
;do nothing
endEvent
endState
;*******************************************