Edited wiki page LuaAPI through web user interface.
authorazizi.054@gmail.com
Thu, 08 Dec 2011 08:04:14 +0000
changeset 175 2455fbbab5e8
parent 174 701ab6df45b5
child 176 c480b9c21241
Edited wiki page LuaAPI through web user interface.
LuaAPI.wiki
--- a/LuaAPI.wiki	Wed Dec 07 10:42:21 2011 +0000
+++ b/LuaAPI.wiki	Thu Dec 08 08:04:14 2011 +0000
@@ -148,18 +148,52 @@
 </blockquote>
 
 === <tt>onAttackUp()</tt> (0.9.17) ===
+
+<blockquote>This function is called when you release the attack key.</blockquote>
+
 === <tt>onDownUp()</tt> (0.9.17) ===
+
+<blockquote>This function is called when you release the down key.</blockquote>
+ 
 === <tt>onHogAttack()</tt> (0.9.17) ===
+
+<blockquote>This function is called when you press the attack key.</blockquote>
+
 === <tt>onLeftUp()</tt> (0.9.17) ===
+
+<blockquote>This function is called when you release the left key.</blockquote>
+
 === <tt>onPreciseUp()</tt> (0.9.17) ===
+
+<blockquote>This function is called when you release the precise key.</blockquote>
+
 === <tt>onRightUp()</tt> (0.9.17) ===
+
+<blockquote>This function is called when you release the right key.</blockquote>
+
 === <tt>onSetWeapon()</tt> (0.9.17) ===
+
+<blockquote>It is get called when a weapon is selected or switched.</blockquote>
+
 === <tt>onSlot()</tt> (0.9.17) ===
+
+<blockquote>This function is called when a weapon slot (row in the weapon menu) is selected.</blockquote>
+
 === <tt>onSwitch()</tt> (0.9.17) ===
+
+<blockquote>This function is called when a hog is switched to another.</blockqoute>
+
 === <tt>onTaunt()</tt> (0.9.17) ===
+
+<blockquote>This function is called when the player uses an animated   emote for example "/wave, /juggle and etc.</blockquote>
+
 === <tt>onTimer()</tt> (0.9.17) ===
+
+<blockquote>This function is called when one of the timer keys is pressed.</blockquote>
+
 === <tt>onUpUp()</tt> (0.9.17) ===
 
+<blockquote>This function is called when you release the up key.</blockquote>
 
 == Functions for creating gears ==
 
@@ -408,7 +442,7 @@
   * (And more!)
 
 <code lang="lua">    function onGearAdd(gear)
-       if (!GetGearType(gear) == gtRCPlane) then
+       if (!GetGearType(gear) == gtRCPlaane) then
             !SetHealth(gear, 10)
        end
        if (!GetGearType(gear) == gtJetpack) then