ReferenceVerse
Match Timer End
match timer end
Updated
match-timer-end in ~90 seconds.The Jitterbean's hyper bean-rush ends with a sudden, shop-closing siren the exact second your thirty-second timer runs out — and this two-device combo is what yanks the lever!
The timer device tracks the countdown, and when it hits zero, its CountdownEndedEvent fires to wake up your waiting code.
We await that exact event, grab the first player from the playspace, and pass them to the end game device's Activate method to instantly close out the round.
Reach for this pattern whenever you need a hard time limit that automatically triggers your end-of-match logic the second the clock runs out.
jitterbean_match := class(creative_device):
@editable
CountdownTimer : timer_device = timer_device{}
@editable
EndGame : end_game_device = end_game_device{}
OnBegin<override>()<suspends>:void =
CountdownTimer.CountdownEndedEvent.Await()
Players := GetPlayspace().GetPlayers()
if (FirstPlayer := Players[0]?):
EndGame.Activate(FirstPlayer)
Build your own lesson with match-timer-end
Generate a personalized, compile-checked lesson grounded in this exact reference.
Build a lesson →