Gamemode.PlayerHurt
From GMod Wiki
Event Hook | |
Hook Name | PlayerHurt |
Syntax | GM:PlayerHurt( Player victim, Entity Attacker, Number Health Remaining, Number Damage Dealt ) |
Description | Called when a player has taken damage. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerHurt]Gamemode.PlayerHurt [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- This hook isn't called on the client. Furthermore it looks really deprecated since it doesn't use DamageInfo. You should be using a different hook.
See Also