I'm trying to listen game event "game_start" from this page https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/Built-In_Engine_Events
Unfortunately it's unknown.
Why it happens? Is it because information not actual, or I should read another page, or something else?
#Why game_start is not valid game event?
1 messages · Page 1 of 1 (latest)
use this page to look for game events
the valve wiki is very old
some of the more useful events are pinned to the top of the side bar and marked with a star.
In addition to what @rocky vortex said, you probably want to listen to the state changed event:
https://github.com/Shushishtok/dota-reimagined/blob/master/game/scripts/vscripts/GameMode.ts#L73
And getting the current game state:
https://github.com/Shushishtok/dota-reimagined/blob/master/game/scripts/vscripts/GameMode.ts#L496
Upon which you decide what to do.
Because if you think about it, "start game" is such a generic term. Does it start when all players chose a hero? Or when the horn sounds? Or when players load in?
This lets you handle each case as you see fit.
Those are all the states possible: