# HG changeset patch # User RedGrinner # Date 1291762851 0 # Node ID a651a8ab85d52310b26a3a2054ad28de5c28fe4c # Parent 24004a9003ec08a6869e84e17cad152f02e25d25 Edited wiki page LuaAPI through web user interface. diff -r 24004a9003ec -r a651a8ab85d5 LuaAPI.wiki --- a/LuaAPI.wiki Tue Dec 07 22:59:58 2010 +0000 +++ b/LuaAPI.wiki Tue Dec 07 23:00:51 2010 +0000 @@ -52,15 +52,15 @@ Can be used to show the mission and for more setup, for example initial target spawning. +=== onGameTick() === + +
This function is called on every game tick, i.e. 1000 times a second. +
+ === onNewTurn() ===
This function calls at the start of every turn.
- -=== onGameTick() === - -
This function is called on every game tick, i.e. 1000 times a second. -
=== onGearAdd(gearUid) ===
This function is called when a new gear is added. Useful in