# HG changeset patch # User azizi.054@gmail.com # Date 1323331454 0 # Node ID 2455fbbab5e84de3c76f37fc6ffeb4bd579834e1 # Parent 701ab6df45b511cfb81eb8dacdc53ec5140ea730 Edited wiki page LuaAPI through web user interface. diff -r 701ab6df45b5 -r 2455fbbab5e8 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