Squirrel/Client/Events/Player/onClientFall
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|onClientFall}} This event is called when the local player falls over == Syntax == <code>function onClientFall()</code> === Arguments === * '''none''' === Re…') |
|||
Line 16: | Line 16: | ||
== Example == | == Example == | ||
− | + | This code prints "Ouch!" in chat when the player falls. | |
− | + | ||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onClientFall() | |
+ | { | ||
+ | Message("Ouch!"); | ||
+ | } | ||
</code> | </code> | ||
− | + | == Notes == | |
− | + | The function [[Squirrel/Client/Functions/Messages/Message|Message]] was used in this example. More info on the corresponding page. | |
== Related Events == | == Related Events == | ||
{{Squirrel/Client/Events/Player}} | {{Squirrel/Client/Events/Player}} |
Latest revision as of 14:07, 31 July 2011
This event is called when the local player falls over
[edit] Syntax
function onClientFall()
[edit] Arguments
- none
[edit] Returns
This event does not handle return values.
[edit] Example
This code prints "Ouch!" in chat when the player falls.
function onClientFall() { Message("Ouch!"); }
[edit] Notes
The function Message was used in this example. More info on the corresponding page.
[edit] Related Events
- onClientArmourChange
- onClientCashChange
- onClientCollideWithPlayer
- onClientCommand
- onClientDeath
- onClientFall
- onClientHealthChange
- onClientHurt
- onClientKill
- onClientKeyStateChange
- onClientRequestClass
- onClientRequestSpawn
- onClientShot
- onClientSpawn
- onClientUseDetonator
- onClientWeaponChange
- onPlayerDeath
- onPlayerJoin
- onPlayerKill
- onPlayerPart
- onPlayerSpawn