diff -r bdfa650e1af1 -r 4c941eb04e57 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 @@
This function is called when a new gear is deleted. Useful in combination with !GetGearType(gearUid).
-=== OnGearDamage(gearUid, damage) === +=== onGearDamage(gearUid, damage) ===
This function is called when a gear is damaged.
@@ -74,7 +74,7 @@ Example: - function OnGearDamage(gear, damage) + 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')