LuaLibraryTracker: TOC 2
authorWuzzy
Wed, 02 May 2018 23:32:42 +0100
changeset 1364 a0547181393a
parent 1363 77bece04d563
child 1365 f7ca5312d2ff
LuaLibraryTracker: TOC 2
LuaLibraryTracker.wiki
--- a/LuaLibraryTracker.wiki	Wed May 02 23:31:53 2018 +0100
+++ b/LuaLibraryTracker.wiki	Wed May 02 23:32:42 2018 +0100
@@ -1,6 +1,9 @@
 #summary Lua library documentation: Tracker
 #labels !LuaLibrary
 = Lua library: `Tracker` =
+<wiki:toc max_depth="3" />
+
+== Introduction ==
 This Lua library is intended to be used if you need to keep track of gears. It can also keep track of teams and clans and as an extra functionality it can also store variables for a gear, team or clan.
 
 To set it up you need to add some hooks in different events. The hooks `trackGear` and `trackDeletion` to `onGearAdd` and `onGearDelete` respectively. It is strongly recommended to only track the gears you are interested in as, especially with snow on, the amount of gears can go up high and that will slow down the script. To keep track of teams you need to keep track of `gtHedgehog` and `gtResurrector` (if resurrection might be used) and add `trackTeams` to `onGameStart`.
@@ -17,10 +20,9 @@
 end</code>
 This will kill all hogs if a target is destroyed.
 
-To see a commented example of the tracker in use by a script you can look at
+To see a commented example of `Tracker` in use by a script you can look at
 [https://hg.hedgewars.org/hedgewars/file/default/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua Random Weapons].
 
-<wiki:toc max_depth="3" />
 == Tracking functions ==
 === `trackGear(gear)` ===
 Will keep track of the gear.