Game time over event||doc135780

September 20, 2022

Format

 GAME_OVER
  • The class to which the function belongs:Game

Description

This event is fired when the game duration ends.


Code Samples

on the server sideglobal script, at the end of the registered game durationCallbackbroadcast tipsgame over

Trigger.RegisterHandler(World.cfg, "GAME_OVER", function()
    World.CurWorld.SystemNotice(1, 'GameOver', 40)    --Broadcast
end)