Edited wiki page LuaAPI through web user interface.
authorRedGrinner
Mon, 06 Dec 2010 16:04:58 +0000
changeset 57 4c941eb04e57
parent 56 bdfa650e1af1
child 58 fcffa4712a96
Edited wiki page LuaAPI through web user interface.
LuaAPI.wiki
--- 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')