game_player_hurt

A game_player_hurt hurts the player who triggers it, or heals that player with a negative damage, and then fires its
target.
Attributes
KeyDescriptionDefault
Name
targetnameTriggering the entity hurts the player who started the chain of triggers. See Common keys.
Target
targetDamage To Apply
dmgSets the damage dealt to the player, and a negative value heals the player by that much instead, up to their maximum health.
If you leave this key empty, it is 0 and the player takes no damage.
Default
999Master
masterNames a master, and while the master is off, triggering the entity does nothing.
Flags
1Remove On fireThe entity is removed after it is used once
Notes
- If no player started the chain of triggers, nobody is hurt, but the entity still fires its target
See also
trigger_hurt- a brush that hurts or heals what is inside ittrigger_hurt_remote- hurts or heals entities by name or class- game_player_hurt on TWHL - the Half-Life entity
Changes since 1.38
- If no player started the chain of triggers, the entity fires its target and hurts nobody. In SBO 1.38, as in Half-Life, this crashed the server