Part of StarfallEx namespace
๐ External
hook.add("PlayerHurt", "name", function(ply, attacker, newHealth, damageTaken) end)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Called when a player gets hurt, uses the player_hurt game event clientside.
Parameters
| Name | Type | Description |
|---|---|---|
ply | Player | Player being hurt |
attacker | Entity | Entity causing damage to the player |
newHealth | number | New health of the player |
damageTaken | number | On server, Amount of damage the player has taken, nil on client. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.