Editing Mod Hooks

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 102: Line 102:
  
 
* Client_GameRefresh (Client_GameRefresh.lua)
 
* Client_GameRefresh (Client_GameRefresh.lua)
** Invoked whenever the client gets data about this game from the server.  This can be used to check for updated Mod.PublicGameData or Mod.PlayerGameData, documented at [[Mod Game Data Storage]].  The client refresh timing is different between single-player and multi-player, and in multi-player can also vary depending on the user's internet connection (such as whether they're connected by websocket, long polling socket, or normal polling).  Therefore, a mod should never write code that breaks if Client_GameRefresh is called at unexpected times.
+
** Invoked whenever the client gets data about this game from the server.  This can be used to check for updated Mod.PublicGameData or Mod.PlayerGameData, documented at [[Mod Game Data Storage]]
 
** Arguments:  
 
** Arguments:  
 
# [[Mod API Reference:ClientGame|ClientGame]]: Information about the game.
 
# [[Mod API Reference:ClientGame|ClientGame]]: Information about the game.

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox