dota_custom_game_events
- Dota 2
Point Entity
Used to change settings on the game mode for custom games.
Keyvalues
-
Entity Scripts (
vscripts) <ScriptList>
Name(s) of script files that are executed after all entities have spawned. -
Name (
targetname) <TargetSource>
The name that other entities refer to this entity by. -
Gold Per Tick (
GoldPerTick) <Integer>
Gold to award to all players each gold tick. -
Gold Tick Time (
GoldTickTime) <Float>
Time in seconds between gold ticks. -
Player Starting Gold (
PlayerStartingGold) <Integer>
Gold players start with. -
Hero Respawn (
HeroRespawnEnabled) <Boolean>
Do heroes automatically respawn? -
Tree Regrow Time (
TreeRegrowTime) <Float>
Time in seconds for a tree to regrow. -
Hero Selection Time (
HeroSelectionTime) <Float>
Time in seconds for hero selection. -
Pre-Game Time (
PreGameTime) <Float>
Time in seconds before the game begins. -
Post-Game Time (
PostGameTime) <Float>
Time in seconds after the game ends before the server. -
Time Of Day (
TimeOfDay) <Float>
Current time of day. -
Hero Minimap Icon Scale (
HeroMinimapIconScale) <Float>
Scale for hero minimap icons. -
Creep Minimap Icon Scale (
CreepMinimapIconScale) <Float>
Scale for creep minimap icons. -
Rune Minimap Icon Scale (
RuneMinimapIconScale) <Float>
Scale for rune minimap icons. -
Is First Blood Active (
IsFirstBloodActive) <Boolean>
Is first blood active? -
Use Custom Hero XP Values (
UseCustomHeroXPValues) <Boolean> -
Use Base Gold Bounty On Heroes (
UseBaseGoldBountyOnHeroes) <Boolean>
Force base gold usage instead of calculated value. -
Remove Illusions On Death (
RemoveIllusionsOnDeath) <Boolean> -
Top Bar Team Values Visible (
TopBarTeamValuesVisible) <Boolean> -
Camera Distance Override (
CameraDistanceOverride) <Float>
Override the camera distance. -
Disable Fog Of War (
DisableFogOfWar) <Boolean> -
Use Unseen Fog Of War (
UseUnseenFogOfWar) <Boolean> -
Is Safe To Leave (
IsSafeToLeave) <Boolean>
Is this game safe to leave? -
Force Select Hero (
ForceSelectHero) <String> -
Use Universal Shop Mode (
UseUniversalShopMode) <Boolean>
Can you buy any item from any shop? -
Disable Purchasing to Stash (
DisableStashPurchasing) <Boolean>
Disable purchasing items to the stash. If disabled shops can only be used when nearby. -
Disable Announcers (
DisableAnnouncer) <Boolean>
Mute the in-game announcers -
Fixed Respawn Time (
FixedRespawnTime) <Float>
Fixed time for heroes to respawn (or -1 to use the standard rules) -
Hide Kill-Message Headers (
HideKillMessageHeaders) <Boolean>
Hide multikill, streak, and first-blood banners
Inputs
-
RunScriptFile <
String>
Load and execute a script file -
RunScriptCode <
String>
Execute a fragment of script code -
CallScriptFunction <
String>
Call a script function -
CallPrivateScriptFunction <
String>
Calls a script function from this entity's private script scope. -
CallGlobalScriptFunction <
String>
Calls a script function in the global script scope. -
Kill <
Void>
Removes this entity from the world. -
KillHierarchy <
Void>
Removes this entity and all its children from the world. -
KillConstrained <
Void>
Removes this entity, all its children, and anything constrained to it, from the world. -
AddOutput <
String>
Adds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care. -
FireUser1 <
Void>
Causes this entity's OnUser1 output to be fired. -
FireUser2 <
Void>
Causes this entity's OnUser2 output to be fired. -
FireUser3 <
Void>
Causes this entity's OnUser3 output to be fired. -
FireUser4 <
Void>
Causes this entity's OnUser4 output to be fired. -
SetTimeOfDay <
Float>
Sets the time of day (0.0->1.0) -
SetGameWinner <
Integer>
Set the winning team and end the game. -
LevelAllHeroesUpOnce <
Void>
Level each hero in the game up one level. -
LevelAllHeroesToMax <
Void>
Level each hero in the game to the max level. -
LevelAllHeroesToLevel <
Integer>
Ensure all heroes are at least level. -
SetStashPurchasingDisabled <
Boolean>
Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items. -
SetFogOfWarDisabled <
Boolean>
Enable or disable fog of war. When disabled all units are considered visible. -
SetUnseenFogOfWarEnabled <
Boolean>
Enable or disable unseen fog of war. When unseen fog of war is enabled parts of the map the player has never seen will be blocked out.
Outputs
-
OnUser1 <
Void>
Fired in response to FireUser1 input. -
OnUser2 <
Void>
Fired in response to FireUser2 input. -
OnUser3 <
Void>
Fired in response to FireUser3 input. -
OnUser4 <
Void>
Fired in response to FireUser4 input. -
OnKilled <
Void>
Fired when the entity is killed and removed from the game. Parameter is the inflictor. -
OnDayStarted <
Void>
Fired when the day starts. -
OnNightStarted <
Void>
Fired when the night starts. -
OnRadiantFortDestroyed <
Void>
Fired when the Radiant Ancient is destroyed. -
OnDireFortDestroyed <
Void>
Fired when the Dire Ancient is destroyed. -
OnGameEnded <
Void>
Fired when the game ends. -
OnGameStarted <
Void>
Fired when game starts.