Squirrel/Client/Events/Player/onClientHurt

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|onClientHurt}} This event is called when the local player gets hurt. '''Note:''' This does not fire when the player gets shot. Use [[Squirrel/Client/Events/onPl…')

Revision as of 20:35, 28 July 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 onPlayerShot instead.

Syntax

  1. function onClientHurt( entity )

Arguments

  • vehicle - 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