List of Dota 2 Script Functions
This list contains all engine-related Lua variables, functions, and constants available for VScript in Dota 2 .
CScriptParticleManager
!Used to create and manage particle effects
Function | Signature | Description |
---|---|---|
CreateParticle | int CreateParticle( string particleName, int ParticleAttach, Entity owningEntity)
|
Creates a new particle effect. Returns the particle id |
CreateParticleForPlayer | int CreateParticleForPlayer( string particleName, int ParticleAttach, Entity owningEntity, Player viewingPlayer)
|
Creates a new particle effect that only plays for the specified player |
SetParticleControl | void SetParticleControl( int particleId, int controlIndex, vector controlData)
|
Set the control point data for a control on a particle effect |
ReleaseParticleIndex | void ReleaseParticleIndex( int particleId )
|
Frees the specified particle index |
CDOTAGamerules
!DOTA GameRules
Function | Signature | Description |
---|---|---|
State_Get | GameState State_Get()
|
Get the current Gamerules state |
GetGameTime | float GetGameTime()
|
Returns the number of seconds elapsed since map start. This time doesn't count up when the game is paused |
GetDifficulty | int GetDifficulty()
|
Returns difficulty level of the custom game mode |
GetCustomGameDifficulty | int GetCustomGameDifficulty()
|
Returns the difficulty level of the custom game mode |
Defeated | void Defeated()
|
Kills the ancient, etc. |
ResetDefeated | void ResetDefeated()
|
Restart after killing the ancient, etc. |
SetGameWinner | void SetGameWinner( int )
|
Makes ths specified team win |
MakeTeamLose | void MakeTeamLose( int team )
|
Makes ths specified team lose |
ResetMap | void ResetMap( int )
|
Resets the map in one of several ways |
GetDroppedItem | PhysicalItem GetDroppedItem( int dropIndex)
|
Gets the Xth dropped item |
NumDroppedItems | int NumDroppedItems()
|
Returns the number of items currently dropped on the ground |
SendCustomMessage | void SendCustomMessage( string stringText, int, int )
|
Sends a string to the defined team. |
SetHeroRespawnEnabled | void SetHeroRespawnEnabled( bool canRespawn )
|
Control if the normal DOTA hero respawn rules apply. |
Playtesting_UpdateCustomKeyValues | void Playtesting_UpdateCustomKeyValues()
|
Updates custom hero, unit and ability KeyValues in memory with the latest values from disk |
ResetToHeroSelection | void ResetToHeroSelection()
|
Restart the game at hero selection |
SetTreeRegrowTime | void SetTreeRegrowTime( float seconds)
|
Sets the tree regrow time in seconds. |
SetHeroSelectionTime | void SetHeroSelectionTime( float seconds)
|
Sets the amount of time players have to pick their hero. |
SetPreGameTime | void SetPreGameTime( float seconds)
|
Sets the amount of time players have between picking their hero and game start. |
SetPostGameTime | void SetPostGameTime( float seconds)
|
Sets the amount of time players have between the game ending and the server disconnecting them. |
SetRuneSpawnTime | void SetRuneSpawnTime( float seconds)
|
Sets the amount of time between rune spawns. |
SetSameHeroSelectionEnabled | void SetSameHeroSelectionEnabled( bool enabled)
|
When true, players can repeatedly pick the same hero. |
SetUseUniversalShopMode | void SetUseUniversalShopMode( bool enabled)
|
When true, all items are available at as long as any shop is in range. |
SetTimeOfDay | void SetTimeOfDay( float time)
|
Set the time of day. |
SetOverlayHealthBarUnit | void SetOverlayHealthBarUnit( Unit unit, int style)
|
Show this unit's health on the overlay health bar |
SetHeroMinimapIconSize | void SetHeroMinimapIconSize( int iconSize)
|
(nMinimapHeroIconSize) - Set the hero minimap icon size. |
SetCreepMinimapIconScale | void SetCreepMinimapIconScale( float creepScale)
|
(flMinimapCreepIconScale) - Scale the creep icons on the minimap. |
SetRuneMinimapIconScale | void SetRuneMinimapIconScale( float runeScale)
|
(flMinimapRuneIconScale) - Scale the rune icons on the minimap. |
SetSafeToLeave | void SetSafeToLeave( bool safeToLeave)
|
(bSafeToLeave) - Mark this game as safe to leave. |
SetUseCustomHeroXPValues | void SetUseCustomHeroXPValues( bool )
|
Allows heroes in the map to give a specific amount of XP (this value must be set). |
SetCustomGameDifficulty | void SetCustomGameDifficulty( int )
|
Set the difficulty level of the custom game mode |
SetGoldTickTime | void SetGoldTickTime( float )
|
Set the time interval between auto gold increases. |
SetGoldPerTick | void SetGoldPerTick( int )
|
Set the auto gold increase per timed interval. |
SetNianFightStartTime | void SetNianFightStartTime( float )
|
Sets the start time for the Nian fight |
GetNianFightStartTime | float GetNianFightStartTime()
|
Gets the start time for the Nian fight |
GetMatchSignoutComplete | bool GetMatchSignoutComplete()
|
Have we received the post match signout message that includes reward information |
DidMatchSignoutTimeOut | bool DidMatchSignoutTimeOut()
|
true when we have waited some time after end of the game and not received signout |
GetNianTotalDamageTaken | int GetNianTotalDamageTaken()
|
For New Bloom, get total damage taken by the Nian / Year Beast |
CEntities
!The global list of entities
Function | Signature | Description |
---|---|---|
First | Entity First()
|
Begin an iteration over the list of entities |
Next | Entity Next( Entity startFrom)
|
Continue an iteration over the list of entities, providing reference to a previously found entity |
CreateByClassname | Entity CreateByClassname( string className)
|
Creates an entity by classname |
FindByClassname | Entity FindByClassname( Entity startFrom, string className)
|
Find entities by class name. Pass 'nil' to start an iteration, or reference to a previously found entity to continue a search |
FindAllByClassname | table FindAllByClassname( string className)
|
Finds all entities by class name. Returns an array containing all the found entities. |
FindByName | Entity FindByName( Entity startFrom, string entName)
|
Find entities by name. Pass 'nil' to start an iteration, or reference to a previously found entity to continue a search |
FindAllByName | table FindAllByName( string name)
|
Find all entities by name. Returns an array containing all the found entities in it. |
FindInSphere | Entity FindInSphere( Entity startFrom, vector origin, float radius)
|
Find entities within a radius. Pass 'nil' to start an iteration, or reference to a previously found entity to continue a search |
FindAllInSphere | table FindAllInSphere( vector origin, float radius)
|
Find entities within a radius. |
FindByTarget | Entity FindByTarget( Entity startFrom, string targetName)
|
Find entities by targetname. Pass 'nil' to start an iteration, or reference to a previously found entity to continue a search |
FindAllByTarget | table FindAllByTarget( string targetName)
|
Find entities by targetname. |
FindByModel | Entity FindByModel( Entity startFrom, string modelName)
|
Find entities by model name. Pass 'nil' to start an iteration, or reference to a previously found entity to continue a search |
FindAllByModel | table FindAllByModel( string modelName)
|
Find entities by model name. |
FindByNameNearest | Entity FindByNameNearest( string entityName, vector origin, float radius )
|
Find entities by name nearest to a point. |
FindByNameWithin | Entity FindByNameWithin( Entity startFrom, string entityName, vector origin, float radius)
|
Find entities by name within a radius. Pass 'nil' to start an iteration, or reference to a previously found entity to continue a search |
FindAllByNameWithin | table FindAllByNameWithin( stringentityName, vector origin, float radius)
|
Find entities by name within a radius. |
FindByClassnameNearest | Entity FindByClassnameNearest( string className, vector origin, float radius)
|
Find entities by class name nearest to a point. |
FindByClassnameWithin | Entity FindByClassnameWithin( Entity startFrom, string className, vector origin, float radius)
|
Find entities by class name within a radius. Pass 'nil' to start an iteration, or reference to a previously found entity to continue a search |
FindAllByClassnameWithin | table FindAllByClassnameWithin( string className, vector origin, float radius)
|
Find entities by class name within a radius. |
CScriptHeroList
!The global list of heroes
Function | Signature | Description |
---|---|---|
GetHero | Hero GetHero( int heroId)
|
Get the Nth hero in the Hero List |
GetHeroCount | int GetHeroCount()
|
Returns the number of heroes in the world |
GetAllHeroes | table GetAllHeroes()
|
Returns all the heroes in the world |
Convars
!Access to convar functions
Function | Signature | Description |
---|---|---|
GetFloat | float GetFloat( string varName)
|
GetFloat(name) : returns the convar as a float. May return nil if no such convar. |
GetStr | string GetStr( string varName)
|
GetFloat(name) : returns the convar as a string. May return nil if no such convar. |
GetBool | bool GetBool( string varName)
|
GetBool(name) : returns the convar as a boolean flag. May return nil if no such convar. |
RegisterCommand | void RegisterCommand( string varName, function func, string helpText, int flags)
|
Register a console command. |
RegisterConvar | void RegisterConvar( string name, string default, string helpText, int flags)
|
Register a new console variable. |
GetCommandClient | Player GetCommandClient()
|
GetCommandClient() : returns the player who issued this console command. |
GetDOTACommandClient | hscript GetDOTACommandClient()
|
GetDOTACommandClient() : returns the DOTA player who issued this console command. |
CBaseEntity
Root class of all server-side entities
Function | Signature | Description |
---|---|---|
ConnectOutput | void ConnectOutput( string, string )
|
Adds an I/O connection that will call the named function when the specified output fires |
DisconnectOutput | void DisconnectOutput( string, string )
|
Removes a connected script function from an I/O event. |
GetHealth | int GetHealth()
|
|
SetHealth | void SetHealth( int hp)
|
|
GetMaxHealth | int GetMaxHealth()
|
|
SetMaxHealth | void SetMaxHealth( int hp)
|
|
IsAlive | bool IsAlive()
|
|
Remove | void Remove()
|
|
SetModel | void SetModel( string modelName)
|
|
GetModelName | string GetModelName()
|
Returns the name of the model |
EmitSound | void EmitSound( string soundName)
|
Plays a sound from this entity. |
EmitSoundParams | void EmitSoundParams( string soundName, int pitch, float volume)
|
Plays/modifies a sound from this entity. changes sound if nPitch and/or flVol is > 0. |
StopSound | void StopSound( string soundName)
|
Stops a named sound playing from this entity. |
PrecacheSoundScript | void PrecacheSoundScript( string soundName)
|
Precache a sound for later playing. |
GetSoundDuration | float GetSoundDuration( string soundName, string actorModelname)
|
Returns float duration of the sound. Takes soundname and optional actormodelname. |
GetClassname | string GetClassname()
|
|
GetName | string GetName()
|
|
GetPreTemplateName | string GetPreTemplateName()
|
Get the entity name stripped of template unique decoration |
GetAbsOrigin | vector GetAbsOrigin()
|
|
SetAbsOrigin | void SetAbsOrigin( vector )
|
|
GetOrigin | vector GetOrigin()
|
|
SetAbsOrigin | void SetAbsOrigin( vector vec)
|
SetOrigin |
SetOrigin | void SetOrigin( vector vec)
|
|
GetForwardVector | vector GetForwardVector()
|
Get the forward vector of the entity |
GetRightVector | vector GetRightVector()
|
Get the right vector of the entity |
GetUpVector | vector GetUpVector()
|
Get the up vector of the entity |
SetForwardVector | void SetForwardVector( vector forward)
|
Set the orientation of the entity to have this forward vector |
GetVelocity | vector GetVelocity()
|
|
SetVelocity | void SetVelocity( vector velocity)
|
This may crash the client |
SetAngularVelocity | void SetAngularVelocity( float pitch, float yaw, float roll)
|
Set the local angular velocity |
GetAngularVelocity | vector GetAngularVelocity()
|
Get the local angular velocity - returns a vector of pitch,yaw,roll |
GetCenter | vector GetCenter()
|
Get vector to center of object - absolute coords |
EyePosition | vector EyePosition()
|
Get vector to eye position - absolute coords |
SetAngles | void SetAngles( float pitch, float yaw, float roll)
|
Set entity pitch, yaw, roll |
GetAngles | vector GetAngles()
|
Get entity pitch, yaw, roll as a vector |
SetSize | void SetSize( vector, vector )
|
|
GetBoundingMins | vector GetBoundingMins()
|
Get a vector containing min bounds, centered on object |
GetBoundingMaxs | vector GetBoundingMaxs()
|
Get a vector containing max bounds, centered on object |
Destroy | void Destroy()
|
|
SetOwner | void SetOwner( Entity parent)
|
Sets the parent of the entity. This does not give a player control over the entity |
GetTeam | int GetTeam()
|
|
SetTeam | void SetTeam( int team)
|
Sets the team of the entity |
GetMoveParent | Entity GetMoveParent()
|
If in hierarchy, retrieves the entity's parent |
GetRootMoveParent | Entity GetRootMoveParent()
|
If in hierarchy, walks up the hierarchy to find the root parent |
FirstMoveChild | Entity FirstMoveChild()
|
|
NextMovePeer | Entity NextMovePeer()
|
|
__KeyValueFromString | bool __KeyValueFromString( string, string )
|
@ |
__KeyValueFromFloat | bool __KeyValueFromFloat( string, float )
|
@ |
__KeyValueFromInt | bool __KeyValueFromInt( string, int )
|
@ |
__KeyValueFromVector | bool __KeyValueFromVector( string, vector )
|
@ |
Trigger | void Trigger()
|
Fires off this entity's OnTrigger responses |
ValidateScriptScope | bool ValidateScriptScope()
|
Ensure that an entity's script scope has been created |
GetScriptScope | hscript GetScriptScope()
|
Retrieve the script-side data associated with an entity |
GetScriptId | string GetScriptId()
|
Retrieve the unique identifier used to refer to the entity within the scripting system |
GetOwner | Entity GetOwner()
|
Gets this entity's owner |
entindex | int entindex()
|
CDOTA_PlayerResource
- extends CBaseEntity
Interface to player data
Function | Signature | Description |
---|---|---|
SetHasRepicked | void SetHasRepicked( int playerId)
|
marks if the playerId player has repicked |
HasRepicked | bool HasRepicked( int playerId)
|
returns true if playerId has repicked |
SetHasRandomed | void SetHasRandomed( int playerId)
|
|
HasRandomed | bool HasRandomed( int playerId)
|
|
IsValidTeamPlayerID | bool IsValidTeamPlayerID( int playerId)
|
|
IsValidTeamPlayer | bool IsValidTeamPlayer( int playerId)
|
|
IsValidPlayerID | bool IsValidPlayerID( int playerId)
|
|
IsValidPlayer | bool IsValidPlayer( int playerId)
|
|
GetLevel | int GetLevel( int playerId)
|
|
IncrementKills | void IncrementKills( int playerId, int kills)
|
|
IncrementAssists | void IncrementAssists( int playerId)
|
|
IncrementDeaths | void IncrementDeaths( int playerId)
|
|
GetKills | int GetKills( int playerId)
|
|
GetAssists | int GetAssists( int playerId)
|
|
GetDeaths | int GetDeaths( int playerId)
|
|
GetStuns | float GetStuns( int playerId)
|
|
GetHealing | float GetHealing( int playerId)
|
|
GetTowerKills | int GetTowerKills( int playerId)
|
|
GetRoshanKills | int GetRoshanKills( int playerId)
|
|
GetTeamKills | int GetTeamKills( int playerId)
|
|
IncrementStreak | void IncrementStreak( int playerId)
|
|
ClearStreak | void ClearStreak( int playerId)
|
|
GetStreak | int GetStreak( int playerId)
|
|
ModifyGold | int ModifyGold( int playerId, int goldAmt, bool reliable, int )
|
In frostivus it is hero:ModifyGold( int goldAmt, bool reliable, int )
|
SetGold | void SetGold( int playerId, int goldAmt, bool reliable)
|
|
SpendGold | void SpendGold( int playerId, int amt, int )
|
|
GetGold | int GetGold( int playerId)
|
|
GetReliableGold | int GetReliableGold( int playerId)
|
|
GetUnreliableGold | int GetUnreliableGold( int playerId)
|
|
ResetTotalEarnedGold | void ResetTotalEarnedGold( int playerId)
|
|
GetTotalEarnedGold | int GetTotalEarnedGold( int playerId)
|
|
GetTotalGoldSpent | int GetTotalGoldSpent( int playerId)
|
|
AddGoldSpentOnSupport | void AddGoldSpentOnSupport( int, int )
|
|
GetGoldSpentOnSupport | int GetGoldSpentOnSupport( int playerId)
|
|
GetGoldSpentOnConsumables | int GetGoldSpentOnConsumables( int playerId)
|
|
GetGoldSpentOnItems | int GetGoldSpentOnItems( int playerId)
|
|
GetGoldLostToDeath | int GetGoldLostToDeath( int playerId)
|
|
GetGoldSpentOnBuybacks | int GetGoldSpentOnBuybacks( int playerId)
|
|
GetGoldPerMin | float GetGoldPerMin( int playerId)
|
|
GetXPPerMin | float GetXPPerMin( int playerId)
|
|
GetAegisPickups | int GetAegisPickups( int playerId)
|
|
AddAegisPickup | void AddAegisPickup( int playerId)
|
|
GetRunePickups | int GetRunePickups( int playerId)
|
|
AddRunePickup | void AddRunePickup( int playerId)
|
|
GetNumConsumablesPurchased | int GetNumConsumablesPurchased( intplayerId )
|
|
GetNumItemsPurchased | int GetNumItemsPurchased( int playerId)
|
|
GetTimeOfLastItemPurchase | float GetTimeOfLastItemPurchase( int playerId)
|
|
GetTimeOfLastConsumablePurchase | float GetTimeOfLastConsumablePurchase( int playerId)
|
|
GetTimeOfLastDeath | float GetTimeOfLastDeath( int playerId)
|
|
GetRespawnSeconds | int GetRespawnSeconds( int playerId)
|
|
IncrementTotalEarnedXP | void IncrementTotalEarnedXP( int playerId, int amt)
|
|
GetTotalEarnedXP | int GetTotalEarnedXP( int playerId)
|
|
AddClaimedFarm | void AddClaimedFarm( int playerId, float farm)
|
|
GetClaimedFarm | float GetClaimedFarm( int playerId)
|
|
GetRawPlayerDamage | int GetRawPlayerDamage( int playerId)
|
|
ClearRawPlayerDamageMatrix | void ClearRawPlayerDamageMatrix( int playerId)
|
|
ClearKillsMatrix | void ClearKillsMatrix( int playerId)
|
|
GetTowerDamageTaken | int GetTowerDamageTaken( int playerId)
|
|
GetCreepDamageTaken | int GetCreepDamageTaken( int playerId)
|
|
GetHeroDamageTaken | int GetHeroDamageTaken( int playerId)
|
|
GetDamageDoneToHero | int GetDamageDoneToHero( int playerId, int heroId)
|
|
GetKillsDoneToHero | int GetKillsDoneToHero( int playerId, int heroId)
|
|
GetSelectedHeroName | string GetSelectedHeroName( int playerId)
|
|
GetSelectedHeroID | int GetSelectedHeroID( int playerId)
|
|
IsHeroSelected | bool IsHeroSelected( string heroName)
|
|
WhoSelectedHero | int WhoSelectedHero( string heroName)
|
returns playerId |
GetSelectedHeroEntity | Entity GetSelectedHeroEntity( int playerId)
|
|
HasSelectedHero | bool HasSelectedHero( int playerId)
|
|
GetPlayer | Player GetPlayer( int playerId)
|
|
GetNthPlayerIDOnTeam | int GetNthPlayerIDOnTeam( int index, int team)
|
returns the playerId |
IncrementLastHits | void IncrementLastHits( int playerId)
|
|
GetLastHits | int GetLastHits( int playerId)
|
|
IncrementGoldBagsCollected | void IncrementGoldBagsCollected( int playerId)
|
|
GetGoldBagsCollected | int GetGoldBagsCollected( int playerId)
|
|
IncrementLastHitStreak | void IncrementLastHitStreak( int playerId)
|
|
ClearLastHitStreak | void ClearLastHitStreak( int playerId)
|
|
GetLastHitStreak | int GetLastHitStreak( int playerId)
|
|
IncrementLastHitMultikill | void IncrementLastHitMultikill( int playerId)
|
|
ClearLastHitMultikill | void ClearLastHitMultikill( int playerId)
|
|
GetLastHitMultikill | int GetLastHitMultikill( int playerId)
|
|
IncrementNearbyCreepDeaths | void IncrementNearbyCreepDeaths( int playerId)
|
|
GetNearbyCreepDeaths | int GetNearbyCreepDeaths( int playerId)
|
|
IncrementDenies | void IncrementDenies( int playerId)
|
|
GetDenies | int GetDenies( int playerId)
|
|
IncrementClaimedMisses | void IncrementClaimedMisses( int playerId)
|
|
GetClaimedMisses | int GetClaimedMisses( int playerId)
|
|
IncrementClaimedDenies | void IncrementClaimedDenies( int playerId)
|
|
GetClaimedDenies | int GetClaimedDenies( int playerId )
|
|
IncrementMisses | void IncrementMisses( int playerId)
|
|
GetMisses | int GetMisses( int playerId)
|
|
UpdateTeamSlot | void UpdateTeamSlot( int playerId, int slot)
|
|
GetTeam | int GetTeam( int playerId)
|
returns teamId |
IsBroadcaster | bool IsBroadcaster( int playerId)
|
|
GetBroadcasterChannel | uint GetBroadcasterChannel( int playerId)
|
|
GetBroadcasterChannelSlot | uint GetBroadcasterChannelSlot( int playerId)
|
|
GetSteamAccountID | uint GetSteamAccountID( int playerId)
|
|
IsFakeClient | bool IsFakeClient( int playerId)
|
|
HaveAllPlayersJoined | bool HaveAllPlayersJoined()
|
|
GetPlayerLoadedCompletely | bool GetPlayerLoadedCompletely( int playerId)
|
|
SetPlayerReservedState | void SetPlayerReservedState( int playerId, bool reserved)
|
|
GetPlayerReservedState | bool GetPlayerReservedState( int playerId)
|
|
GetConnectionState | unknown_variant_type GetConnectionState( int playerId)
|
|
HeroLevelUp | void HeroLevelUp( int playerId)
|
|
SetLastBuybackTime | void SetLastBuybackTime( int playerId, int time)
|
|
GetPlayerName | string GetPlayerName( int playerId)
|
|
GetUnitShareMaskForPlayer | int GetUnitShareMaskForPlayer( int playerId, int otherPlayerId)
|
|
IsHeroSharedWithPlayerID | bool IsHeroSharedWithPlayerID( int playerId, int otherPlayerId)
|
|
AreUnitsSharedWithPlayerID | bool AreUnitsSharedWithPlayerID( int playerId, int otherPlayerId)
|
|
IsDisableHelpSetForPlayerID | bool IsDisableHelpSetForPlayerID( int playerId, int otherPlayerId)
|
|
SetUnitShareMaskForPlayer | void SetUnitShareMaskForPlayer( int, int, int, bool )
|
|
GetNumCouriersForTeam | int GetNumCouriersForTeam( int team)
|
|
GetNthCourierForTeam | hscript GetNthCourierForTeam( int index, int team)
|
|
SetBuybackCooldownTime | void SetBuybackCooldownTime( int playerId, float cooldown)
|
|
SetBuybackGoldLimitTime | void SetBuybackGoldLimitTime( int playerId, float buybackGold)
|
|
ResetBuybackCostTime | void ResetBuybackCostTime( int playerId)
|
|
ReplaceHeroWith | hscript ReplaceHeroWith( int, string, int, int )
|
(playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP |
SetCustomBuybackCost | void SetCustomBuybackCost( int, int )
|
Set the buyback cost for this player. |
SetCustomBuybackCooldown | void SetCustomBuybackCooldown( int, float )
|
|
GetCustomBuybackCost | int GetCustomBuybackCost( int )
|
|
GetCustomBuybackCooldown | float GetCustomBuybackCooldown( int )
|
|
SetCameraTarget | void SetCameraTarget( int, hscript )
|
(playerID, entity) - force the given player's camera to follow the given entity |
GetEventPointsForPlayerID | int GetEventPointsForPlayerID( int )
|
|
GetEventPremiumPointsGranted | int GetEventPremiumPointsGranted( int )
|
|
GetEventRankGranted | int GetEventRankGranted( int )
|
ProjectileManager
The projectile manager
Function | Signature | Description |
---|---|---|
CreateTrackingProjectile | void CreateTrackingProjectile( hscript )
|
Creates a tracking projectile |
CreateLinearProjectile | int CreateLinearProjectile( hscript )
|
Creates a linear projectile and returns the projectile ID |
DestroyLinearProjectile | void DestroyLinearProjectile( int )
|
Destroys the linear projectile matching the argument ID |
ProjectileDodge | void ProjectileDodge( hscript )
|
Makes the specified unit dodge projectiles |
CDOTABaseGameMode
- extends CBaseEntity
Base game mode class
Function | Signature | Description |
---|---|---|
BeginThink | bool BeginThink( string thinkName, function func, float intervalInSeconds)
|
Start a think callback. Takes a function and an interval |
EndThink | void EndThink( string thinkName )
|
Stop a think callback. |
SetAlwaysShowPlayerInventory | void SetAlwaysShowPlayerInventory( bool alwaysShow)
|
Show the player hero's inventory in the HUD, regardless of what unit is selected. |
SetGoldSoundDisabled | void SetGoldSoundDisabled( bool playSound)
|
Turn the sound when gold is acquired off/on. Takes a bool. |
SetRecommendedItemsDisabled | void SetRecommendedItemsDisabled( bool disableRecItems)
|
Turn the panel for showing recommended items at the shop off/on. Takes a bool. |
SetCameraDistanceOverride | void SetCameraDistanceOverride( float cameraDistance)
|
Set a different camera distance; dota default is 1134. |
SetOverrideSelectionEntity | void SetOverrideSelectionEntity( Unit unit)
|
Set an override for the default selection entity, instead of each player's hero. |
SetRemoveIllusionsOnDeath | void SetRemoveIllusionsOnDeath( bool removeIllusions)
|
Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds. |
ClientLoadGridNav | void ClientLoadGridNav()
|
Tell clients that they need to load gridnav information. Used for things like allowing clients to identify valid locations to place buildings. |
SetFogOfWarDisabled | void SetFogOfWarDisabled( bool )
|
Turn the fog of war on or off. |
SetCustomBuybackCostEnabled | void SetCustomBuybackCostEnabled( bool )
|
Turns on capability to define custom buyback costs. |
SetCustomBuybackCooldownEnabled | void SetCustomBuybackCooldownEnabled( bool )
|
Turns on capability to define custom buyback cooldowns. |
SetTopBarTeamValuesOverride | void SetTopBarTeamValuesOverride( bool )
|
Override the values of the team values on the top game bar. |
SetTopBarTeamValuesVisible | void SetTopBarTeamValuesVisible( bool )
|
Turning on/off the team values on the top game bar. |
SetTopBarTeamValue | void SetTopBarTeamValue( int, int )
|
Set the team values on the top game bar. |
CBaseAnimating
- extends CBaseEntity
Animating models
Function | Signature | Description |
---|---|---|
LookupAttachment | int LookupAttachment( string attachmentName )
|
Get the named attachement id |
GetAttachmentOrigin | vector GetAttachmentOrigin( int attachmentId )
|
Get the attachement id's origin vector |
GetAttachmentAngles | vector GetAttachmentAngles( int attachmentId)
|
Get the attachement id's angles as a p,y,r vector |
IsSequenceFinished | bool IsSequenceFinished()
|
Ask whether the main sequence is done playing |
SetBodygroup | void SetBodygroup( int, int )
|
Sets a bodygroup |
SetModelScale | void SetModelScale( float scale, float fadeTimeSeconds)
|
Set the model scale |
CBaseFlex
- extends CBaseAnimating
Animated characters who have vertex flex capability.
Function | Signature | Description |
---|---|---|
GetCurrentScene | hscript GetCurrentScene()
|
Returns the instance of the oldest active scene entity (if any). |
GetSceneByIndex | hscript GetSceneByIndex( int )
|
Returns the instance of the scene entity at the specified index. |
CDOTA_BaseNPC
- extends CBaseFlex
A Dota NPC Unit
Function | Signature | Description |
---|---|---|
IsAncient | bool IsAncient()
|
Is this creature an Ancient? |
IsNeutralUnitType | bool IsNeutralUnitType()
|
Is this a neutral? |
IsSummoned | bool IsSummoned()
|
Is this unit summoned? |
IsCreature | bool IsCreature()
|
Is this a Creature type NPC |
IsHero | bool IsHero()
|
Is this a hero or hero illusion? |
IsRealHero | bool IsRealHero()
|
Is this a real hero? |
IsTower | bool IsTower()
|
Is this a tower? |
IsAlive | bool IsAlive()
|
Is this unit alive? |
IsMechanical | bool IsMechanical()
|
Is the unit mechanical? |
IsPhantom | bool IsPhantom()
|
Is this a phantom unit? |
SetInitialGoalEntity | void SetInitialGoalEntity( Entity goalEntity)
|
Sets the initial waypoint goal for this NPC |
GetInitialGoalEntity | Entity GetInitialGoalEntity()
|
Returns the initial waypoint goal for this NPC |
SetMustReachEachGoalEntity | void SetMustReachEachGoalEntity( bool mustReach)
|
Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path |
GetMustReachEachGoalEntity | bool GetMustReachEachGoalEntity()
|
Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path |
AddNewModifier | void AddNewModifier( Unit caster, Ability optionalSrcAbility, string modifierName, table modifierData)
|
Add a modifier to this unit. |
HasModifier | bool HasModifier( string modifierName)
|
Sees if this unit has a given modifier |
RemoveModifierByName | void RemoveModifierByName( string modifierName)
|
Removes a modifier |
RemoveModifierByNameAndCaster | void RemoveModifierByNameAndCaster( string name, Unit caster)
|
Removes a modifier that was cast by the given caster |
AddItem | void AddItem( Item itemName)
|
Add an item to this unit's inventory. |
AddAbility | void AddAbility( string abilityName)
|
Add an ability to this unit by name. |
RemoveAbility | void RemoveAbility( string abilityName)
|
Remove an ability from this unit by name as defined in the keyvalues |
HasAbility | bool HasAbility( string abilityName)
|
See whether this unit has an ability by name. |
HasItemInInventory | bool HasItemInInventory( string )
|
See whether this unit has an item by name. |
FindAbilityByName | hscript FindAbilityByName( string abilityName)
|
Retrieve an ability by name from the unit. |
GetGoldBounty | int GetGoldBounty()
|
Get the gold bounty on this unit |
SetDeathXP | void SetDeathXP( int xpBounty)
|
Set the XP bounty on this unit |
GetDeathXP | int GetDeathXP()
|
Get the XP bounty on this unit |
GetUnitName | string GetUnitName()
|
Get the name of this unit. |
GetTeamNumber | int GetTeamNumber()
|
Get the team number of this unit. |
GetPlayerOwner | hscript GetPlayerOwner()
|
Returns the player that owns this unit |
SetMaximumGoldBounty | void SetMaximumGoldBounty( int goldBounty)
|
Set the maximum gold bounty for this unit. |
SetMinimumGoldBounty | void SetMinimumGoldBounty( int goldBounty)
|
Set the minimum gold bounty for this unit. |
GetTotalPurchasedUpgradeGoldCost | int GetTotalPurchasedUpgradeGoldCost()
|
Get how much gold has been spent on ability upgrades. |
ForceKill | void ForceKill( bool playAegisLines)
|
Kill this unit immediately. |
GetBaseDamageMin | int GetBaseDamageMin()
|
Get the minimum attack damage of this unit. |
GetBaseDamageMax | int GetBaseDamageMax()
|
Get the maximum attack damage of this unit. |
Heal | void Heal( int amount, Unit source)
|
Heal this unit. |
GetMaxHealth | int GetMaxHealth()
|
Get the maximum health of this unit. |
GetHealthPercent | int GetHealthPercent()
|
Get the current health percent of the unit. |
SetMana | void SetMana( float mana)
|
Set the mana on this unit. |
GetMaxMana | float GetMaxMana()
|
Get the maximum mana of this unit. |
RespawnUnit | void RespawnUnit()
|
Respawns the target unit if it can be respawned. |
GetLevel | int GetLevel()
|
Returns the level of this unit. |
GetItemInSlot | hscript GetItemInSlot( int slotId)
|
Returns nth item in inventory slot (index is zero based) |
SetOriginalModel | void SetOriginalModel( string originalModel)
|
Sets the original model of this entity, which it will tend to fall back to anytime its state changes |
AddNoDraw | void AddNoDraw()
|
Adds the no draw flag. |
RemoveNoDraw | void RemoveNoDraw()
|
Remove the no draw flag. |
GetPlayerOwnerID | int GetPlayerOwnerID()
|
Get the owner player ID for this unit. |
IsRangedAttacker | bool IsRangedAttacker()
|
Is this unit a ranged attacker? |
GetCurrentActiveAbility | hscript GetCurrentActiveAbility()
|
Get the ability this unit is currently casting. |
MoveToPosition | void MoveToPosition( vector )
|
Issue a Move-To command |
MoveToPositionAggressive | void MoveToPositionAggressive( vector )
|
Issue an Attack-Move-To command |
MoveToNPC | void MoveToNPC( hscript )
|
Move to follow a unit. |
MoveToTargetToAttack | void MoveToTargetToAttack( hscript )
|
Move to a target to attack. |
Hold | void Hold()
|
Hold position. |
Stop | void Stop()
|
Stop the current order. |
CastAbilityToggle | void CastAbilityToggle( hscript, int )
|
Toggle an ability. |
CastAbilityImmediately | void CastAbilityImmediately( hscript, int )
|
Cast an ability immediately. |
CastAbilityOnPosition | void CastAbilityOnPosition( vector, hscript, int )
|
Cast an ability on a position. |
CastAbilityOnTarget | void CastAbilityOnTarget( Unit target, Ability ability, int )
|
Cast an ability on a specified target. Third Param can be 0 or -1. |
CastAbilityNoTarget | void CastAbilityNoTarget( Ability ability, int )
|
Cast an ability. Third Param can be 0 or -1. |
DropItemAtPosition | void DropItemAtPosition( vector, hscript )
|
Drop an item at a given point. |
MoveToNPCToGiveItem | void MoveToNPCToGiveItem( hscript, hscript )
|
Give an item to another unit. |
PickupDroppedItem | void ( hscript )
|
Pick up a dropped item. |
PickupRune | void PickupRune( hscript )
|
Pick up a rune. |
DropItemAtPositionImmediate | void DropItemAtPositionImmediate( hscript, vector )
|
Immediately drop a carried item at a given position. |
SetAdditionalBattleMusicWeight | void SetAdditionalBattleMusicWeight( float )
|
Combat involving this creature will have this weight added to the music calcuations |
GetAdditionalBattleMusicWeight | float GetAdditionalBattleMusicWeight()
|
Combat involving this creature will have this weight added to the music calcuations |
CDOTA_BaseNPC_Building
- extends CDOTA_BaseNPC
A building.
Function | Signature | Description |
---|---|---|
GetInvulnCount | int GetInvulnCount()
|
Get the invulnerability count for a building. |
SetInvulnCount | void SetInvulnCount( int )
|
Set the invulnerability counter of this building. |
CDOTA_BaseNPC_Creature
- extends CDOTA_BaseNPC
A Dota NPC Unit
Function | Signature | Description |
---|---|---|
CreatureLevelUp | void CreatureLevelUp( int numLevels)
|
Level the creature up by the specified number of levels |
AddItemDrop | void AddItemDrop( PhysicalItem item )
|
Add the specified item drop to this creature |
SetChampion | void SetChampion( bool champion)
|
Flag this unit as a champion creature. |
IsChampion | bool IsChampion()
|
Is this unit a champion? |
SetHPGain | void SetHPGain( int hpPerLevel)
|
Set the hit points gained per level on this creature. |
SetManaGain | void SetManaGain( int manaPerLevel)
|
Set the mana points gained per level on this creature. |
SetHPRegenGain | void SetHPRegenGain( float regenPerLevel)
|
Set the hit points regen gained per level on this creature. |
SetManaRegenGain | void SetManaRegenGain( float manaRegenGain)
|
Set the mana points regen gained per level on this creature. |
SetDamageGain | void SetDamageGain( int damageGain)
|
Set the damage gained per level on this creature. |
SetArmorGain | void SetArmorGain( float armorGain)
|
Set the armor gained per level on this creature. |
SetMagicResistanceGain | void SetMagicResistanceGain( float magicResistGain)
|
Set the magic resistance gained per level on this creature. |
SetDisableResistanceGain | void SetDisableResistanceGain( float disableResist)
|
Set the disable resistance gained per level on this creature. |
SetAttackTimeGain | void SetAttackTimeGain( float attackSpeedGain)
|
Set the attack time gained per level on this creature. |
SetMoveSpeedGain | void SetMoveSpeedGain( int moveSpeedGain)
|
Set the move speed gained per level on this creature. |
SetBountyGain | void SetBountyGain( int bountyGain)
|
Set the bounty gold gained per level on this creature. |
SetXPGain | void SetXPGain( int xpGain)
|
Set the xp reward gained per level on this creature. |
CDOTA_Unit_Nian
- extends CDOTA_BaseNPC_Creature
A Dota NPC Unit
Function | Signature | Description |
---|---|---|
IsHornAlive | bool IsHornAlive()
|
Is the Nian's horn broken? |
ModifyGold | bool IsTailAlive()
|
Is the Nian's tail broken? |
GetHorn | hscript GetHorn()
|
Is the Nian horn? |
GetTail | hscript GetTail()
|
Is the Nian's tail broken? |
CDOTA_BaseNPC_Hero
- extends CDOTA_BaseNPC
A Dota Hero NPC
Function | Signature | Description |
---|---|---|
ModifyGold | int ModifyGold( int goldAmmount, bool reliable, int )
|
Gives this hero some gold |
GetGold | int GetGold()
|
Returns gold amount for the player owning this hero |
SetGold | void SetGold( int goldAmmount, bool reliable)
|
Sets the gold amount for the player owning this hero |
GetCurrentXP | int GetCurrentXP()
|
Returns the amount of XP |
GetPlayerID | int GetPlayerID()
|
Returns player ID of the player owning this hero |
RespawnHero | void RespawnHero( bool buyback, bool, bool )
|
Respawn this hero. |
HeroLevelUp | void HeroLevelUp( bool )
|
Levels up the hero, true or false to play effects. |
GetAbilityPoints | int GetAbilityPoints()
|
Gets the current unspent ability points. |
SetAbilityPoints | void SetAbilityPoints( int )
|
Sets the current unspent ability points. |
SetCustomDeathXP | void SetCustomDeathXP( int )
|
Sets a custom experience value for this hero. Note, GameRules boolean must be set for this to work! |
CDOTABaseAbility
- extends CBaseEntity
An ability
Function | Signature | Description |
---|---|---|
GetAbilityName | string GetAbilityName()
|
Returns the name of this ability. |
GetSpecialValueFor | variant GetSpecialValueFor( string specialValue)
|
Gets a value from this ability's special value block for its current level. Ability must have a "AbilitySpecial" block defined in it's KeyValues. |
GetCastRange | int GetCastRange()
|
Gets the cast range of the ability. |
IsFullyCastable | bool IsFullyCastable()
|
Returns whether the ability can be cast. |
IsChanneling | bool IsChanneling()
|
Returns whether the ability is currently channeling. |
IsInAbilityPhase | bool IsInAbilityPhase()
|
Returns whether the ability is currently casting. |
GetCooldown | float GetCooldown( int level)
|
Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left. |
EndCooldown | void EndCooldown()
|
Clear the cooldown remaining on this ability. |
MarkAbilityButtonDirty | void MarkAbilityButtonDirty()
|
Mark the ability button for this ability as needing a refresh |
SetLevel | void SetLevel( int abilityLevel)
|
Sets the level of this ability. |
CDOTA_Ability_Animation_Attack
- extends CDOTABaseAbility
Function | Signature | Description |
---|---|---|
SetPlaybackRate | void SetPlaybackRate( float )
|
Override playbackrate |
CDOTA_Ability_Animation_Tailspin
- extends CDOTABaseAbility
Function | Signature | Description |
---|---|---|
SetPlaybackRate | void SetPlaybackRate( float )
|
Override playbackrate |
CDOTA_Ability_Nian_Dive
- extends CDOTABaseAbility
Function | Signature | Description |
---|---|---|
SetPlaybackRate | void SetPlaybackRate( float )
|
Override playbackrate |
CDOTA_Ability_Nian_Leap
- extends CDOTABaseAbility
Function | Signature | Description |
---|---|---|
SetPlaybackRate | void SetPlaybackRate( float )
|
Override playbackrate |
CDOTA_Ability_Nian_Roar
- extends CDOTABaseAbility
Function | Signature | Description |
---|---|---|
GetCastCount | int GetCastCount()
|
Number of times Nian has used the roar |
CDotaQuest
- extends CBaseEntity
A quest
Function | Signature | Description |
---|---|---|
SetTextReplaceValue | void SetTextReplaceValue( int questText, int value)
|
Set a quest value |
CompleteQuest | void CompleteQuest()
|
Mark this quest complete |
SetTextReplaceString | void SetTextReplaceString( string replace )
|
Set the text replace string for this quest |
AddSubquest | void AddSubquest( hscript )
|
Add a subquest to this quest |
RemoveSubquest | void RemoveSubquest( hscript )
|
Remove a subquest from this quest |
GetSubquestByName | hscript GetSubquestByName( string )
|
Finds a subquest from this quest by name |
GetSubquest | hscript GetSubquest( int )
|
Finds a subquest from this quest by index |
CDotaSubquestBase
- extends CBaseEntity
A subquest
Function | Signature | Description |
---|---|---|
SetTextReplaceValue | void SetTextReplaceValue( int, int )
|
Set a subquest value |
CompleteSubquest | void CompleteSubquest()
|
Mark this subquest complete |
SetTextReplaceString | void SetTextReplaceString( string )
|
Set the text replace string for this subquest |
CDOTA_Item
- extends CDOTABaseAbility
A usable item.
Function | Signature | Description |
---|---|---|
SetPurchaseTime | void SetPurchaseTime( float purchaseTime)
|
Set the purchase time of this item |
GetPurchaseTime | float GetPurchaseTime()
|
Get the purchase time of this item |
SetPurchaser | void SetPurchaser( Unit unit )
|
Set the purchaser of record for this item. |
GetInitialCharges | int GetInitialCharges()
|
Get the initial number of charges this item has. |
GetCurrentCharges | int GetCurrentCharges()
|
Get the number of charges this item currently has. |
SetCurrentCharges | void SetCurrentCharges( int charges)
|
Set the number of charges on this item |
GetPurchaser | Unit GetPurchaser()
|
Get the purchaser for this item. |
Think | void Think()
|
Think this item |
IsPermanent | bool IsPermanent()
|
Is this a permanent item? |
StacksWithOtherOwners | bool StacksWithOtherOwners()
|
|
SetStacksWithOtherOwners | void SetStacksWithOtherOwners( bool stacks)
|
|
GetShareability | int GetShareability()
|
returns Item Sharing Type |
GetCost | int GetCost()
|
|
LaunchLoot | void LaunchLoot( bool, float, float, vector )
|
|
GetContainer | hscript GetContainer()
|
Get the container for this item. |
CDOTA_Item_DataDriven
- extends CDOTA_Item
A data driven usable item.
Function | Signature | Description |
---|---|---|
ApplyDataDrivenModifier | void ApplyDataDrivenModifier( hscript, hscript, string, hscript )
|
Applies a data driven modifier to the target |
CDOTA_Item_Physical
- extends CBaseAnimating
A physical item dropped in the world
Function | Signature | Description |
---|---|---|
GetCreationTime | float GetCreationTime()
|
Returns the game time when this item was created in the world |
GetContainedItem | Item GetContainedItem()
|
Returned the contained item. |
SetContainedItem | void SetContainedItem( Item item)
|
Set the contained item. |
CDOTAPlayer
- extends CBaseAnimating
the Player
Function | Signature | Description |
---|---|---|
GetPlayerID | int GetPlayerID()
|
Get the player's official PlayerID; notably is -1 when the player isn't yet on a team. |
GetAssignedHero | hscript GetAssignedHero()
|
Get the player's hero. |
SetKillCamUnit | void SetKillCamUnit( hscript )
|
Set the kill cam unit for this hero. |
MakeRandomHeroSelection | void MakeRandomHeroSelection()
|
Randoms this player's hero. |
SetMusicStatus | void SetMusicStatus( int, float )
|
(nMusicStatus, flIntensity) - Set the music status for this player, note this will only really apply if dota_music_battle_enable is off. |
CTriggerCamera
- extends CBaseEntity
Server-side camera entity
Function | Signature | Description |
---|---|---|
GetFov | int GetFov()
|
get camera's current fov setting as integer |
SetFov | void SetFov( int degrees, float rate)
|
set camera's current fov in integer degrees and fov change rate as float |
ScreenFade | void ScreenFade( int, int, int, int, float, float, int )
|
set screen fade effect |
Enable | void Enable()
|
enable camera |
CSceneEntity
- extends CBaseEntity
Choreographed scene which controls animation and/or dialog on one or more actors.
Function | Signature | Description |
---|---|---|
EstimateLength | float EstimateLength()
|
Returns length of this scene in seconds. |
IsPlayingBack | bool IsPlayingBack()
|
If this scene is currently playing. |
IsPaused | bool IsPaused()
|
If this scene is currently paused. |
Start | void Start( Entity activator)
|
Start scene playback, takes activatorEntity as param |
Cancel | void Cancel()
|
Cancel scene playback |
AddBroadcastTeamTarget | void AddBroadcastTeamTarget( int team)
|
Adds a team (by index) to the broadcast list |
RemoveBroadcastTeamTarget | void RemoveBroadcastTeamTarget( int entityIndex)
|
Removes a team (by index) from the broadcast list |
FindNamedEntity | Entity FindNamedEntity( string entityReference)
|
given an entity reference, such as !target, get actual entity from scene object |
LoadSceneFromString | bool LoadSceneFromString( string sceneName, string vcdFile)
|
given a dummy scene name and a vcd string, load the scene |
LoadSceneFromString | Camera FindCamera()
|
Get the camera |
CEnvProjectedTexture
- extends CBaseEntity
Dynamic, shadow casting light source
Function | Signature | Description |
---|---|---|
SetLinearAttenuation | void SetLinearAttenuation( float attenuation)
|
Set light linear attenuation value |
SetQuadraticAttenuation | void SetQuadraticAttenuation( float attenuation)
|
Set light quadratic attenuation value |
SetNearRange | void SetNearRange( float nearRange)
|
Set light minimum range |
SetFarRange | void SetFarRange( float farRange)
|
Set light maximum range |
SetVolumetrics | void SetVolumetrics( bool on, float intensity, float noise, int planes, float planeOffset)
|
Turn on/off light volumetrics |
CEnvEntityMaker
- extends CBaseEntity
env_entity_maker
Function | Signature | Description |
---|---|---|
SpawnEntity | void SpawnEntity()
|
Create an entity at the location of the maker |
SpawnEntityAtEntityOrigin | void SpawnEntityAtEntityOrigin( Entity entity)
|
Create an entity at the location of a specified entity instance |
SpawnEntityAtNamedEntityOrigin | void SpawnEntityAtNamedEntityOrigin( string entityName)
|
Create an entity at the location of a named entity |
SpawnEntityAtLocation | void SpawnEntityAtLocation( vector location, vector orientation)
|
Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll) |
CDOTAVoteSystem
DOTA Vote System
Function | Signature | Description |
---|---|---|
StartVote | void StartVote( hscript )
|
Starts a vote, based upon a table of parameters |
Other Functions
Function | Signature | Description |
---|---|---|
RandomInt | int RandomInt( int min, int max)
|
Get a random int within a range |
RandomFloat | float RandomFloat( float min, float max)
|
Get a random float within a range |
RandomVector | vector RandomVector( float distance)
|
Get a random vector within a range |
RollPercentage | bool RollPercentage( int percent)
|
Rolls a number from 1 to 100 and returns true if the roll is less than or equal to the number specified |
DoIncludeScript | bool DoIncludeScript( string scriptName, hscript )
|
Execute a script (internal) |
ShowMessage | void ShowMessage( string message)
|
Print a hud message on all clients. Does not appear to work |
GetMapName | string GetMapName()
|
Get the name of the map. |
SendToConsole | void SendToConsole( string conCommand)
|
Send a string to the console as a client command |
SendToServerConsole | void SendToServerConsole( string conCommand)
|
Send a string to the console as a server command |
PrintLinkedConsoleMessage | void PrintLinkedConsoleMessage( string message, string conCommand)
|
Print a console message with a linked console command |
InitLogFile | void InitLogFile( string fileName, string log)
|
If the given file doesn't exist, creates it with the given contents; does nothing if it exists |
AppendToLogFile | void AppendToLogFile( string message, string log)
|
Appends a string to a log file on the server |
GetWorldMinX | float GetWorldMinX()
|
Gets the world's minimum X position. |
GetWorldMinY | float GetWorldMinY()
|
Gets the world's maximum Y position. |
GetWorldMaxX | float GetWorldMaxX()
|
Gets the world's minimum X position. |
GetWorldMaxY | float GetWorldMaxY()
|
Gets the world's maximum Y position. |
Time | float Time()
|
Get the current server time |
GetSystemTime | string GetSystemTime()
|
Get the current real world time |
GetSystemDate | string GetSystemDate()
|
Get the current real world date |
UTIL_RemoveImmediate | void UTIL_RemoveImmediate( Entity entity)
|
Immediately removes the specified entity |
DoEntFire | void DoEntFire( string target, string action, string value, float delay, Entity activator, hscript )
|
#EntFire:Generate and entity i/o event |
EntFireByHandle | void EntFireByHandle( Entity entity, string target, string value, float delay, Entity activator, hscript )
|
Generate and entity i/o event |
IsValidEntity | bool IsValidEntity( Entity entity)
|
Checks to see if the given hScript is a valid entity |
IsMarkedForDeletion | bool IsMarkedForDeletion( Entity entity)
|
Returns true if the entity is valid and marked for deletion. |
DoUniqueString | string DoUniqueString( string uniqueString)
|
#UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to tables when not sure what keys are already in use in that table. |
ListenToGameEvent | void ListenToGameEvent( string eventName, function listener, table luaOwner)
|
Register as a listener for a game event from script. |
FireGameEvent | void FireGameEvent( string eventName, table params)
|
Fire a game event. |
FireGameEventLocal | void FireGameEventLocal( string eventName, table params)
|
Fire a game event without broadcasting to the client. |
PauseGame | void PauseGame( bool pause)
|
Pause or unpause the game. |
EntIndexToHScript | Entity entityEntIndexToHScript( int entIndex)
|
Turn an entity index integer to an HScript representing that entity's script instance. |
PlayerInstanceFromIndex | Player PlayerInstanceFromIndex( int playerIndex)
|
Get a script instance of a player by index. |
GetListenServerHost | Player GetListenServerHost()
|
Get the local player on a listen server. |
ScreenShake | void ScreenShake( vector center, float aplitude, float frequency, float duration, float radius, int shakeStatus, bool airShake)
|
Start a screenshake with the following parameters. shakeStatus( SHAKE_START = 0, SHAKE_STOP = 1 ) |
SpawnEntityFromTable | bool SpawnEntityFromTable( string className, table spawnTable, Entity owner, function spawnCallback, hscript )
|
Spawns a single entity from a table. Last param seems to always be nil. maybe player owner? |
SpawnEntityGroupFromTable | bool SpawnEntityGroupFromTable( hscript, bool, hscript )
|
Hierarchically spawn an entity group from a set of spawn tables. |
PrecacheEntityFromTable | bool PrecacheEntityFromTable( table keyValues )
|
Precache an entity from KeyValues in table |
VectorToAngles | qangle VectorToAngles( vector )
|
Get Qangles (with no roll) for a Vector. |
RotatePosition | vector RotatePosition( vector vec, qangle angle, vector origin)
|
Rotate a Vector around a point. |
RotateOrientation | qangle RotateOrientation( qangle an1, qangle ang2)
|
Rotate a QAngle by another QAngle. |
RotationDelta | qangle RotationDelta( qangle ang1, qangle ang2)
|
Find the delta between two angles. |
EmitSoundOn | void EmitSoundOn( string soundName, Entity entity)
|
Play named sound on Entity |
EmitSoundOnClient | void EmitSoundOnClient( string soundName, Player listeningPlayer)
|
Play named sound only on the client for the passed in player |
EmitGlobalSound | void EmitGlobalSound( string soundName )
|
Play named sound for all players |
StopSoundOn | void StopSoundOn( string, hscript )
|
Stop named sound on Entity |
GetPhysVelocity | vector GetPhysVelocity( Entity object)
|
Get Velocity for VPHYS or normal object |
GetPhysAngularVelocity | vector GetPhysAngularVelocity( Entity object)
|
Get Angular Velocity for VPHYS or normal object |
Say | void Say( Player from, string text, bool team)
|
Have Entity say string, and teamOnly or not. First param can be nil for an unowned broadcast |
AddThinkToEnt | void AddThinkToEnt( Entity entity, string functionName)
|
Adds a late bound think function to the C++ think tables for the obj |
LoadKeyValues | variant LoadKeyValues( string file)
|
Creates a table from the specified keyvalues text file |
LoadKeyValuesFromString | variant LoadKeyValuesFromString( string kvString)
|
Creates a table from the specified keyvalues string |
DebugDrawScreenTextLine | void DebugDrawScreenTextLine( float x, float y, int lineOffset, string text, int r, int g, int b, int a, float duration)
|
Draw text with a line offset |
DebugDrawText | void DebugDrawText( vector origin, string text, bool useViewCheck, float duration)
|
Draw text in 3d |
DebugDrawBox | void DebugDrawBox( vector origin, vector min, vector max, int r, int g, int b, int a, float duration)
|
Draw a debug overlay box |
DebugDrawLine | void DebugDrawLine( vector start, vector end, int r, int g, int b, bool zTest, float duration)
|
Draw a debug overlay line |
DebugDrawCircle | void DebugDrawCircle( vector center, vector radius, vector rgb, float a, bool ztest, float duration)
|
Draw a debug circle |
DebugDrawLine_vCol | void DebugDrawLine_vCol( vector start, vector end, vector rgb, bool ztest, float duration)
|
Draw a debug line using color vec |
DebugDrawBoxDirection | void DebugDrawBoxDirection( vector center, vector min, vector max, vector forward, vector rgb, float a, float duration)
|
Draw a debug forward box |
DebugDrawClear | void DebugDrawClear()
|
Try to clear all the debug overlay info |
GetFrameCount | int GetFrameCount()
|
Returns the engines current frame count |
IsDedicatedServer | bool IsDedicatedServer()
|
Returns true if this server is a dedicated server. |
CreateUnitByName | hscript CreateUnitByName( string name, vector origin, bool findOpenSpot, hscript, hscript, int team)
|
Creates a DOTA unit by its dota_npc_units.txt name. |
CreateHeroForPlayer | hscript CreateHeroForPlayer( string heroName, Player owningPlayer)
|
Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero |
CreateItem | hscript CreateItem( string itemName, Unit owningUnit, Unit unitToGetOrigin)
|
Create a DOTA item |
CreateItemOnPosition | PhysicalItem CreateItemOnPosition( vector position )
|
Create a physical item at a given location |
FindClearSpaceForUnit | void FindClearSpaceForUnit( Unit npc, vector origin, bool )
|
Place a unit somewhere not already occupied. |
FindUnitsInRadius | table FindUnitsInRadius( int targetTeam, vector position, Entity ent, float radius, int targetTypeTeam, int targetTypeUnit, int x, int y, bool )
|
Finds the units in a given radius with the given flags. 3rd param Entity appears to always be null, last 3 appear to be 0,0, false always |
PrecacheUnit | void PrecacheUnit( string unitName)
|
Precaches all the resources for a given unit. |
GetFrostyPointsForRound | int GetFrostyPointsForRound( int playerId, int difficulty, int roundNumber)
|
|
GetGoldFrostyPointsForRound | int GetGoldFrostyPointsForRound( int playerId, int difficulty, int roundNumber )
|
|
GetFrostyBoostAmount | float GetFrostyBoostAmount( int playerId, int )
|
|
GetGoldFrostyBoostAmount | float GetGoldFrostyBoostAmount( int, int )
|
|
SendFrostyPointsMessageToGC | void SendFrostyPointsMessageToGC( table data)
|
|
SendFrostivusTimeElapsedToGC | void SendFrostivusTimeElapsedToGC()
|
|
ExecuteOrderFromTable | void ExecuteOrderFromTable( table )
|
Issue an order from a script table. table structure appears to contain { int UnitIndex, int OrderType, vector Position, bool Queue, int AbilityIndex, int TargetIndex } . UnitIndex is the unit to order. OrderType is the linked enum. Position is needed if the OrderType requires a position (move, castPoint, etc). Queue is used if the ability should be executed after the current order. AbilityIndex is used if OrderType is a cast, and TargetIndex is used if OrderType is a targeted cast.
|
Global Accessors
Accessor Name | Description |
---|---|
Entities
|
Instance of CEntities |
ConVars
|
Instance of ConVars |
Players
|
Instance of CDOTA_PlayerResource |
ParticleManager
|
Instance of CScriptParticleManager |
HeroList
|
Instance of HeroList |
GameRules
|
Instance of CDOTAGamerules |
Constants
AbilityUnitDamageType
- DAMAGE_TYPE_COMPOSITE
- DAMAGE_TYPE_HP_REMOVAL
- DAMAGE_TYPE_MAGICAL
- DAMAGE_TYPE_PHYSICAL
- DAMAGE_TYPE_PURE
ItemDeclarations
- DECLARE_PURCHASES_IN_SPEECH
- DECLARE_PURCHASES_TO_SPECTATORS
- DECLARE_PURCHASES_TO_TEAMMATES
AbilityBehavior
- DOTA_ABILITY_BEHAVIOR_AOE
- DOTA_ABILITY_BEHAVIOR_ATTACK
- DOTA_ABILITY_BEHAVIOR_AURA
- DOTA_ABILITY_BEHAVIOR_AUTOCAST
- DOTA_ABILITY_BEHAVIOR_CHANNELLED
- DOTA_ABILITY_BEHAVIOR_DIRECTIONAL
- DOTA_ABILITY_BEHAVIOR_DONT_ALERT_TARGET
- DOTA_ABILITY_BEHAVIOR_DONT_CANCEL_MOVEMENT
- DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK
- DOTA_ABILITY_BEHAVIOR_DONT_RESUME_MOVEMENT
- DOTA_ABILITY_BEHAVIOR_HIDDEN
- DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING
- DOTA_ABILITY_BEHAVIOR_IGNORE_CHANNEL
- DOTA_ABILITY_BEHAVIOR_IGNORE_PSEUDO_QUEUE
- DOTA_ABILITY_BEHAVIOR_IGNORE_TURN
- DOTA_ABILITY_BEHAVIOR_IMMEDIATE
- DOTA_ABILITY_BEHAVIOR_ITEM
- DOTA_ABILITY_BEHAVIOR_NO_TARGET
- DOTA_ABILITY_BEHAVIOR_NOASSIST
- DOTA_ABILITY_BEHAVIOR_NONE
- DOTA_ABILITY_BEHAVIOR_NORMAL_WHEN_STOLEN
- DOTA_ABILITY_BEHAVIOR_NOT_LEARNABLE
- DOTA_ABILITY_BEHAVIOR_PASSIVE
- DOTA_ABILITY_BEHAVIOR_POINT
- DOTA_ABILITY_BEHAVIOR_ROOT_DISABLES
- DOTA_ABILITY_BEHAVIOR_RUNE_TARGET
- DOTA_ABILITY_BEHAVIOR_TOGGLE
- DOTA_ABILITY_BEHAVIOR_UNIT_TARGET
- DOTA_ABILITY_BEHAVIOR_UNRESTRICTED
AbilityBehavior
- DOTA_ABILITY_TYPE_ATTRIBUTES
- DOTA_ABILITY_TYPE_BASIC
- DOTA_ABILITY_TYPE_HIDDEN
- DOTA_ABILITY_TYPE_ULTIMATE
Attributes
- DOTA_ATTRIBUTE_AGILITY
- DOTA_ATTRIBUTE_INTELLECT
- DOTA_ATTRIBUTE_STRENGTH
HeroType
- DOTA_BOT_GANKER
- DOTA_BOT_HARD_CARRY
- DOTA_BOT_NUKER
- DOTA_BOT_PURE_SUPPORT
- DOTA_BOT_PUSH_SUPPORT
- DOTA_BOT_SEMI_CARRY
- DOTA_BOT_STUN_SUPPORT
- DOTA_BOT_TANK
CombatClassAttack
- DOTA_COMBAT_CLASS_ATTACK_BASIC
- DOTA_COMBAT_CLASS_ATTACK_HERO
- DOTA_COMBAT_CLASS_ATTACK_LIGHT
- DOTA_COMBAT_CLASS_ATTACK_PIERCE
- DOTA_COMBAT_CLASS_ATTACK_SIEGE
CombatClassDefend
- DOTA_COMBAT_CLASS_DEFEND_BASIC
- DOTA_COMBAT_CLASS_DEFEND_HERO
- DOTA_COMBAT_CLASS_DEFEND_SOFT
- DOTA_COMBAT_CLASS_DEFEND_STRONG
- DOTA_COMBAT_CLASS_DEFEND_STRUCTURE
- DOTA_COMBAT_CLASS_DEFEND_WEAK
GameRules States
- DOTA_GAMERULES_STATE_DISCONNECT
- DOTA_GAMERULES_STATE_GAME_IN_PROGRESS
- DOTA_GAMERULES_STATE_HERO_SELECTION
- DOTA_GAMERULES_STATE_INIT
- DOTA_GAMERULES_STATE_LAST
- DOTA_GAMERULES_STATE_POST_GAME
- DOTA_GAMERULES_STATE_PRE_GAME
- DOTA_GAMERULES_STATE_STRATEGY_TIME
- DOTA_GAMERULES_STATE_WAIT_FOR_PLAYERS_TO_LOAD
GC Teams
- DOTA_GC_TEAM_BAD_GUYS
- DOTA_GC_TEAM_BROADCASTER 中文定义:DOTA广播员
- DOTA_GC_TEAM_GOOD_GUYS
- DOTA_GC_TEAM_NOTEAM
- DOTA_GC_TEAM_PLAYER_POOL
- DOTA_GC_TEAM_SPECTATOR 中文定义:DOTA观众
HeroPick States
- DOTA_HEROPICK_STATE_AD_SELECT
- DOTA_HEROPICK_STATE_AP_SELECT
- DOTA_HEROPICK_STATE_AR_SELECT
- DOTA_HEROPICK_STATE_CD_BAN1
- DOTA_HEROPICK_STATE_CD_BAN2
- DOTA_HEROPICK_STATE_CD_BAN3
- DOTA_HEROPICK_STATE_CD_BAN4
- DOTA_HEROPICK_STATE_CD_CAPTAINPICK
- DOTA_HEROPICK_STATE_CD_INTRO
- DOTA_HEROPICK_STATE_CD_PICK
- DOTA_HEROPICK_STATE_CD_SELECT1
- DOTA_HEROPICK_STATE_CD_SELECT10
- DOTA_HEROPICK_STATE_CD_SELECT2
- DOTA_HEROPICK_STATE_CD_SELECT3
- DOTA_HEROPICK_STATE_CD_SELECT4
- DOTA_HEROPICK_STATE_CD_SELECT5
- DOTA_HEROPICK_STATE_CD_SELECT6
- DOTA_HEROPICK_STATE_CD_SELECT7
- DOTA_HEROPICK_STATE_CD_SELECT8
- DOTA_HEROPICK_STATE_CD_SELECT9
- DOTA_HEROPICK_STATE_CM_BAN1
- DOTA_HEROPICK_STATE_CM_BAN10
- DOTA_HEROPICK_STATE_CM_BAN2
- DOTA_HEROPICK_STATE_CM_BAN3
- DOTA_HEROPICK_STATE_CM_BAN4
- DOTA_HEROPICK_STATE_CM_BAN5
- DOTA_HEROPICK_STATE_CM_BAN6
- DOTA_HEROPICK_STATE_CM_BAN7
- DOTA_HEROPICK_STATE_CM_BAN8
- DOTA_HEROPICK_STATE_CM_BAN9
- DOTA_HEROPICK_STATE_CM_CAPTAINPICK
- DOTA_HEROPICK_STATE_CM_INTRO
- DOTA_HEROPICK_STATE_CM_PICK
- DOTA_HEROPICK_STATE_CM_SELECT1
- DOTA_HEROPICK_STATE_CM_SELECT10
- DOTA_HEROPICK_STATE_CM_SELECT2
- DOTA_HEROPICK_STATE_CM_SELECT3
- DOTA_HEROPICK_STATE_CM_SELECT4
- DOTA_HEROPICK_STATE_CM_SELECT5
- DOTA_HEROPICK_STATE_CM_SELECT6
- DOTA_HEROPICK_STATE_CM_SELECT7
- DOTA_HEROPICK_STATE_CM_SELECT8
- DOTA_HEROPICK_STATE_CM_SELECT9
- DOTA_HEROPICK_STATE_COUNT
- DOTA_HEROPICK_STATE_FH_SELECT
- DOTA_HEROPICK_STATE_INTRO_SELECT
- DOTA_HEROPICK_STATE_MO_SELECT
- DOTA_HEROPICK_STATE_NONE
- DOTA_HEROPICK_STATE_RD_SELECT
- DOTA_HEROPICK_STATE_SD_SELECT
BoundsHullName
- DOTA_HULL_SIZE_BARRACKS
- DOTA_HULL_SIZE_BUILDING
- DOTA_HULL_SIZE_FILLER
- DOTA_HULL_SIZE_HERO
- DOTA_HULL_SIZE_HUGE
- DOTA_HULL_SIZE_REGULAR
- DOTA_HULL_SIZE_SIEGE
- DOTA_HULL_SIZE_SMALL
- DOTA_HULL_SIZE_TOWER
Inventory Options
- DOTA_INVENTORY_ALL_ACCESS
- DOTA_INVENTORY_ALLOW_DROP_AT_FOUNTAIN
- DOTA_INVENTORY_ALLOW_DROP_ON_GROUND
- DOTA_INVENTORY_ALLOW_MAIN
- DOTA_INVENTORY_ALLOW_NONE
- DOTA_INVENTORY_ALLOW_STASH
ItemDisassembleRule
- DOTA_ITEM_DISASSEMBLE_ALWAYS
- DOTA_ITEM_DISASSEMBLE_NEVER
Item Stuff
- DOTA_ITEM_INVENTORY_SIZE
- DOTA_ITEM_MAX
- DOTA_ITEM_STASH_MAX
- DOTA_ITEM_STASH_MIN
- DOTA_ITEM_STASH_SIZE
- DOTA_ITEM_TRANSIENT_CAST_ITEM
- DOTA_ITEM_TRANSIENT_ITEM
- DOTA_ITEM_TRANSIENT_RECIPE
Gold Modifiers
- DOTA_ModifyGold_AbandonedRedistribute
- DOTA_ModifyGold_AbilityCost
- DOTA_ModifyGold_Buyback
- DOTA_ModifyGold_Death
- DOTA_ModifyGold_PurchaseConsumable
- DOTA_ModifyGold_PurchaseItem
- DOTA_ModifyGold_SellItem
- DOTA_ModifyGold_Unspecified
Music Status
- DOTA_MUSIC_STATUS_BATTLE
- DOTA_MUSIC_STATUS_DEAD
- DOTA_MUSIC_STATUS_EXPLORATION
- DOTA_MUSIC_STATUS_NONE
- DOTA_MUSIC_STATUS_PRE_GAME_EXPLORATION
Think Contexts
- DOTA_NPC_MODIFIER_MANAGER_THINK_CONTEXT
- DOTA_NPC_STATS_REGEN_THINK_CONTEXT
- DOTA_NPC_THINK_CONTEXT
UnitRelationshipClass
- DOTA_NPC_UNIT_RELATIONSHIP_TYPE_BARRACKS
- DOTA_NPC_UNIT_RELATIONSHIP_TYPE_BUILDING
- DOTA_NPC_UNIT_RELATIONSHIP_TYPE_COURIER
- DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT
- DOTA_NPC_UNIT_RELATIONSHIP_TYPE_HERO
- DOTA_NPC_UNIT_RELATIONSHIP_TYPE_SIEGE
- DOTA_NPC_UNIT_RELATIONSHIP_TYPE_WARD
Orb Labels
- DOTA_ORB_LABEL_DEFAULT
- DOTA_ORB_LABEL_EXCEPTION
- DOTA_ORB_LABEL_NONE
- DOTA_ORB_LABEL_SKADI
Orb Priorities
- DOTA_ORB_PRIORITY_ABILITY
- DOTA_ORB_PRIORITY_DEFAULT
- DOTA_ORB_PRIORITY_ITEM
- DOTA_ORB_PRIORITY_ITEM_PROC
- DOTA_ORB_PRIORITY_NONE
Precache Filename
- DOTA_PRECACHE_FILENAME
Projectile Attatchments
- DOTA_PROJECTILE_ATTACHMENT_ATTACK_1
- DOTA_PROJECTILE_ATTACHMENT_ATTACK_2
- DOTA_PROJECTILE_ATTACHMENT_ATTACK_3
- DOTA_PROJECTILE_ATTACHMENT_ATTACK_4
- DOTA_PROJECTILE_ATTACHMENT_HITLOCATION
- DOTA_PROJECTILE_ATTACHMENT_NONE
Pseudo-Random Types
- DOTA_PSEUDO_RANDOM_BREWMASTER_CRIT
- DOTA_PSEUDO_RANDOM_CHAOS_CRIT
- DOTA_PSEUDO_RANDOM_FACELESS_BASH
- DOTA_PSEUDO_RANDOM_ITEM_ABYSSAL
- DOTA_PSEUDO_RANDOM_ITEM_BASHER
- DOTA_PSEUDO_RANDOM_ITEM_BUTTERFLY
- DOTA_PSEUDO_RANDOM_ITEM_GREATERCRIT
- DOTA_PSEUDO_RANDOM_ITEM_HALBRED_MAIM
- DOTA_PSEUDO_RANDOM_ITEM_LESSERCRIT
- DOTA_PSEUDO_RANDOM_ITEM_MAELSTROM
- DOTA_PSEUDO_RANDOM_ITEM_MJOLLNIR
- DOTA_PSEUDO_RANDOM_ITEM_MJOLLNIR_STATIC
- DOTA_PSEUDO_RANDOM_ITEM_MKB
- DOTA_PSEUDO_RANDOM_ITEM_PMS
- DOTA_PSEUDO_RANDOM_ITEM_SANGE_MAIM
- DOTA_PSEUDO_RANDOM_ITEM_SANGEYASHA_MAIM
- DOTA_PSEUDO_RANDOM_ITEM_STOUT
- DOTA_PSEUDO_RANDOM_ITEM_VANGUARD
- DOTA_PSEUDO_RANDOM_JUGG_CRIT
- DOTA_PSEUDO_RANDOM_LYCAN_CRIT
- DOTA_PSEUDO_RANDOM_PHANTOMASSASSIN_CRIT
- DOTA_PSEUDO_RANDOM_SKELETONKING_CRIT
- DOTA_PSEUDO_RANDOM_SLARDAR_BASH
- DOTA_PSEUDO_RANDOM_SNIPER_HEADSHOT
- DOTA_PSEUDO_RANDOM_TROLL_BASH
Rune Types
- DOTA_RUNE_DOUBLEDAMAGE
- DOTA_RUNE_HASTE
- DOTA_RUNE_HAUNTED
- DOTA_RUNE_ILLUSION
- DOTA_RUNE_INVISIBILITY
- DOTA_RUNE_MYSTERY
- DOTA_RUNE_RAPIER
- DOTA_RUNE_REGENERATION
- DOTA_RUNE_SPOOKY
- DOTA_RUNE_TURBO
Teams
- DOTA_TEAM_BADGUYS
- DOTA_TEAM_GOODGUYS
- DOTA_TEAM_NEUTRALS
- DOTA_TEAM_NOTEAM
- DOTA_MAX_PLAYERS
- DOTA_MAX_TEAM
- DOTA_MAX_PLAYER_TEAMS
- DOTA_MAX_TEAM_PLAYERS
MovementCapabilities
- DOTA_UNIT_CAP_MELEE_ATTACK
- DOTA_UNIT_CAP_MOVE_FLY
- DOTA_UNIT_CAP_MOVE_GROUND
- DOTA_UNIT_CAP_MOVE_NONE
- DOTA_UNIT_CAP_NO_ATTACK
- DOTA_UNIT_CAP_RANGED_ATTACK
Unit Order Types
- DOTA_UNIT_ORDER_ATTACK_MOVE
- DOTA_UNIT_ORDER_ATTACK_TARGET
- DOTA_UNIT_ORDER_BUYBACK
- DOTA_UNIT_ORDER_CAST_NO_TARGET
- DOTA_UNIT_ORDER_CAST_POSITION
- DOTA_UNIT_ORDER_CAST_RUNE
- DOTA_UNIT_ORDER_CAST_TARGET
- DOTA_UNIT_ORDER_CAST_TARGET_TREE
- DOTA_UNIT_ORDER_CAST_TOGGLE
- DOTA_UNIT_ORDER_CAST_TOGGLE_AUTO
- DOTA_UNIT_ORDER_DISASSEMBLE_ITEM
- DOTA_UNIT_ORDER_DROP_ITEM
- DOTA_UNIT_ORDER_EJECT_ITEM_FROM_STASH
- DOTA_UNIT_ORDER_GIVE_ITEM
- DOTA_UNIT_ORDER_GLYPH
- DOTA_UNIT_ORDER_HOLD_POSITION
- DOTA_UNIT_ORDER_MOVE_ITEM
- DOTA_UNIT_ORDER_MOVE_TO_POSITION
- DOTA_UNIT_ORDER_MOVE_TO_TARGET
- DOTA_UNIT_ORDER_NONE
- DOTA_UNIT_ORDER_PICKUP_ITEM
- DOTA_UNIT_ORDER_PICKUP_RUNE
- DOTA_UNIT_ORDER_PURCHASE_ITEM
- DOTA_UNIT_ORDER_SELL_ITEM
- DOTA_UNIT_ORDER_STOP
- DOTA_UNIT_ORDER_TAUNT
- DOTA_UNIT_ORDER_TRAIN_ABILITY
AbilityUnitTargetType
- DOTA_UNIT_TARGET_ALL
- DOTA_UNIT_TARGET_BASIC
- DOTA_UNIT_TARGET_BUILDING
- DOTA_UNIT_TARGET_COURIER
- DOTA_UNIT_TARGET_CREEP
- DOTA_UNIT_TARGET_CUSTOM
- DOTA_UNIT_TARGET_HERO
- DOTA_UNIT_TARGET_MECHANICAL
- DOTA_UNIT_TARGET_NONE
- DOTA_UNIT_TARGET_OTHER
- DOTA_UNIT_TARGET_TREE
Unit Target Flags
- DOTA_UNIT_TARGET_FLAG_CHECK_DISABLE_HELP
- DOTA_UNIT_TARGET_FLAG_DEAD
- DOTA_UNIT_TARGET_FLAG_FOW_VISIBLE
- DOTA_UNIT_TARGET_FLAG_INVULNERABLE
- DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES
- DOTA_UNIT_TARGET_FLAG_MANA_ONLY
- DOTA_UNIT_TARGET_FLAG_MELEE_ONLY
- DOTA_UNIT_TARGET_FLAG_NO_INVIS
- DOTA_UNIT_TARGET_FLAG_NONE
- DOTA_UNIT_TARGET_FLAG_NOT_ANCIENTS
- DOTA_UNIT_TARGET_FLAG_NOT_ATTACK_IMMUNE
- DOTA_UNIT_TARGET_FLAG_NOT_CREEP_HERO
- DOTA_UNIT_TARGET_FLAG_NOT_DOMINATED
- DOTA_UNIT_TARGET_FLAG_NOT_ILLUSIONS
- DOTA_UNIT_TARGET_FLAG_NOT_MAGIC_IMMUNE_ALLIES
- DOTA_UNIT_TARGET_FLAG_NOT_NIGHTMARED
- DOTA_UNIT_TARGET_FLAG_NOT_SUMMONED
- DOTA_UNIT_TARGET_FLAG_OUT_OF_WORLD
- DOTA_UNIT_TARGET_FLAG_PLAYER_CONTROLLED
- DOTA_UNIT_TARGET_FLAG_RANGED_ONLY
AbilityUnitTargetTeam
- DOTA_UNIT_TARGET_TEAM_BOTH
- DOTA_UNIT_TARGET_TEAM_CUSTOM
- DOTA_UNIT_TARGET_TEAM_ENEMY
- DOTA_UNIT_TARGET_TEAM_FRIENDLY
- DOTA_UNIT_TARGET_TEAM_NONE
ConVar Flags
- FCVAR_ARCHIVE
- FCVAR_CHEAT
- FCVAR_DEMO
- FCVAR_DEVELOPMENTONLY
- FCVAR_DONTRECORD
- FCVAR_HIDDEN
- FCVAR_NEVER_AS_STRING
- FCVAR_NOT_CONNECTED
- FCVAR_NOTIFY
- FCVAR_PRINTABLEONLY
- FCVAR_PROTECTED
- FCVAR_REPLICATED
- FCVAR_SPONLY
- FCVAR_SS
- FCVAR_UNLOGGED
- FCVAR_UNREGISTERED
- FCVAR_USERINFO
- FCVAR_VCONSOLE_SET_FOCUS
Find Types
- FIND_ANY_ORDER
- FIND_CLOSEST
- FIND_FARTHEST
- FIND_UNITS_EVERYWHERE
- ITEM_FULLY_SHAREABLE
- ITEM_FULLY_SHAREABLE_STACKING
- ITEM_NOT_SHAREABLE
- ITEM_PARTIALLY_SHAREABLE
Item Types
- ITEM_CONSUMABLE
- ITEM_CORE
- ITEM_DERIVED
- ITEM_EXTENSION
- ITEM_LUXURY
- ITEM_SELLABLE
Item Flags
- ITEM_FLAG_DOHITLOCATIONDMG
- ITEM_FLAG_EXHAUSTIBLE
- ITEM_FLAG_LIMITINWORLD
- ITEM_FLAG_NOAMMOPICKUPS
- ITEM_FLAG_NOAUTORELOAD
- ITEM_FLAG_NOAUTOSWITCHEMPTY
- ITEM_FLAG_NOITEMPICKUP
- ITEM_FLAG_SELECTONEMPTY
Modifier Attributes
- MODIFIER_ATTRIBUTE_IGNORE_INVULNERABLE
- MODIFIER_ATTRIBUTE_MULTIPLE
- MODIFIER_ATTRIBUTE_NONE
- MODIFIER_ATTRIBUTE_PERMANENT
Modifier Events
- MODIFIER_EVENT_ON_ABILITY_END_CHANNEL
- MODIFIER_EVENT_ON_ABILITY_EXECUTED
- MODIFIER_EVENT_ON_ABILITY_START
- MODIFIER_EVENT_ON_ATTACK
- MODIFIER_EVENT_ON_ATTACK_ALLIED
- MODIFIER_EVENT_ON_ATTACK_FAIL
- MODIFIER_EVENT_ON_ATTACK_LANDED
- MODIFIER_EVENT_ON_ATTACK_START
- MODIFIER_EVENT_ON_ATTACKED
- MODIFIER_EVENT_ON_BREAK_INVISIBILITY
- MODIFIER_EVENT_ON_DEATH
- MODIFIER_EVENT_ON_HEALTH_GAINED
- MODIFIER_EVENT_ON_MANA_GAINED
- MODIFIER_EVENT_ON_ORB_EFFECT
- MODIFIER_EVENT_ON_ORDER
- MODIFIER_EVENT_ON_PROCESS_UPGRADE
- MODIFIER_EVENT_ON_PROJECTILE_DODGE
- MODIFIER_EVENT_ON_REFRESH
- MODIFIER_EVENT_ON_RESPAWN
- MODIFIER_EVENT_ON_SPENT_MANA
- MODIFIER_EVENT_ON_STATE_CHANGED
- MODIFIER_EVENT_ON_TAKEDAMAGE
- MODIFIER_EVENT_ON_TAKEDAMAGE_REAPERSCYTHE
- MODIFIER_EVENT_ON_TELEPORTED
- MODIFIER_EVENT_ON_TELEPORTING
- MODIFIER_EVENT_ON_UNIT_MOVED
Modifier Properties
- MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_MAGICAL
- MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PHYSICAL
- MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PURE
- MODIFIER_PROPERTY_ABSORB_SPELL
- MODIFIER_PROPERTY_ATTACK_RANGE_BONUS
- MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT
- MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT_POWER_TREADS
- MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT_SECONDARY
- MODIFIER_PROPERTY_AVOID_CONSTANT
- MODIFIER_PROPERTY_AVOID_SPELL
- MODIFIER_PROPERTY_BASE_ATTACK_TIME_CONSTANT
- MODIFIER_PROPERTY_BASE_MANA_REGEN
- MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE
- MODIFIER_PROPERTY_BASEDAMAGEOUTGOING_PERCENTAGE
- MODIFIER_PROPERTY_BONUS_DAY_VISION
- MODIFIER_PROPERTY_BONUS_NIGHT_VISION
- MODIFIER_PROPERTY_BONUS_VISION_PERCENTAGE
- MODIFIER_PROPERTY_COOLDOWN_REDUCTION_CONSTANT
- MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE
- MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE_ILLUSION
- MODIFIER_PROPERTY_DEATHGOLDCOST
- MODIFIER_PROPERTY_DISABLE_AUTOATTACK
- MODIFIER_PROPERTY_DISABLE_HEALING
- MODIFIER_PROPERTY_EVASION_CONSTANT
- MODIFIER_PROPERTY_EXTRA_HEALTH_BONUS
- MODIFIER_PROPERTY_EXTRA_MANA_BONUS
- MODIFIER_PROPERTY_EXTRA_STRENGTH_BONUS
- MODIFIER_PROPERTY_FORCE_DRAW_MINIMAP
- MODIFIER_PROPERTY_HEALTH_BONUS
- MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT
- MODIFIER_PROPERTY_HEALTH_REGEN_PERCENTAGE
- MODIFIER_PROPERTY_INCOMING_DAMAGE_PERCENTAGE
- MODIFIER_PROPERTY_INCOMING_PHYSICAL_DAMAGE_PERCENTAGE
- MODIFIER_PROPERTY_INCOMING_SPELL_DAMAGE_CONSTANT
- MODIFIER_PROPERTY_INVISIBILITY_LEVEL
- MODIFIER_PROPERTY_IS_ILLUSION
- MODIFIER_PROPERTY_IS_SCEPTER
- MODIFIER_PROPERTY_LIFETIME_FRACTION
- MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS
- MODIFIER_PROPERTY_MAGICAL_RESISTANCE_DECREPIFY_UNIQUE
- MODIFIER_PROPERTY_MAGICAL_RESISTANCE_ITEM_UNIQUE
- MODIFIER_PROPERTY_MANA_BONUS
- MODIFIER_PROPERTY_MANA_REGEN_CONSTANT
- MODIFIER_PROPERTY_MANA_REGEN_CONSTANT_UNIQUE
- MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE
- MODIFIER_PROPERTY_MANA_REGEN_TOTAL_PERCENTAGE
- MODIFIER_PROPERTY_MIN_HEALTH
- MODIFIER_PROPERTY_MISS_PERCENTAGE
- MODIFIER_PROPERTY_MODEL_CHANGE
- MODIFIER_PROPERTY_MODEL_SCALE
- MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE
- MODIFIER_PROPERTY_MOVESPEED_BASE_OVERRIDE
- MODIFIER_PROPERTY_MOVESPEED_BONUS_CONSTANT
- MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE
- MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE_UNIQUE
- MODIFIER_PROPERTY_MOVESPEED_BONUS_UNIQUE
- MODIFIER_PROPERTY_MOVESPEED_LIMIT
- MODIFIER_PROPERTY_MOVESPEED_MAX
- MODIFIER_PROPERTY_OVERRIDE_ANIMATION
- MODIFIER_PROPERTY_OVERRIDE_ANIMATION_RATE
- MODIFIER_PROPERTY_OVERRIDE_ANIMATION_WEIGHT
- MODIFIER_PROPERTY_PERSISTENT_INVISIBILITY
- MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS
- MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_ILLUSIONS
- MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_UNIQUE
- MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_UNIQUE_ACTIVE
- MODIFIER_PROPERTY_PHYSICAL_CONSTANT_BLOCK
- MODIFIER_PROPERTY_POST_ATTACK
- MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE
- MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE_POST_CRIT
- MODIFIER_PROPERTY_PREATTACK_CRITICALSTRIKE
- MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_COMPOSITE
- MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_MAGICAL
- MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PHYSICAL
- MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PURE
- MODIFIER_PROPERTY_PROCATTACK_FEEDBACK
- MODIFIER_PROPERTY_PROVIDES_FOW_POSITION
- MODIFIER_PROPERTY_REINCARNATION
- MODIFIER_PROPERTY_RESPAWNTIME
- MODIFIER_PROPERTY_STATS_AGILITY_BONUS
- MODIFIER_PROPERTY_STATS_INTELLECT_BONUS
- MODIFIER_PROPERTY_STATS_STRENGTH_BONUS
- MODIFIER_PROPERTY_TOOLTIP
- MODIFIER_PROPERTY_TOTAL_CONSTANT_BLOCK
- MODIFIER_PROPERTY_TOTAL_CONSTANT_BLOCK_UNAVOIDABLE_PRE_ARMOR
- MODIFIER_PROPERTY_TRANSLATE_ACTIVITY_MODIFIERS
- MODIFIER_PROPERTY_TRANSLATE_ATTACK_SOUND
- MODIFIER_PROPERTY_TURN_RATE_PERCENTAGE
Modifier States
- MODIFIER_STATE_ATTACK_IMMUNE
- MODIFIER_STATE_BLIND
- MODIFIER_STATE_BLOCK_DISABLED
- MODIFIER_STATE_CANNOT_MISS
- MODIFIER_STATE_COMMAND_RESTRICTED
- MODIFIER_STATE_DISARMED
- MODIFIER_STATE_DOMINATED
- MODIFIER_STATE_EVADE_DISABLED
- MODIFIER_STATE_FLYING
- MODIFIER_STATE_FROZEN
- MODIFIER_STATE_HEXED
- MODIFIER_STATE_INVISIBLE
- MODIFIER_STATE_INVULNERABLE
- MODIFIER_STATE_LOW_ATTACK_PRIORITY
- MODIFIER_STATE_MAGIC_IMMUNE
- MODIFIER_STATE_MUTED
- MODIFIER_STATE_NIGHTMARED
- MODIFIER_STATE_NO_HEALTH_BAR
- MODIFIER_STATE_NO_TEAM_MOVE_TO
- MODIFIER_STATE_NO_TEAM_SELECT
- MODIFIER_STATE_NO_UNIT_COLLISION
- MODIFIER_STATE_NOT_ON_MINIMAP
- MODIFIER_STATE_NOT_ON_MINIMAP_FOR_ENEMIES
- MODIFIER_STATE_OUT_OF_GAME
- MODIFIER_STATE_PASSIVES_DISABLED
- MODIFIER_STATE_PROVIDES_VISION
- MODIFIER_STATE_ROOTED
- MODIFIER_STATE_SILENCED
- MODIFIER_STATE_SOFT_DISARMED
- MODIFIER_STATE_SPECIALLY_DENIABLE
- MODIFIER_STATE_STUNNED
- MODIFIER_STATE_UNSELECTABLE
- MODIFIER_STATE_VALUE_DISABLED
- MODIFIER_STATE_VALUE_ENABLED
- MODIFIER_STATE_VALUE_NO_ACTION
Particle Attach Types
- MAX_PATTACH_TYPES
- PATTACH_ABSORIGIN
- PATTACH_ABSORIGIN_FOLLOW
- PATTACH_CUSTOMORIGIN
- PATTACH_CUSTOMORIGIN_FOLLOW
- PATTACH_EYES_FOLLOW
- PATTACH_OVERHEAD_FOLLOW
- PATTACH_POINT
- PATTACH_POINT_FOLLOW
- PATTACH_POINT_FOLLOW_SUBSTEPPED
- PATTACH_RENDERORIGIN_FOLLOW
- PATTACH_ROOTBONE_FOLLOW
- PATTACH_WORLDORIGIN
Quest Text Replacement
- QUEST_TEXT_REPLACE_VALUE_CURRENT_VALUE
- QUEST_TEXT_REPLACE_VALUE_REWARD
- QUEST_TEXT_REPLACE_VALUE_ROUND
- QUEST_TEXT_REPLACE_VALUE_TARGET_VALUE
Subquest Text Replacement
- SUBQUEST_TEXT_REPLACE_VALUE_CURRENT_VALUE
- SUBQUEST_TEXT_REPLACE_VALUE_TARGET_VALUE