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

Game player hurt (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
Line 1: Line 1:
{{This is a|name=game_player_hurt |e0|engine=1}} The game_player_hurt entity can be used to inflict a set amount of damage to a player. Similar to a [[trigger_hurt (GoldSrc)|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.
{{this is a|point entity|name=game_player_hurt|engine=GoldSrc}} The game_player_hurt entity can be used to inflict a set amount of damage to a player. Similar to a [[trigger_hurt (GoldSrc)|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==
==Key Values==

Latest revision as of 21:09, 17 May 2024

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.