game_player_hurt

From Valve Developer Community
Revision as of 09:18, 21 February 2024 by N0one (talk | contribs)
Jump to navigation Jump to search

game_player_hurt is an e0 available in all Template:1 games.Template:1 topicon

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

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.