Targetname (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
(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...") |
No edit summary |
||
Line 4: | Line 4: | ||
== Player Events == | == Player Events == | ||
Any entity with the following targetnames will by fired/used (what's the correct terminology in goldsrc ?{{confirm}}) when that event occurs. | 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>game_playerdie</code> - Fires every time a {{ent|player}} dies. The player who died is the activator. | ||
* <code>game_playerkill</code> - Fires every time a {{ent|player}} kills another player, the killer is the | * <code>game_playerkill</code> - Fires every time a {{ent|player}} kills another player, the killer is the activator. | ||
* <code>game_playerjoin</code> - Fires every time a {{ent|player}} joins the game, the joining player is the | * <code>game_playerjoin</code> - Fires every time a {{ent|player}} joins the game in multiplayer, the joining player is the activator. | ||
* <code>game_playerspawn</code> - Fires every time a {{ent|player}} spawns, with the spawning player as the | * <code>game_playerspawn</code> - Fires every time a {{ent|player}} spawns, with the spawning player as the activator. | ||
* <code>game_playerleave</code> - Fires every time a {{ent|player}} leaves the game | * <code>game_playerleave</code> - Fires every time a {{ent|player}} leaves the game, the player that is leaving is the activator. |
Revision as of 00:59, 21 April 2025
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.