scriptName AnvilCastleSecretDoorLever03SCRIPT
short open
short busy
begin onActivate
if open == 0 && isAnimPlaying == 0
if busy == 0 && AnvilCastleSecretDoorRef03.isAnimPlaying == 0
set busy to 1
CastleSecretBlack03.disable
playgroup forward 1
AnvilCastleSecretDoorRef03.playgroup forward 1
set open to 1
endif
else
if busy == 0 && AnvilCastleSecretDoorRef03.isAnimPlaying == 0
set busy to 1
playgroup backward 1
AnvilCastleSecretDoorRef03.playgroup backward 1
set open to 0
endif
endif
end
begin gameMode
if isAnimPlaying == 0 && busy == 1
set busy to 0
endif
end
|