# HG changeset patch # User RedGrinner@gmail.com # Date 1300970583 0 # Node ID 54e178bb698606c9748da18a3dd50b17cc8c4173 # Parent 0803dadcc22973edeab59e59843a7e75a5b97e62 Added basic (not entirely accurate) entries for the event handlers relating to actions taken by Hedgehogs / user input. diff -r 0803dadcc229 -r 54e178bb6986 LuaAPI.wiki --- 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 @@
This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.+ +=== onAttack() === + +
This function is called when your Hedgehog attacks. ++ +=== onHJummp() === + +
This function is called when you press the high jump key. ++ +=== onLJummp() === + +
This function is called when you press the long jump key. ++ +=== onPrecise() === + +
This function is called when you press the precise key. ++ +=== onLeft() === + +
This function is called when you press the left key. ++ +=== onRight() === + +
This function is called when you press the right key. ++ +=== onUp() === + +
This function is called when you press the up key. ++ +=== onDown() === + +
This function is called when you press the down key. ++ == Functions for creating gears == === !AddGear(x, y, gearType, state, dx, dy, timer) ===