onClientHurt

From Liberty Unleashed Wiki
Revision as of 20:23, 25 September 2011 by Stormeus (Talk | contribs)

Jump to: navigation, search
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