Need help with plugins or servers? Join our Discord

Modding Database

Up to date with Steam · checked 31s ago· Viewing build 6730 (Oct 01 2026), not the latest

bot_player_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 BotPlayerReplaceEvent
[GameEventHandler("bot_player_replace")]
public HookResult OnBotPlayerReplace(BotPlayerReplaceEvent args) {
	// args.Bot, args.Player
	return HookResult.Continue;
}

Fields

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

History

  1. 6696–6745first dumped