How to get hero selections during GameState.HERO_SELECTION?

Zed03

New member
Jun 1, 2024
23
8
3
Hi I tried:

Code:
OnRecvNetMessage()
OnGCSOChanged()
OnGCSOUpdated()
OnGCSOCreated()
OnSendNetMessage()
Matchmaking.GetLobbyData()

... and wasn't able to find a way to get hero picks as they happen. I tried both vs bots and real players.

Any ideas how to get hero selections during `GameState.HERO_SELECTION`?

I see a bunch of `CSVCMsg_UpdateStringTable` events from OnRecvNetMessage but I'm not sure how to access the string table or the string data that was updated.
 

Zed03

New member
Jun 1, 2024
23
8
3
I forgot to mention I also tried `OnFireEvent` and I get `dota_player_update_hero_selection` events called back, but the only parameter that event has is `tabcycle` which is type bool. No hero id, player id, or hero/player name.

I expect a `dota_player_pick_hero` hero event to be there instead, but it isn't fired.
 

Prota

Administrator
Staff member
Nov 15, 2022
799
55
28
I forgot to mention I also tried `OnFireEvent` and I get `dota_player_update_hero_selection` events called back, but the only parameter that event has is `tabcycle` which is type bool. No hero id, player id, or hero/player name.

I expect a `dota_player_pick_hero` hero event to be there instead, but it isn't fired.
You should be able to find answer in https://docs.minority.gg/guide/ , Unfortunatley devs are too busy.
 

Zed03

New member
Jun 1, 2024
23
8
3
Thanks I checked for 10th time and found it:

player.GetPlayerSelectedHeroName()