Squirrel/Client/Events/Player/onClientHurt
From Liberty Unleashed Wiki
(Difference between revisions)
m |
m (Fixed link) |
||
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/ | + | '''Note:''' This does not fire when the player gets shot. Use [[Squirrel/Client/Events/onClientShot|onClientShot]] instead. |
== Syntax == | == Syntax == |
Revision as of 20:23, 25 September 2011
This event is called when the local player gets hurt.
Note: This does not fire when the player gets shot. Use onClientShot instead.
Syntax
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
-- todo
Notes
-- List of used functions and other notes here.
Related Events
- onClientArmourChange
- onClientCashChange
- onClientCollideWithPlayer
- onClientCommand
- onClientDeath
- onClientFall
- onClientHealthChange
- onClientHurt
- onClientKill
- onClientKeyStateChange
- onClientRequestClass
- onClientRequestSpawn
- onClientShot
- onClientSpawn
- onClientUseDetonator
- onClientWeaponChange
- onPlayerDeath
- onPlayerJoin
- onPlayerKill
- onPlayerPart
- onPlayerSpawn