#Is it possible to switch GAME_STATE? (Specifically HERO_SELECTION - > STRATEGY)

1 messages · Page 1 of 1 (latest)

toxic breach
#

title

lusty jackal
#

you can set hero selection time 0 and hero selection penalty time to 0

exotic lynxBOT
#

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…

toxic breach
#

yes, but i made custom hero pick, and players can click "ready" button for faster game start

lusty jackal
#

when all players select heroes hero section state end automatically

toxic breach
#

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.

lusty jackal
#

its two common type custom selection

  1. force player hero and then replace it (best solution for you)
  2. pause during hero selection and setselectedhero
toxic breach
#

Oh, wait, I can, when all the players press "ready", then give everyone a hero, and then the strategy stage will begin

#

Right?

lusty jackal
#

yes

toxic breach
#

Thanks for the idea!