This article's documentation is for the "GoldSrc" engine. Click here for more information.

game_player_hurt

From Valve Developer Community
Revision as of 21:09, 17 May 2024 by PeeBot (talk | contribs) (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

game_player_hurt is a point entity available in all GoldSrc GoldSrc games. The game_player_hurt entity can be used to inflict a set amount of damage to a player. Similar to a trigger_hurt, however this entity does not require the player to be in a particular location to take the damage. It also lacks some of the more specific options that a trigger_hurt has.

Key Values

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Master (master) <targetname>
Name of a master entity. If the master hasn't been activated, this entity will not activate.
Damage To Apply (dmg) <string>

Flags

Remove On fire : [1]
If enabled, the entity will be removed after being triggered.