Need help with plugins or servers? Join our Discord

Modding Database

Up to date with Steam · checked 23s ago· Viewing build 6738 (Oct 02 2026), not the latest

player_bot_replace

game event

Declared in game.gameevents

Not named anywhere in the server, client or engine binaries. It may be fired by scripts, or not at all.

Deadworks (C#), as PlayerBotReplaceEvent
[GameEventHandler("player_bot_replace")]
public HookResult OnPlayerBotReplace(PlayerBotReplaceEvent args) {
	// args.Player, args.Bot
	return HookResult.Continue;
}

Fields

FieldTypeDeadworks propertyValve's comment
playershort
Player int
user ID of the player
botshort
Bot int
user ID of the bot

History

  1. 6696–6745first dumped