Targetname (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{TabsBar|main=Targetname}} | {{TabsBar|main=Targetname}} | ||
{{stub}} | {{stub}} | ||
A '''targetname''' (also known simply as '''Name''') is the name of an entity. A targetname is not required for an entity to exist, but generally must be present for an entity to be a target or killtarget of another entity. | |||
== Player Events == | == Player Events == |
Revision as of 01:00, 21 April 2025
A targetname (also known simply as Name) is the name of an entity. A targetname is not required for an entity to exist, but generally must be present for an entity to be a target or killtarget of another entity.
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 in multiplayer, 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, the player that is leaving is the activator.