# 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 @@
=== onAttackUp() ===
This function is called when the current player releases the attack key.
+=== onLeftUp() ===
+This function is called when the current player releases the left key.
+
+=== onRightUp() ===
+This function is called when the current player releases the right key.
+
=== onDownUp() ===
This function is called when the current player releases the down key.
-
-=== onLeftUp() ===
-This function is called when the current player releases the left key.
+
+=== onUpUp() ===
+This function is called when you release the up key.
=== onPreciseUp() ===
This function is called when the current player releases the precise key.
-=== onRightUp() ===
-This function is called when the current player releases the right key.
+=== onSwitch() ===
+This function is called when the current player presses the switch key.
=== onSetWeapon(msgParam) ===
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.).
-=== onSwitch() ===
-This function is called when a hog is switched to another.
-
=== onTaunt(msgParam) ===
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).
-=== onUpUp() ===
-This function is called when you release the up key.
-
=== onScreenResize() ===
This function is called when you resize the screen. Useful place to put a redraw function for any `vgtHealthTags` you're using.