Editing Mod API Reference:ClientGame

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 17: Line 17:
 
# '''payload''': Data that will be delivered to the Server_GameCustomMessage hook.  Must be a lua table.
 
# '''payload''': Data that will be delivered to the Server_GameCustomMessage hook.  Must be a lua table.
 
# '''callback''': A function you provide which will be called back when the message is complete.  If the message fails, such as due to a disconnected internet connection or an error in the server hook, this callback will not be invoked.  If it is invoked, it will be passed a single argument of a lua table that the Server_GameCustomMessage hook provided as a return value.
 
# '''callback''': A function you provide which will be called back when the message is complete.  If the message fails, such as due to a disconnected internet connection or an error in the server hook, this callback will not be invoked.  If it is invoked, it will be passed a single argument of a lua table that the Server_GameCustomMessage hook provided as a return value.
* '''HighlightTerritories''': A function that will highlight territories on the map, to alert the player about them.  Arguments:
 
# ''Array<[[Mod API Reference:TerritoryID|TerritoryID]]>>'': The IDs of the territories you wish to highlight.
 
* '''CreateLocatorCircle''': A function that will highlight an area of the map, to alert the player to it.  Pass an X,Y argument to determine the location.  You can get the coordinates of territories by looking at a [[Mod API Reference:TerritoryDetails|TerritoryDetails]] object. Arguments:
 
# ''Number'': The X coordinate.
 
# ''Number'': The Y coordinate.
 
 
[[Category:Mod API Reference]]
 
[[Category:Mod API Reference]]

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