From Valve Developer Community
About
Available doc translations
…
English
Entity properties elements.
Preview
Outputs are events that fire when an entity's state changes. For example, a timer will have an output for reaching its end, a button an output for being pressed, and a door an output for coming to a close. Read more.
OnMapSpawn
Fired shortly after the entity spawns (including loading saves).
Bug: Also fires when a new round starts [todo tested in?]
OnNewGame
Fired when the map is loaded to start a new game.
OnLoadGame
Fired when the map is loaded from a saved game.
OnMapTransition
Fired when the map is loaded due to a level transition.
OnBackgroundMap
Fired when the map is loaded as a background to the main menu using
map_background
.
OnMultiNewMap
Fired shortly after the entity spawns but only in multiplayer and if the round wasn't restarted
OnMultiNewRound
Fired shortly after the entity spawns but only in multiplayer and if round was restarted
Warning:Template:Tf Does not get fired when tournament mode is enabled (mp_tournament 1). Use OnMapSpawn instead
OnViolenceLow
(only in ) Fired when the map is loaded for any reason if the game is in low-violence mode.
OnViolenceHigh
(only in ) Fired when the map is loaded for any reason if the game is not in low-violence mode.
Included templates