# HG changeset patch # User Wuzzy # Date 1459195162 -3600 # Node ID cf7f4be0c083fa1066940d345ab54ef3341f773b # Parent 80d8736efefa0b057e37479d50c419904a14daf4 LuaAPI: DumpPoint diff -r 80d8736efefa -r cf7f4be0c083 LuaAPI.wiki --- a/LuaAPI.wiki Mon Mar 28 20:50:02 2016 +0100 +++ b/LuaAPI.wiki Mon Mar 28 20:59:22 2016 +0100 @@ -14,7 +14,7 @@ -== Overview == +== Overview ==f === How Hedgewars handles Lua scripts === As of Version 0.9.20, Hedgewars supports Lua scripts for two similar tasks: Define tutorial missions, campaign missions or provide special map behaviour for precreated maps. It is also used for multiplayer scripts to create new game styles. @@ -1232,6 +1232,11 @@ == Debugging Functions == +=== `WriteLnToConsole(string)` === +Writes `string` to `Logs/game0.log`, found in the user data directory. + +=== `DumpPoint(x, y)` (0.9.23) === +Writes the numbers `x` and `y` to `Logs/game0.log, one line each. === !ParseCommand(string) === Makes the game client parse the specified custom command. @@ -1244,5 +1249,3 @@ This will allow scripts to use the previously missing feature in a way that won’t break! -=== `WriteLnToConsole(string)` === -Writes `string` to the `Logs/game0.log`, found in the user data directory.