#Is it possible to switch GAME_STATE? (Specifically HERO_SELECTION - > STRATEGY)
1 messages · Page 1 of 1 (latest)
you can set hero selection time 0 and hero selection penalty time to 0
Found 6 functions for heroselect
🇸 CDOTA_PlayerResource:IsHeroSelected(heroname: string, ignoreUnrevealedPick: bool): bool
🇸 CDOTAPlayerController:MakeRandomHeroSelection(): nil
Randoms this player's hero.
🇸 CDOTAGameRules:ResetToHeroSelection(): nil
Restart the game at hero selection.
🇸 CDOTAGameRules:SetHeroSelectPenaltyTime(arg1: float): nil
Sets amount of penalty time before randoming a hero.
🇸 CDOTAGameRules:SetHeroSelectionTime(selectionTime: float): nil
Sets the amount of time players have to pick their hero.
and 1 more…
yes, but i made custom hero pick, and players can click "ready" button for faster game start
when all players select heroes hero section state end automatically
this is also not suitable, I have special conditions for starting the game (choosing a hero is not enough)
it`s like ability draft
but without selection queues, etc.
its two common type custom selection
- force player hero and then replace it (best solution for you)
- pause during hero selection and setselectedhero
Oh, wait, I can, when all the players press "ready", then give everyone a hero, and then the strategy stage will begin
Right?
yes
Thanks for the idea!