#Why game_start is not valid game event?

1 messages · Page 1 of 1 (latest)

compact cliff
rocky vortex
#

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.

white maple
#

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.

GitHub

Reimagined dota IMBA. Contribute to Shushishtok/dota-reimagined development by creating an account on GitHub.