game exit event||doc135781

September 20, 2022

Format

 GAME_EXIT
  • The class to which the function belongs:Game

Description

This event is fired when the game exits the room about to close.


Code Samples

on the server sideglobal script, when the registered game closes and exitsCallbackbroadcast tipsgame closed

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