# HG changeset patch # User Wuzzy # Date 1558029050 -3600 # Node ID 048c71a203c83c1f7cd2a5cc3396abd5729e7d97 # Parent 0b0c0a66ebf7928014732c2280a2158706093a18 LuaEvents: Fix description of onSwitch diff -r 0b0c0a66ebf7 -r 048c71a203c8 LuaEvents.wiki --- a/LuaEvents.wiki Wed May 15 02:59:21 2019 +0100 +++ b/LuaEvents.wiki Thu May 16 18:50:50 2019 +0100 @@ -131,17 +131,23 @@ === <tt>onAttackUp()</tt> === This function is called when the current player releases the attack key. +=== <tt>onLeftUp()</tt> === +This function is called when the current player releases the left key. + +=== <tt>onRightUp()</tt> === +This function is called when the current player releases the right key. + === <tt>onDownUp()</tt> === This function is called when the current player releases the down key. - -=== <tt>onLeftUp()</tt> === -This function is called when the current player releases the left key. + +=== <tt>onUpUp()</tt> === +This function is called when you release the up key. === <tt>onPreciseUp()</tt> === This function is called when the current player releases the precise key. -=== <tt>onRightUp()</tt> === -This function is called when the current player releases the right key. +=== <tt>onSwitch()</tt> === +This function is called when the current player presses the switch key. === <tt>onSetWeapon(msgParam)</tt> === It is get called when a weapon is selected or switched. @@ -153,9 +159,6 @@ `msgParam` tells the slot number minus 1 (i.e. `0` is for slot number 1, `1` is for slot number 2, etc.). -=== <tt>onSwitch()</tt> === -This function is called when a hog is switched to another. - === <tt>onTaunt(msgParam)</tt> === This function is called when the player uses an animated emote for example by using the chat commands `/wave`, `/juggle`, etc. @@ -175,9 +178,6 @@ `msgParams` tells the set timer in seconds (i.e. `3` for the 3 seconds timer key). -=== <tt>onUpUp()</tt> === -This function is called when you release the up key. - === <tt>onScreenResize()</tt> === This function is called when you resize the screen. Useful place to put a redraw function for any `vgtHealthTags` you're using.