Squirrel/Client/Events/Player/onClientFall

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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 ==
  
Some explanation here
+
This code prints "Ouch!" in chat when the player falls.
{{Squirrel/NeedsExample}}
+
  
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onClientFall()
 +
{
 +
    Message("Ouch!");
 +
}
 
</code>
 
</code>
  
=== Notes ===
+
== Notes ==
  
-- List of used functions and other notes here.
+
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

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This event is called when the local player falls over

[edit] Syntax

  1. 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.

  1.  
  2. function onClientFall()
  3. {
  4. Message("Ouch!");
  5. }
  6.  

[edit] Notes

The function Message was used in this example. More info on the corresponding page.

[edit] Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox