Need help with plugins or servers? Join our Discord

Modding Database

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

player_hero_changed

game event

Declared in game.gameevents

Named in the code or data of server, client.

Deadworks (C#), as PlayerHeroChangedEvent
[GameEventHandler("player_hero_changed")]
public HookResult OnPlayerHeroChanged(PlayerHeroChangedEvent args) {
	// args.Userid
	return HookResult.Continue;
}

Fields

FieldTypeDeadworks propertyValve's comment
useridplayer_pawn
Userid CBasePlayerPawn?
user ID on server

History

  1. 6696–6745first dumped