LuaAPI.wiki
changeset 56 bdfa650e1af1
parent 55 ef26ff619aea
child 57 4c941eb04e57
--- a/LuaAPI.wiki	Mon Dec 06 15:59:45 2010 +0000
+++ b/LuaAPI.wiki	Mon Dec 06 16:02:52 2010 +0000
@@ -70,11 +70,11 @@
 
 <blockquote>This function is called when a gear is damaged.
 </blockquote>
-Notice: Lua is case-sensitive. The 'O' in 'OnGearDamage' needs to be big, or Hedgewars won't pick up this function call. This unusual capitalisation will probably be fixed in 0.9.15.
+Notice: Lua is case-sensitive. The 'O' in 'OnGearDamage' needs to be capitalised, or Hedgewars won't pick up this function call. This unusual capitalisation will probably be fixed in 0.9.15.
 
 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')