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 @@ === onAttackUp() (0.9.17) === + +
This function is called when you release the attack key.
+ === onDownUp() (0.9.17) === + +
This function is called when you release the down key.
+ === onHogAttack() (0.9.17) === + +
This function is called when you press the attack key.
+ === onLeftUp() (0.9.17) === + +
This function is called when you release the left key.
+ === onPreciseUp() (0.9.17) === + +
This function is called when you release the precise key.
+ === onRightUp() (0.9.17) === + +
This function is called when you release the right key.
+ === onSetWeapon() (0.9.17) === + +
It is get called when a weapon is selected or switched.
+ === onSlot() (0.9.17) === + +
This function is called when a weapon slot (row in the weapon menu) is selected.
+ === onSwitch() (0.9.17) === + +
This function is called when a hog is switched to another. + === onTaunt() (0.9.17) === + +
This function is called when the player uses an animated emote for example "/wave, /juggle and etc.
+ === onTimer() (0.9.17) === + +
This function is called when one of the timer keys is pressed.
+ === onUpUp() (0.9.17) === +
This function is called when you release the up key.
== Functions for creating gears == @@ -408,7 +442,7 @@ * (And more!) function onGearAdd(gear) - if (!GetGearType(gear) == gtRCPlane) then + if (!GetGearType(gear) == gtRCPlaane) then !SetHealth(gear, 10) end if (!GetGearType(gear) == gtJetpack) then