Game initialization event||doc135774

September 20, 2022

Format

 GAME_INIT
  • The class to which the function belongs:Game

Description

This event is fired when the game is initialized.


Code Samples

on the server sideglobal script, when the registered game is initializedCallbackbroadcast tipsGame initialization

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