Targetname (GoldSrc)

From Valve Developer Community
Revision as of 00:51, 21 April 2025 by Nescius (talk | contribs) (Created page with "{{TabsBar|main=Targetname}} {{stub}} == Player Events == Any entity with the following targetnames will by fired/used (what's the correct terminology in goldsrc ?{{confirm}}) when that event occurs. * <code>game_playerdie</code> - Fires every time a {{ent|player}} dies. The player who died is the '''<code>!activator</code>'''. * <code>game_playerkill</code> - Fires every time a {{ent|player}} kills another player, the killer is the '''<code>!activator</code>'''. * <code...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
edit

Stub

This article or section is a stub. You can help by expanding it.

Player Events

Any entity with the following targetnames will by fired/used (what's the correct terminology in goldsrc ?[confirm]) when that event occurs.

  • game_playerdie - Fires every time a player dies. The player who died is the !activator.
  • game_playerkill - Fires every time a player kills another player, the killer is the !activator.
  • game_playerjoin - Fires every time a player joins the game, the joining player is the !activator.
  • game_playerspawn - Fires every time a player spawns, with the spawning player as the !activator.
  • game_playerleave - Fires every time a player leaves the game. !activator will not work in this case, as the player entity no longer exists.