LuaAPI.wiki
changeset 98 54e178bb6986
parent 95 87343aa1f1f6
child 99 983ec9ac63c7
--- a/LuaAPI.wiki	Thu Mar 24 10:18:02 2011 +0000
+++ b/LuaAPI.wiki	Thu Mar 24 12:43:03 2011 +0000
@@ -93,6 +93,47 @@
 
 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
 </blockquote>
+
+=== <tt>onAttack()</tt> ===
+
+<blockquote>This function is called when your Hedgehog attacks.
+</blockquote>
+
+=== <tt>onHJummp()</tt> ===
+
+<blockquote>This function is called when you press the high jump key.
+</blockquote>
+
+=== <tt>onLJummp()</tt> ===
+
+<blockquote>This function is called when you press the long jump key.
+</blockquote>
+
+=== <tt>onPrecise()</tt> ===
+
+<blockquote>This function is called when you press the precise key.
+</blockquote>
+
+=== <tt>onLeft()</tt> ===
+
+<blockquote>This function is called when you press the left key.
+</blockquote>
+
+=== <tt>onRight()</tt> ===
+
+<blockquote>This function is called when you press the right key.
+</blockquote>
+
+=== <tt>onUp()</tt> ===
+
+<blockquote>This function is called when you press the up key.
+</blockquote>
+
+=== <tt>onDown()</tt> ===
+
+<blockquote>This function is called when you press the down key.
+</blockquote>
+
 == Functions for creating gears ==
 
 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> ===