Edited wiki page LuaAPI through web user interface.
--- a/LuaAPI.wiki Mon Dec 06 16:02:52 2010 +0000
+++ b/LuaAPI.wiki Mon Dec 06 16:04:58 2010 +0000
@@ -66,7 +66,7 @@
<blockquote>This function is called when a new gear is deleted. Useful in
combination with <tt>!GetGearType(gearUid)</tt>.
</blockquote>
-=== <tt>OnGearDamage(gearUid, damage)</tt> ===
+=== <tt>onGearDamage(gearUid, damage)</tt> ===
<blockquote>This function is called when a gear is damaged.
</blockquote>
@@ -74,7 +74,7 @@
Example:
-<code lang="lua"> function OnGearDamage(gear, damage)
+<code lang="lua"> function !OnGearDamage(gear, damage)
if (!GetGearType(gear) == gtHedgehog) then
-- adds a message saying, e.g. "Hoggy H took 25 points of damage"
!AddCaption(!GetHogName(gear) .. ' took ' .. damage .. ' points of damage')