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

game_player_hurt

From Valve Developer Community
Jump to: navigation, 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

Targetname:

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Master (master) <targetname>
Name of a master entity.
Damage To Apply (dmg) <string>

Flags

Remove On fire : [1]

If enabled, the entity will be removed after being triggered.