Account
News
Downloads
Community
Wiki
Walkthrough

XPGardens03RuinsButtonResetSCRIPT

Editor ID:
XPGardens03RuinsButtonResetSCRIPT


Form ID:
0007DFEB


Type:
Object


Script:
scn XPGardens03RuinsButtonResetSCRIPT

; activates parent and resets to starting position

short busy
short stage
float timer

begin onActivate

if busy == 0 && stage == 0
set stage to 1
set busy to 1
playgroup forward 1
set timer to 4
endif

end

begin gameMode

if stage == 1 && timer <= 3
XPBloodPoolDoorREF.unlock
XPBloodPoolDoorREF.SetOpenState 1
set stage to 2
endif

if (isAnimPlaying == 0) && stage == 2 && timer <= 2
playgroup backward 0
set stage to 3
endif

if (isAnimPlaying == 0) && stage == 3 && timer <= 0
set busy to 0
set stage to 0
endif

if timer > 0
set timer to timer - getSecondsPassed
endif

end

begin onReset

reset3DState
set stage to 0
set busy to 0

end


Mit der Nutzung dieser Website erklären Sie sich damit einverstanden, dass wir Cookies verwenden. Weitere Informationen hierzu finden Sie in unserer Datenschutzerklärung.
OK