265 This function is called when you release the precise key. |
265 This function is called when you release the precise key. |
266 |
266 |
267 === <tt>onRightUp()</tt> === |
267 === <tt>onRightUp()</tt> === |
268 This function is called when you release the right key. |
268 This function is called when you release the right key. |
269 |
269 |
270 === <tt>onSetWeapon()</tt> === |
270 === <tt>onSetWeapon(msgParam)</tt> === |
271 It is get called when a weapon is selected or switched. |
271 It is get called when a weapon is selected or switched. |
272 |
272 |
273 === <tt>onSlot()</tt> === |
273 `msgParam` tells you which ammo type was selected. |
274 This function is called when a weapon slot (row in the weapon menu) is selected. |
274 |
|
275 === <tt>onSlot(msgParam)</tt> === |
|
276 This function is called when one of the weapon slot keys has been pressed. |
|
277 |
|
278 `msgParam` tells the slot number minus 1 (i.e. `0` is for slot number 1, `1` is for slot number 2, etc.). |
275 |
279 |
276 === <tt>onSwitch()</tt> === |
280 === <tt>onSwitch()</tt> === |
277 This function is called when a hog is switched to another. |
281 This function is called when a hog is switched to another. |
278 |
282 |
279 === <tt>onTaunt()</tt> === |
283 === <tt>onTaunt(msgParam)</tt> === |
280 This function is called when the player uses an animated emote for example by using the chat commands `/wave`, `/juggle`, etc. |
284 This function is called when the player uses an animated emote for example by using the chat commands `/wave`, `/juggle`, etc. |
281 |
285 |
282 === <tt>onTimer()</tt> === |
286 `msgParam` tells you which animation was played: |
|
287 |
|
288 || *`msgParam`* || *Animation* || *Associated chat command* |
|
289 || 0 || Rolling up || `/rollup` |
|
290 || 1 || Sad face || `/sad` |
|
291 || 2 || Waving hand || `/wave` |
|
292 || 3 || Stupid winner's grin / “Awesome” face || `/hurrah` |
|
293 || 4 || Peeing || `/ilovelotsoflemonade` |
|
294 || 5 || Shrug || `/shrug` |
|
295 || 6 || Juggling || `/juggle` |
|
296 |
|
297 === <tt>onTimer(msgParam)</tt> === |
283 This function is called when one of the timer keys is pressed. |
298 This function is called when one of the timer keys is pressed. |
|
299 |
|
300 `msgParams` tells the set timer in seconds (i.e. `3` for the 3 seconds timer key). |
284 |
301 |
285 === <tt>onUpUp()</tt> === |
302 === <tt>onUpUp()</tt> === |
286 This function is called when you release the up key. |
303 This function is called when you release the up key. |
287 |
304 |
288 === <tt>onHogHide()</tt> (0.9.16) === |
305 === <tt>onHogHide()</tt> (0.9.16) === |