Squirrel/Client/Events/Player/onClientHurt

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m (Fixed link)
m (Err... whoops)
Line 2: Line 2:
 
This event is called when the local player gets hurt.
 
This event is called when the local player gets hurt.
  
'''Note:''' This does not fire when the player gets shot. Use [[Squirrel/Client/Events/onClientShot|onClientShot]] instead.
+
'''Note:''' This does not fire when the player gets shot. Use [[Squirrel/Client/Events/Player/onClientShot|onClientShot]] instead.
  
 
== Syntax ==
 
== Syntax ==

Revision as of 20:23, 25 September 2011

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

This event is called when the local player gets hurt.

Note: This does not fire when the player gets shot. Use onClientShot instead.

Syntax

  1. function onClientHurt( entity )

Arguments

  • entity - The pointer to the entity that hurt the player. Either vehicle or null

Returns

  • 1 - Let the player be hurt normally
  • 0 - Stops the player being hurt

Example

Some explanation here

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. -- todo
  3.  

Notes

-- List of used functions and other notes here.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox