Skip to main content

game_player_hurt

game_player_hurt icon
Point entity

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
Nametargetname

Triggering the entity hurts the player who started the chain of triggers. See Common keys.

Targettarget

Names the entities to trigger after the entity hurts the player, with the same use type, and passes on the player as the activator.

Damage To Applydmg

Sets 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 999
Mastermaster

Names a master, and while the master is off, triggering the entity does nothing.

Flags​

1Remove On fire

The 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​

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