using { /Fortnite.com/Devices } using { /Verse.org/Simulation } boss_arena := class(creative_device): BossDefeatedEvent : event(agent) = event(agent){} OnBegin() : void = BossDefeatedEvent.Subscribe(OnBossDefeated) # Your game logic calls this when the boss's health hits zero. DefeatBoss(Winner : agent) : void = Print("The boss is down!") BossDefeatedEvent.Signal(Winner) OnBossDefeated(Winner : agent) : void = Print("Victory! Rewarding the winner.")