short triggered
short busy
begin onActivate
if triggered == 0 && isActionRef <REFDESHEBELS == 1 && busy == 0
playgroup forward 0
set triggered to 2
set busy to 1
endif
if triggered == 2 && isActionRef <REFDESHEBELS> == 1 && busy == 0
playgroup backward 0
set triggered to 1
set busy to 1
endif
end
begin gameMode
if triggered >= 1
if busy == 1 && isAnimPlaying == 0
set busy to 0
endif
if triggered == 1 && busy == 0
set triggered to 0
endif
endif
end
begin onReset
reset3DState ;puts animations and havok stuff back in place
set triggered to 0 ;whatever state variables should go back to
set busy to 0
end