Account
News
Downloads
Community
Wiki
Walkthrough

XPAichan01DartControlButtonSCRIPT

Editor ID:
XPAichan01DartControlButtonSCRIPT


Form ID:
00070F52


Type:
Object


Script:
scn XPAichan01DartControlButtonSCRIPT

; activates parent and resets to starting position

short busy
short stage
short dartsDeactivated
float timer
ref mySelf
ref dartTrigger


begin onActivate

set mySelf to getSelf
set dartTrigger to XPAichan01DartTrapControlTrig01REF

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
set mySelf to getSelf
set dartTrigger to XPAichan01DartTrapControlTrig01REF

if dartsDeactivated == 0
dartTrigger.disable
set dartsDeactivated to 1
elseif dartsDeactivated == 1
dartTrigger.enable
set dartsDeactivated to 0
endif

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
set dartsDeactivated 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