This is a more feature-rich variant of game_player_hurt.


OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.

Name targetname : Set name of trigger_hurt_remote so other entities can trigger it to apply damage (or enable constant damage when "Constant" flag is checked). With "Constant" flag enabled the behaviour is based on trigger use-type: 'On'- turn constant damage on, 'Off'- turn constant damage off, 'Toggle'- toggle constant damage. With "Constant" flag disabled only "On" and "Toggle" trigger use-types are accepted to apply damage. Can be kill-targeted.

Target target : Target entity to deal a damage. Write '!activator' to make it hurt activator of the script.

Target Class targetclass : If specified, all entities with the given class will be affected. Write 'player' in this field to make it hurt players.

Damage dmg : Damage to deal. If "Constant" flag is selected, this is a damage to deal every "Delay" seconds. Can be negative to provide healing instead of dealing damage.

Armor Damage armordmg : Armor damage to deal, works only if "Do Armor" flag is selected. When target is out of armor, the damage is not dealt. Can be negative to give an armor instead of draining it.

Delay (Only when Constant) delay : Delay between hurts when "Constant" flag is selected.

Damage Type damagetype : Used for HUD info icon, determines which damage icon appears when player is taking damage from trigger.

  • 0 : GENERIC
  • 1 : CRUSH
  • 2 : BULLET
  • 4 : SLASH
  • 8 : BURN
  • 16 : FREEZE
  • 32 : FALL
  • 64 : BLAST
  • 128 : CLUB
  • 256 : SHOCK
  • 512 : SONIC
  • 1024 : ENERGYBEAM
  • 16384 : DROWN
  • 32768 : PARALYSE
  • 65536 : NERVEGAS
  • 131072 : POISON
  • 262144 : RADIATION
  • 524288 : DROWNRECOVER
  • 1048576 : CHEMICAL
  • 2097152 : SLOWBURN
  • 4194304 : SLOWFREEZE


  • 1 : Instant Kill : Kill the target instantly. That will heal the target instantly when "Damage" value is negative.

  • 2 : Constant : Make use of "Delay" keyvalue and affect target entities repeatedly.

  • 4 : Start On : Trigger_hurt_remote is enabled at start, this only makes sense when "Constant" flag is selected.

  • 8 : Do Armor : Allows to use "Armor Damage" keyvalue.

Constant feature is unstable for server, it's recommended to trigger this entity with looped multi_manager to achieve similar effect.