Dota 2 Workshop Tools/Scripting/API: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated the scripting API with a better formatted page and some annotated constants. This is autogenerated through a scripting API bot in #dota2mods on irc.gamesurge.net)
(Added links for individual function pages)
Line 1: Line 1:
==Accessing the DOTA 2 Scripting API from Lua ==
===Accessing the DOTA 2 Scripting API from Lua ===
While Lua is [http://en.wikipedia.org/wiki/Dynamically_typed dynamically typed], the DOTA 2 engine is written primarily in C++, which is [http://en.wikipedia.org/wiki/Type_system#Static_type-checking statically typed]. Thus, you'll need to be conscious of your data types when calling the API. (If you try to pass the wrong type to an API function, you'll get an error message in Vconsole telling you what you passed and what it was expecting.)
While Lua is [http://en.wikipedia.org/wiki/Dynamically_typed dynamically typed], the DOTA 2 engine is written primarily in C++, which is [http://en.wikipedia.org/wiki/Type_system#Static_type-checking statically typed]. Thus, you'll need to be conscious of your data types when calling the API. (If you try to pass the wrong type to an API function, you'll get an error message in Vconsole telling you what you passed and what it was expecting.)


=== Global ===
=== Global ===
Line 10: Line 9:
! Description  
! Description  
|-
|-
| SpawnEntityGroupFromTable
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityGroupFromTable | SpawnEntityGroupFromTable]]
| <code>bool SpawnEntityGroupFromTable(handle , bool , handle ) </code>
| <code>bool SpawnEntityGroupFromTable(handle , bool , handle ) </code>
| ( groupSpawnTables, bAsync, hCallback )Hierarchically spawn an entity group from a set of spawn tables.
| ( groupSpawnTables, bAsync, hCallback )Hierarchically spawn an entity group from a set of spawn tables.
|-
|-
| GetFrostyBoostAmount
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyBoostAmount | GetFrostyBoostAmount]]
| <code>float GetFrostyBoostAmount(int , int ) </code>
| <code>float GetFrostyBoostAmount(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| EntIndexToHScript
| [[Dota 2 Workshop Tools/Scripting/API/Global.EntIndexToHScript | EntIndexToHScript]]
| <code>handle EntIndexToHScript(int ) </code>
| <code>handle EntIndexToHScript(int ) </code>
| Turn an entity index integer to an HScript representing that entity's script instance.
| Turn an entity index integer to an HScript representing that entity's script instance.
|-
|-
| StopEffect
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopEffect | StopEffect]]
| <code>void StopEffect(handle , string ) </code>
| <code>void StopEffect(handle , string ) </code>
| (hEntity, szEffectName)
| (hEntity, szEffectName)
|-
|-
| Say
| [[Dota 2 Workshop Tools/Scripting/API/Global.Say | Say]]
| <code>void Say(handle entity, string message, bool teamOnly) </code>
| <code>void Say(handle entity, string message, bool teamOnly) </code>
| Have Entity say ''string'', and teamOnly or not
| Have Entity say ''string'', and teamOnly or not
|-
|-
| DebugDrawBoxDirection
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBoxDirection | DebugDrawBoxDirection]]
| <code>void DebugDrawBoxDirection(Vector , Vector , Vector , Vector , Vector , float , float ) </code>
| <code>void DebugDrawBoxDirection(Vector , Vector , Vector , Vector , Vector , float , float ) </code>
| Draw a debug forward box (cent, min, max, forward, vRgb, a, duration)
| Draw a debug forward box (cent, min, max, forward, vRgb, a, duration)
|-
|-
| PrecacheItemByNameAsync
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameAsync | PrecacheItemByNameAsync]]
| <code>void PrecacheItemByNameAsync(string , handle ) </code>
| <code>void PrecacheItemByNameAsync(string , handle ) </code>
| Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished.
| Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished.
|-
|-
| GetGoldFrostyBoostAmount
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyBoostAmount | GetGoldFrostyBoostAmount]]
| <code>float GetGoldFrostyBoostAmount(int , int ) </code>
| <code>float GetGoldFrostyBoostAmount(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| RandomInt
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomInt | RandomInt]]
| <code>int RandomInt(int , int ) </code>
| <code>int RandomInt(int , int ) </code>
| Get a random ''int'' within a range
| Get a random ''int'' within a range
|-
|-
| RollPercentage
| [[Dota 2 Workshop Tools/Scripting/API/Global.RollPercentage | RollPercentage]]
| <code>bool RollPercentage(int ) </code>
| <code>bool RollPercentage(int ) </code>
| Rolls a number from 1 to 100 and returns true if the roll is less than or equal to the number specified
| Rolls a number from 1 to 100 and returns true if the roll is less than or equal to the number specified
|-
|-
| SendToConsole
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToConsole | SendToConsole]]
| <code>void SendToConsole(string ) </code>
| <code>void SendToConsole(string ) </code>
| Send a ''string'' to the console as a client command
| Send a ''string'' to the console as a client command
|-
|-
| VectorToAngles
| [[Dota 2 Workshop Tools/Scripting/API/Global.VectorToAngles | VectorToAngles]]
| <code>QAngle VectorToAngles(Vector ) </code>
| <code>QAngle VectorToAngles(Vector ) </code>
| Get Qangles (with no roll) for a ''Vector''.
| Get Qangles (with no roll) for a ''Vector''.
|-
|-
| IsDedicatedServer
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsDedicatedServer | IsDedicatedServer]]
| <code>bool IsDedicatedServer() </code>
| <code>bool IsDedicatedServer() </code>
| Returns true if this server is a dedicated server.
| Returns true if this server is a dedicated server.
|-
|-
| SplineVectors
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineVectors | SplineVectors]]
| <code>Vector SplineVectors(Vector , Vector , float ) </code>
| <code>Vector SplineVectors(Vector , Vector , float ) </code>
| (''vector'',''vector'',''float'') very basic interpolation of v0 to v1 over t on [0,1]
| (''vector'',''vector'',''float'') very basic interpolation of v0 to v1 over t on [0,1]
|-
|-
| Msg
| [[Dota 2 Workshop Tools/Scripting/API/Global.Msg | Msg]]
| <code>void Msg(string ) </code>
| <code>void Msg(string ) </code>
| Print a message
| Print a message
|-
|-
| rr_AddDecisionRule
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_AddDecisionRule | rr_AddDecisionRule]]
| <code>bool rr_AddDecisionRule(handle ) </code>
| <code>bool rr_AddDecisionRule(handle ) </code>
| Add a rule to the decision database.
| Add a rule to the decision database.
|-
|-
| FindClearSpaceForUnit
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindClearSpaceForUnit | FindClearSpaceForUnit]]
| <code>void FindClearSpaceForUnit(handle , Vector , bool ) </code>
| <code>void FindClearSpaceForUnit(handle , Vector , bool ) </code>
| Place a unit somewhere not already occupied.
| Place a unit somewhere not already occupied.
|-
|-
| LoadKeyValues
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValues | LoadKeyValues]]
| <code>table LoadKeyValues(string ) </code>
| <code>table LoadKeyValues(string ) </code>
| Creates a ''table'' from the specified keyvalues text file
| Creates a ''table'' from the specified keyvalues text file
|-
|-
| TraceLine
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceLine | TraceLine]]
| <code>bool TraceLine(handle ) </code>
| <code>bool TraceLine(handle ) </code>
| Pass ''table'' - Inputs: startpos, endpos, mask, ignore  -- outputs: pos, fraction, hit, enthit, startsolid
| Pass ''table'' - Inputs: startpos, endpos, mask, ignore  -- outputs: pos, fraction, hit, enthit, startsolid
|-
|-
| ListenToGameEvent
| [[Dota 2 Workshop Tools/Scripting/API/Global.ListenToGameEvent | ListenToGameEvent]]
| <code>int ListenToGameEvent(string , handle , handle ) </code>
| <code>int ListenToGameEvent(string , handle , handle ) </code>
| Register as a listener for a game event from script. ( szEventName, hFunctionNameToCall, hContext ){{tip|In addition to listening for [[Dota 2 Workshop Tools/Scripting/Built-In Engine Events|standard engine events]], you can also create your own events by placing them in /scripts/custom_events.txt.}}
| Register as a listener for a game event from script. ( szEventName, hFunctionNameToCall, hContext ){{tip|In addition to listening for [[Dota 2 Workshop Tools/Scripting/Built-In Engine Events|standard engine events]], you can also create your own events by placing them in /scripts/custom_events.txt.}}
|-
|-
| GetWorldMinY
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinY | GetWorldMinY]]
| <code>float GetWorldMinY() </code>
| <code>float GetWorldMinY() </code>
| Gets the world's minimum Y position.
| Gets the world's minimum Y position.
|-
|-
| CreateItemOnPositionSync
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionSync | CreateItemOnPositionSync]]
| <code>handle CreateItemOnPositionSync(Vector , handle ) </code>
| <code>handle CreateItemOnPositionSync(Vector , handle ) </code>
| Create a physical item at a given location
| Create a physical item at a given location
|-
|-
| ExponentialDecay
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExponentialDecay | ExponentialDecay]]
| <code>float ExponentialDecay(float , float , float ) </code>
| <code>float ExponentialDecay(float , float , float ) </code>
| Smooth curve decreasing slower as it approaches zero
| Smooth curve decreasing slower as it approaches zero
|-
|-
| GetListenServerHost
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetListenServerHost | GetListenServerHost]]
| <code>handle GetListenServerHost() </code>
| <code>handle GetListenServerHost() </code>
| Get the local player on a listen server.
| Get the local player on a listen server.
|-
|-
| StopListeningToGameEvent
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToGameEvent | StopListeningToGameEvent]]
| <code>bool StopListeningToGameEvent(int ) </code>
| <code>bool StopListeningToGameEvent(int ) </code>
| Stop listening to a particular game event.
| Stop listening to a particular game event.
|-
|-
| FireEntityIOInputVec
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputVec | FireEntityIOInputVec]]
| <code>void FireEntityIOInputVec(ehandle , string , Vector ) </code>
| <code>void FireEntityIOInputVec(ehandle , string , Vector ) </code>
| Fire Entity's Action Input with passed ''Vector'' ( hEntity, szActionName, vector )
| Fire Entity's Action Input with passed ''Vector'' ( hEntity, szActionName, vector )
|-
|-
| DoEntFire
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFire | DoEntFire]]
| <code>void DoEntFire(string , string , string , float , handle , handle ) </code>
| <code>void DoEntFire(string , string , string , float , handle , handle ) </code>
| EntFire: Generate an entity i/o event ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
| EntFire: Generate an entity i/o event ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
|-
|-
| IsMarkedForDeletion
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsMarkedForDeletion | IsMarkedForDeletion]]
| <code>bool IsMarkedForDeletion(handle ) </code>
| <code>bool IsMarkedForDeletion(handle ) </code>
| Returns true if the entity is valid and marked for deletion.
| Returns true if the entity is valid and marked for deletion.
|-
|-
| RotatePosition
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotatePosition | RotatePosition]]
| <code>Vector RotatePosition(Vector , QAngle , Vector ) </code>
| <code>Vector RotatePosition(Vector , QAngle , Vector ) </code>
| Rotate a ''Vector'' around a point.
| Rotate a ''Vector'' around a point.
|-
|-
| GetMapName
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMapName | GetMapName]]
| <code>string GetMapName() </code>
| <code>string GetMapName() </code>
| Get the name of the map.
| Get the name of the map.
|-
|-
| PrintLinkedConsoleMessage
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrintLinkedConsoleMessage | PrintLinkedConsoleMessage]]
| <code>void PrintLinkedConsoleMessage(string , string ) </code>
| <code>void PrintLinkedConsoleMessage(string , string ) </code>
| Print a console message with a linked console command
| Print a console message with a linked console command
|-
|-
| MakeStringToken
| [[Dota 2 Workshop Tools/Scripting/API/Global.MakeStringToken | MakeStringToken]]
| <code>int MakeStringToken(string ) </code>
| <code>int MakeStringToken(string ) </code>
| Checks to see if the given hScript is a valid entity
| Checks to see if the given hScript is a valid entity
|-
|-
| RotateQuaternionByAxisAngle
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateQuaternionByAxisAngle | RotateQuaternionByAxisAngle]]
| <code>Quaternion RotateQuaternionByAxisAngle(Quaternion , Vector , float ) </code>
| <code>Quaternion RotateQuaternionByAxisAngle(Quaternion , Vector , float ) </code>
| Rotates a quaternion by the specified angle around the specified ''vector'' axis
| Rotates a quaternion by the specified angle around the specified ''vector'' axis
|-
|-
| UTIL_Remove
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_Remove | UTIL_Remove]]
| <code>void UTIL_Remove(handle ) </code>
| <code>void UTIL_Remove(handle ) </code>
| Removes the specified entity
| Removes the specified entity
|-
|-
| DebugDrawText
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawText | DebugDrawText]]
| <code>void DebugDrawText(Vector , string , bool , float ) </code>
| <code>void DebugDrawText(Vector , string , bool , float ) </code>
| Draw text in 3d (origin, text, bViewCheck, duration)
| Draw text in 3d (origin, text, bViewCheck, duration)
|-
|-
| ReloadMOTD
| [[Dota 2 Workshop Tools/Scripting/API/Global.ReloadMOTD | ReloadMOTD]]
| <code>void ReloadMOTD() </code>
| <code>void ReloadMOTD() </code>
| Reloads the MotD file
| Reloads the MotD file
|-
|-
| DebugDrawLine_vCol
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine_vCol | DebugDrawLine_vCol]]
| <code>void DebugDrawLine_vCol(Vector , Vector , Vector , bool , float ) </code>
| <code>void DebugDrawLine_vCol(Vector , Vector , Vector , bool , float ) </code>
| Draw a debug line using color vec (start, end, vRgb, a, ztest, duration)
| Draw a debug line using color vec (start, end, vRgb, a, ztest, duration)
|-
|-
| PrecacheEntityFromTable
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityFromTable | PrecacheEntityFromTable]]
| <code>void PrecacheEntityFromTable(string , handle , handle ) </code>
| <code>void PrecacheEntityFromTable(string , handle , handle ) </code>
| Precache an entity from KeyValues in ''table''
| Precache an entity from KeyValues in ''table''
|-
|-
| UTIL_RemoveImmediate
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_RemoveImmediate | UTIL_RemoveImmediate]]
| <code>void UTIL_RemoveImmediate(handle ) </code>
| <code>void UTIL_RemoveImmediate(handle ) </code>
| Immediately removes the specified entity
| Immediately removes the specified entity
|-
|-
| SetQuestPhase
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestPhase | SetQuestPhase]]
| <code>void SetQuestPhase(int ) </code>
| <code>void SetQuestPhase(int ) </code>
| Set the current quest phase.
| Set the current quest phase.
|-
|-
| DebugDrawBox
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBox | DebugDrawBox]]
| <code>void DebugDrawBox(Vector , Vector , Vector , int , int , int , int , float ) </code>
| <code>void DebugDrawBox(Vector , Vector , Vector , int , int , int , int , float ) </code>
| Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration )
| Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration )
|-
|-
| RandomVector
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomVector | RandomVector]]
| <code>Vector RandomVector(float ) </code>
| <code>Vector RandomVector(float ) </code>
| Get a random 2D ''vector''. Argument (''float'') is the minimum length of the returned vector.
| Get a random 2D ''vector''. Argument (''float'') is the minimum length of the returned vector.
|-
|-
| FireEntityIOInputString
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputString | FireEntityIOInputString]]
| <code>void FireEntityIOInputString(ehandle , string , string ) </code>
| <code>void FireEntityIOInputString(ehandle , string , string ) </code>
| Fire Entity's Action Input with passed String - you own the memory
| Fire Entity's Action Input with passed String - you own the memory
|-
|-
| GetGoldFrostyPointsForRound
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyPointsForRound | GetGoldFrostyPointsForRound]]
| <code>int GetGoldFrostyPointsForRound(int , int , int ) </code>
| <code>int GetGoldFrostyPointsForRound(int , int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetWorldMaxX
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxX | GetWorldMaxX]]
| <code>float GetWorldMaxX() </code>
| <code>float GetWorldMaxX() </code>
| Gets the world's maximum X position.
| Gets the world's maximum X position.
|-
|-
| UpdateEventPoints
| [[Dota 2 Workshop Tools/Scripting/API/Global.UpdateEventPoints | UpdateEventPoints]]
| <code>void UpdateEventPoints(handle ) </code>
| <code>void UpdateEventPoints(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| CreateUnitByNameAsync
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByNameAsync | CreateUnitByNameAsync]]
| <code>int CreateUnitByNameAsync(string , Vector , bool , handle , handle , int , handle ) </code>
| <code>int CreateUnitByNameAsync(string , Vector , bool , handle , handle , int , handle ) </code>
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
|-
|-
| CreateTriggerRadiusApproximate
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTriggerRadiusApproximate | CreateTriggerRadiusApproximate]]
| <code>handle CreateTriggerRadiusApproximate(Vector , float ) </code>
| <code>handle CreateTriggerRadiusApproximate(Vector , float ) </code>
| CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided
| CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided
|-
|-
| GetPhysVelocity
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysVelocity | GetPhysVelocity]]
| <code>Vector GetPhysVelocity(handle ) </code>
| <code>Vector GetPhysVelocity(handle ) </code>
| Get Velocity for VPHYS or normal object
| Get Velocity for VPHYS or normal object
|-
|-
| CreateEffect
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateEffect | CreateEffect]]
| <code>bool CreateEffect(handle ) </code>
| <code>bool CreateEffect(handle ) </code>
| Pass ''table'' - Inputs: entity, effect
| Pass ''table'' - Inputs: entity, effect
|-
|-
| PrecacheItemByNameSync
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameSync | PrecacheItemByNameSync]]
| <code>void PrecacheItemByNameSync(string , handle ) </code>
| <code>void PrecacheItemByNameSync(string , handle ) </code>
| Precaches a DOTA item by its dota_npc_items.txt name
| Precaches a DOTA item by its dota_npc_items.txt name
|-
|-
| RotationDelta
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotationDelta | RotationDelta]]
| <code>QAngle RotationDelta(QAngle , QAngle ) </code>
| <code>QAngle RotationDelta(QAngle , QAngle ) </code>
| Find the delta between two ''QAngle''s.
| Find the delta between two ''QAngle''s.
|-
|-
| InitLogFile
| [[Dota 2 Workshop Tools/Scripting/API/Global.InitLogFile | InitLogFile]]
| <code>void InitLogFile(string , string ) </code>
| <code>void InitLogFile(string , string ) </code>
| If the given file doesn't exist, creates it with the given contents; does nothing if it exists
| If the given file doesn't exist, creates it with the given contents; does nothing if it exists
|-
|-
| IsValidEntity
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsValidEntity | IsValidEntity]]
| <code>bool IsValidEntity(handle ) </code>
| <code>bool IsValidEntity(handle ) </code>
| Checks to see if the given hScript is a valid entity
| Checks to see if the given hScript is a valid entity
|-
|-
| PrecacheUnitByNameSync
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameSync | PrecacheUnitByNameSync]]
| <code>void PrecacheUnitByNameSync(string , handle ) </code>
| <code>void PrecacheUnitByNameSync(string , handle ) </code>
| Precaches a DOTA unit by its dota_npc_units.txt name
| Precaches a DOTA unit by its dota_npc_units.txt name
|-
|-
| TraceHull
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceHull | TraceHull]]
| <code>bool TraceHull(handle ) </code>
| <code>bool TraceHull(handle ) </code>
| Pass ''table'' - Inputs: start, end, min, max, mask, ignore  -- outputs: pos, fraction, hit, enthit, startsolid
| Pass ''table'' - Inputs: start, end, min, max, mask, ignore  -- outputs: pos, fraction, hit, enthit, startsolid
|-
|-
| SetOpvarFloatAll
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatAll | SetOpvarFloatAll]]
| <code>void SetOpvarFloatAll(string , string , string , float ) </code>
| <code>void SetOpvarFloatAll(string , string , string , float ) </code>
| Sets an opvar value for all players
| Sets an opvar value for all players
|-
|-
| AxisAngleTo''Quaternion
| [[Dota 2 Workshop Tools/Scripting/API/Global.AxisAngleToQuaternion | AxisAngleToQuaternion]]
| <code>Quaternion AxisAngleTo''Quaternion(Vector , float ) </code>
| <code>Quaternion AxisAngleToQuaternion(Vector , float ) </code>
| (''vector'',''float'') constructs a quaternion representing a rotation by angle around the specified ''vector'' axis
| (''vector'',''float'') constructs a quaternion representing a rotation by angle around the specified ''vector'' axis
|-
|-
| DebugDrawSphere
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawSphere | DebugDrawSphere]]
| <code>void DebugDrawSphere(Vector , Vector , float , float , bool , float ) </code>
| <code>void DebugDrawSphere(Vector , Vector , float , float , bool , float ) </code>
| Draw a debug sphere (center, vRgb, a, rad, ztest, duration)
| Draw a debug sphere (center, vRgb, a, rad, ztest, duration)
|-
|-
| Warning
| [[Dota 2 Workshop Tools/Scripting/API/Global.Warning | Warning]]
| <code>void Warning(string ) </code>
| <code>void Warning(string ) </code>
| Print a warning
| Print a warning
|-
|-
| CreateItem
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItem | CreateItem]]
| <code>handle CreateItem(string , handle , handle ) </code>
| <code>handle CreateItem(string , handle , handle ) </code>
| Create a DOTA item ( szScriptName, hParent, hOwner )
| Create a DOTA item ( szScriptName, hParent, hOwner )
|-
|-
| DebugDrawClear
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawClear | DebugDrawClear]]
| <code>void DebugDrawClear() </code>
| <code>void DebugDrawClear() </code>
| Try to clear all the debug overlay info
| Try to clear all the debug overlay info
|-
|-
| cvar_getf
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_getf | cvar_getf]]
| <code>float cvar_getf(string ) </code>
| <code>float cvar_getf(string ) </code>
| Gets the value of the given cvar, as a ''float''.
| Gets the value of the given cvar, as a ''float''.
|-
|-
| cvar_setf
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_setf | cvar_setf]]
| <code>bool cvar_setf(string , float ) </code>
| <code>bool cvar_setf(string , float ) </code>
| Sets the value of the given cvar, as a ''float''.
| Sets the value of the given cvar, as a ''float''.
|-
|-
| EmitSoundOn
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOn | EmitSoundOn]]
| <code>void EmitSoundOn(string , handle ) </code>
| <code>void EmitSoundOn(string , handle ) </code>
| Play named sound on Entity
| Play named sound on Entity
|-
|-
| SpawnEntityListFromTableAsynchronous
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableAsynchronous | SpawnEntityListFromTableAsynchronous]]
| <code>int SpawnEntityListFromTableAsynchronous(handle , handle ) </code>
| <code>int SpawnEntityListFromTableAsynchronous(handle , handle ) </code>
| Asynchronously spawn an entity group from a list of spawn table's. A callback will be triggered when the spawning is complete
| Asynchronously spawn an entity group from a list of spawn table's. A callback will be triggered when the spawning is complete
|-
|-
| EmitGlobalSound
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound | EmitGlobalSound]]
| <code>void EmitGlobalSound(string ) </code>
| <code>void EmitGlobalSound(string ) </code>
| Play named sound for all players
| Play named sound for all players
|-
|-
| AngleDiff
| [[Dota 2 Workshop Tools/Scripting/API/Global.AngleDiff | AngleDiff]]
| <code>float AngleDiff(float , float ) </code>
| <code>float AngleDiff(float , float ) </code>
| Returns the number of degrees difference between two yaw angles
| Returns the number of degrees difference between two yaw angles
|-
|-
| GetSystemDate
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetSystemDate | GetSystemDate]]
| <code>string GetSystemDate() </code>
| <code>string GetSystemDate() </code>
| Get the current real world date
| Get the current real world date
|-
|-
| DebugBreak
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugBreak | DebugBreak]]
| <code>void DebugBreak() </code>
| <code>void DebugBreak() </code>
| Breaks in the debugger
| Breaks in the debugger
|-
|-
| GetPhysAngularVelocity
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysAngularVelocity | GetPhysAngularVelocity]]
| <code>Vector GetPhysAngularVelocity(handle ) </code>
| <code>Vector GetPhysAngularVelocity(handle ) </code>
| Get Angular Velocity for VPHYS or normal object
| Get Angular Velocity for VPHYS or normal object
|-
|-
| GetGroundPosition
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGroundPosition | GetGroundPosition]]
| <code>Vector GetGroundPosition(Vector , handle ) </code>
| <code>Vector GetGroundPosition(Vector , handle ) </code>
| Returns the supplied position moved to the ground. Second parameter is an NPC for measuring movement collision hull offset.
| Returns the supplied position moved to the ground. Second parameter is an NPC for measuring movement collision hull offset.
|-
|-
| SpawnEntityFromTableSynchronous
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityFromTableSynchronous | SpawnEntityFromTableSynchronous]]
| <code>handle SpawnEntityFromTableSynchronous(string , handle ) </code>
| <code>handle SpawnEntityFromTableSynchronous(string , handle ) </code>
| Synchronously spawns a single entity from a ''table''
| Synchronously spawns a single entity from a ''table''
|-
|-
| DoIncludeScript
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoIncludeScript | DoIncludeScript]]
| <code>bool DoIncludeScript(string , handle ) </code>
| <code>bool DoIncludeScript(string , handle ) </code>
| Execute a script (internal)
| Execute a script (internal)
|-
|-
| SendToServerConsole
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToServerConsole | SendToServerConsole]]
| <code>void SendToServerConsole(string ) </code>
| <code>void SendToServerConsole(string ) </code>
| Send a ''string'' to the console as a server command
| Send a ''string'' to the console as a server command
|-
|-
| FindUnitsInRadius
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInRadius | FindUnitsInRadius]]
| <code>table FindUnitsInRadius(int , Vector , handle , float , int , int , int , int , bool ) </code>
| <code>table FindUnitsInRadius(int , Vector , handle , float , int , int , int , int , bool ) </code>
| Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
| Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
|-
|-
| DebugDrawCircle
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawCircle | DebugDrawCircle]]
| <code>void DebugDrawCircle(Vector , Vector , float , float , bool , float ) </code>
| <code>void DebugDrawCircle(Vector , Vector , float , float , bool , float ) </code>
| Draw a debug circle (center, vRgb, a, rad, ztest, duration)
| Draw a debug circle (center, vRgb, a, rad, ztest, duration)
|-
|-
| SetQuestName
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestName | SetQuestName]]
| <code>void SetQuestName(string ) </code>
| <code>void SetQuestName(string ) </code>
| Set the current quest name.
| Set the current quest name.
|-
|-
| SendFrostyPointsMessageToGC
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostyPointsMessageToGC | SendFrostyPointsMessageToGC]]
| <code>void SendFrostyPointsMessageToGC(handle ) </code>
| <code>void SendFrostyPointsMessageToGC(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| FrameTime
| [[Dota 2 Workshop Tools/Scripting/API/Global.FrameTime | FrameTime]]
| <code>float FrameTime() </code>
| <code>float FrameTime() </code>
| Get the time spent on the server in the last frame
| Get the time spent on the server in the last frame
|-
|-
| CreateUnitByName
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByName | CreateUnitByName]]
| <code>handle CreateUnitByName(string , Vector , bool , handle , handle , int ) </code>
| <code>handle CreateUnitByName(string , Vector , bool , handle , handle , int ) </code>
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
|-
|-
| GetWorldMaxY
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxY | GetWorldMaxY]]
| <code>float GetWorldMaxY() </code>
| <code>float GetWorldMaxY() </code>
| Gets the world's maximum Y position.
| Gets the world's maximum Y position.
|-
|-
| PrecacheEntityListFromTable
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityListFromTable | PrecacheEntityListFromTable]]
| <code>void PrecacheEntityListFromTable(handle , handle ) </code>
| <code>void PrecacheEntityListFromTable(handle , handle ) </code>
| Precache a list of entity KeyValues table's
| Precache a list of entity KeyValues table's
|-
|-
| CreateTrigger
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTrigger | CreateTrigger]]
| <code>handle CreateTrigger(Vector , Vector , Vector ) </code>
| <code>handle CreateTrigger(Vector , Vector , Vector ) </code>
| CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger
| CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger
|-
|-
| GetFrameCount
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrameCount | GetFrameCount]]
| <code>int GetFrameCount() </code>
| <code>int GetFrameCount() </code>
| Returns the engines current frame count
| Returns the engines current frame count
|-
|-
| DoEntFireByInstanceHandle
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFireByInstanceHandle | DoEntFireByInstanceHandle]]
| <code>void DoEntFireByInstanceHandle(handle , string , string , float , handle , handle ) </code>
| <code>void DoEntFireByInstanceHandle(handle , string , string , float , handle , handle ) </code>
| EntFireByHandle:Generate and entity i/o event
| EntFireByHandle:Generate and entity i/o event
|-
|-
| DoUniqueString
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoUniqueString | DoUniqueString]]
| <code>string DoUniqueString(string ) </code>
| <code>string DoUniqueString(string ) </code>
| 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 table's when not sure what keys are already in use in that table.
| 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 table's when not sure what keys are already in use in that table.
|-
|-
| GetSystemTime
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetSystemTime | GetSystemTime]]
| <code>string GetSystemTime() </code>
| <code>string GetSystemTime() </code>
| Get the current real world time
| Get the current real world time
|-
|-
| PlayerInstanceFromIndex
| [[Dota 2 Workshop Tools/Scripting/API/Global.PlayerInstanceFromIndex | PlayerInstanceFromIndex]]
| <code>handle PlayerInstanceFromIndex(int ) </code>
| <code>handle PlayerInstanceFromIndex(int ) </code>
| Get a script instance of a player by index.
| Get a script instance of a player by index.
|-
|-
| StartSoundEvent
| [[Dota 2 Workshop Tools/Scripting/API/Global.StartSoundEvent | StartSoundEvent]]
| <code>void StartSoundEvent(string , handle ) </code>
| <code>void StartSoundEvent(string , handle ) </code>
| Start a sound event
| Start a sound event
|-
|-
| CreateHeroForPlayer
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer | CreateHeroForPlayer]]
| <code>handle CreateHeroForPlayer(string , handle ) </code>
| <code>handle CreateHeroForPlayer(string , handle ) </code>
| Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero
| Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero
|-
|-
| GetFrostyPointsForRound
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyPointsForRound | GetFrostyPointsForRound]]
| <code>int GetFrostyPointsForRound(int , int , int ) </code>
| <code>int GetFrostyPointsForRound(int , int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| ShowGenericPopupToPlayer
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopupToPlayer | ShowGenericPopupToPlayer]]
| <code>void ShowGenericPopupToPlayer(handle , string , string , string , string , int ) </code>
| <code>void ShowGenericPopupToPlayer(handle , string , string , string , string , int ) </code>
| Show a generic popup dialog to a specific player.
| Show a generic popup dialog to a specific player.
|-
|-
| ShowGenericPopup
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopup | ShowGenericPopup]]
| <code>void ShowGenericPopup(string , string , string , string , int ) </code>
| <code>void ShowGenericPopup(string , string , string , string , int ) </code>
| Show a generic popup dialog for all players.
| Show a generic popup dialog for all players.
|-
|-
| DebugDrawLine
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine | DebugDrawLine]]
| <code>void DebugDrawLine(Vector , Vector , int , int , int , bool , float ) </code>
| <code>void DebugDrawLine(Vector , Vector , int , int , int , bool , float ) </code>
| Draw a debug overlay line (origin, target, r, g, b, ztest, duration)
| Draw a debug overlay line (origin, target, r, g, b, ztest, duration)
|-
|-
| FileToString
| [[Dota 2 Workshop Tools/Scripting/API/Global.FileToString | FileToString]]
| <code>string FileToString(string ) </code>
| <code>string FileToString(string ) </code>
| Reads a ''string'' from a file to send to script
| Reads a ''string'' from a file to send to script
|-
|-
| FireGameEventLocal
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEventLocal | FireGameEventLocal]]
| <code>void FireGameEventLocal(string , handle ) </code>
| <code>void FireGameEventLocal(string , handle ) </code>
| Fire a game event without broadcasting to the client.
| Fire a game event without broadcasting to the client.
|-
|-
| rr_GetResponseTargets
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_GetResponseTargets | rr_GetResponseTargets]]
| <code>handle rr_GetResponseTargets() </code>
| <code>handle rr_GetResponseTargets() </code>
| Retrieve a ''table'' of all available expresser targets, in the form { name : ''handle'', name: ''handle'' }.
| Retrieve a ''table'' of all available expresser targets, in the form { name : ''handle'', name: ''handle'' }.
|-
|-
| SendFrostivusTimeElapsedToGC
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostivusTimeElapsedToGC | SendFrostivusTimeElapsedToGC]]
| <code>void SendFrostivusTimeElapsedToGC() </code>
| <code>void SendFrostivusTimeElapsedToGC() </code>
| No Description Set
| No Description Set
|-
|-
| RotateOrientation
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateOrientation | RotateOrientation]]
| <code>QAngle RotateOrientation(QAngle , QAngle ) </code>
| <code>QAngle RotateOrientation(QAngle , QAngle ) </code>
| Rotate a ''QAngle'' by another ''QAngle''.
| Rotate a ''QAngle'' by another ''QAngle''.
|-
|-
| EmitSoundOnClient
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnClient | EmitSoundOnClient]]
| <code>void EmitSoundOnClient(string , handle ) </code>
| <code>void EmitSoundOnClient(string , handle ) </code>
| Play named sound only on the client for the passed in player
| Play named sound only on the client for the passed in player
|-
|-
| ScreenShake
| [[Dota 2 Workshop Tools/Scripting/API/Global.ScreenShake | ScreenShake]]
| <code>void ScreenShake(Vector , float , float , float , float , int , bool ) </code>
| <code>void ScreenShake(Vector , float , float , float , float , int , bool ) </code>
| Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake
| Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake
|-
|-
| CancelEntityIOEvents
| [[Dota 2 Workshop Tools/Scripting/API/Global.CancelEntityIOEvents | CancelEntityIOEvents]]
| <code>void CancelEntityIOEvents(ehandle ) </code>
| <code>void CancelEntityIOEvents(ehandle ) </code>
| Create all I/O events for a particular entity
| Create all I/O events for a particular entity
|-
|-
| GetWorldMinX
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinX | GetWorldMinX]]
| <code>float GetWorldMinX() </code>
| <code>float GetWorldMinX() </code>
| Gets the world's minimum X position.
| Gets the world's minimum X position.
|-
|-
| AppendToLogFile
| [[Dota 2 Workshop Tools/Scripting/API/Global.AppendToLogFile | AppendToLogFile]]
| <code>void AppendToLogFile(string , string ) </code>
| <code>void AppendToLogFile(string , string ) </code>
| Appends a ''string'' to a log file on the server
| Appends a ''string'' to a log file on the server
|-
|-
| FireGameEvent
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEvent | FireGameEvent]]
| <code>void FireGameEvent(string , handle ) </code>
| <code>void FireGameEvent(string , handle ) </code>
| Fire a game event.
| Fire a game event.
|-
|-
| FireEntityIOInputNameOnly
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputNameOnly | FireEntityIOInputNameOnly]]
| <code>void FireEntityIOInputNameOnly(ehandle , string ) </code>
| <code>void FireEntityIOInputNameOnly(ehandle , string ) </code>
| Fire Entity's Action Input w/no data
| Fire Entity's Action Input w/no data
|-
|-
| Time
| [[Dota 2 Workshop Tools/Scripting/API/Global.Time | Time]]
| <code>float Time() </code>
| <code>float Time() </code>
| Get the current server time
| Get the current server time
|-
|-
| PrecacheResource
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheResource | PrecacheResource]]
| <code>void PrecacheResource(string , string , handle ) </code>
| <code>void PrecacheResource(string , string , handle ) </code>
| Manually precache a single resource
| Manually precache a single resource
|-
|-
| DoScriptAssert
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoScriptAssert | DoScriptAssert]]
| <code>void DoScriptAssert(bool , string ) </code>
| <code>void DoScriptAssert(bool , string ) </code>
| ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog.
| ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog.
|-
|-
| PrecacheModel
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheModel | PrecacheModel]]
| <code>void PrecacheModel(string , handle ) </code>
| <code>void PrecacheModel(string , handle ) </code>
| ( modelName, context ) - Manually precache a single model
| ( modelName, context ) - Manually precache a single model
|-
|-
| ShowMessage
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowMessage | ShowMessage]]
| <code>void ShowMessage(string ) </code>
| <code>void ShowMessage(string ) </code>
| Print a hud message on all clients
| Print a hud message on all clients
|-
|-
| PauseGame
| [[Dota 2 Workshop Tools/Scripting/API/Global.PauseGame | PauseGame]]
| <code>void PauseGame(bool ) </code>
| <code>void PauseGame(bool ) </code>
| Pause or unpause the game.
| Pause or unpause the game.
|-
|-
| SplineQuaternions
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineQuaternions | SplineQuaternions]]
| <code>Quaternion SplineQuaternions(Quaternion , Quaternion , float ) </code>
| <code>Quaternion SplineQuaternions(Quaternion , Quaternion , float ) </code>
| (quaternion,quaternion,''float'') very basic interpolation of v0 to v1 over t on [0,1]
| (quaternion,quaternion,''float'') very basic interpolation of v0 to v1 over t on [0,1]
|-
|-
| StopSoundEvent
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundEvent | StopSoundEvent]]
| <code>void StopSoundEvent(string , handle ) </code>
| <code>void StopSoundEvent(string , handle ) </code>
| Stops a sound event
| Stops a sound event
|-
|-
| GetMaxOutputDelay
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMaxOutputDelay | GetMaxOutputDelay]]
| <code>float GetMaxOutputDelay(ehandle , string ) </code>
| <code>float GetMaxOutputDelay(ehandle , string ) </code>
| Get the longest delay for all events attached to an output
| Get the longest delay for all events attached to an output
|-
|-
| RemoveSpawnGroupFilterProxy
| [[Dota 2 Workshop Tools/Scripting/API/Global.RemoveSpawnGroupFilterProxy | RemoveSpawnGroupFilterProxy]]
| <code>void RemoveSpawnGroupFilterProxy(string ) </code>
| <code>void RemoveSpawnGroupFilterProxy(string ) </code>
| Remove the C proxy for a script-based spawn group filter
| Remove the C proxy for a script-based spawn group filter
|-
|-
| DebugDrawScreenTextLine
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawScreenTextLine | DebugDrawScreenTextLine]]
| <code>void DebugDrawScreenTextLine(float , float , int , string , int , int , int , int , float ) </code>
| <code>void DebugDrawScreenTextLine(float , float , int , string , int , int , int , int , float ) </code>
| Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration)
| Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration)
|-
|-
| DebugScreenTextPretty
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugScreenTextPretty | DebugScreenTextPretty]]
| <code>void DebugScreenTextPretty(float , float , int , string , int , int , int , int , float , string , int , bool ) </code>
| <code>void DebugScreenTextPretty(float , float , int , string , int , int , int , int , float , string , int , bool ) </code>
| Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
| Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
|-
|-
| SpawnEntityListFromTableSynchronous
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableSynchronous | SpawnEntityListFromTableSynchronous]]
| <code>handle SpawnEntityListFromTableSynchronous(handle ) </code>
| <code>handle SpawnEntityListFromTableSynchronous(handle ) </code>
| Synchronously spawn an entity group from a list of spawn table's.
| Synchronously spawn an entity group from a list of spawn table's.
|-
|-
| SetOpvarFloatPlayer
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatPlayer | SetOpvarFloatPlayer]]
| <code>void SetOpvarFloatPlayer(string , string , string , float , handle ) </code>
| <code>void SetOpvarFloatPlayer(string , string , string , float , handle ) </code>
| Sets an opvar value for a single player ( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
| Sets an opvar value for a single player ( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
|-
|-
| PrecacheUnitByNameAsync
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameAsync | PrecacheUnitByNameAsync]]
| <code>void PrecacheUnitByNameAsync(string , handle ) </code>
| <code>void PrecacheUnitByNameAsync(string , handle ) </code>
| Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished.
| Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished.
|-
|-
| StringToFile
| [[Dota 2 Workshop Tools/Scripting/API/Global.StringToFile | StringToFile]]
| <code>bool StringToFile(string , string ) </code>
| <code>bool StringToFile(string , string ) </code>
| Store a ''string'' to a file for later reading
| Store a ''string'' to a file for later reading
|-
|-
| RegisterSpawnGroupFilterProxy
| [[Dota 2 Workshop Tools/Scripting/API/Global.RegisterSpawnGroupFilterProxy | RegisterSpawnGroupFilterProxy]]
| <code>void RegisterSpawnGroupFilterProxy(string ) </code>
| <code>void RegisterSpawnGroupFilterProxy(string ) </code>
| Create a C proxy for a script-based spawn group filter
| Create a C proxy for a script-based spawn group filter
|-
|-
| ExecuteOrderFromTable
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExecuteOrderFromTable | ExecuteOrderFromTable]]
| <code>void ExecuteOrderFromTable(handle ) </code>
| <code>void ExecuteOrderFromTable(handle ) </code>
| Issue an order from a script ''table''
| Issue an order from a script ''table''
|-
|-
| ApplyDamage
| [[Dota 2 Workshop Tools/Scripting/API/Global.ApplyDamage | ApplyDamage]]
| <code>float ApplyDamage(handle ) </code>
| <code>float ApplyDamage(handle ) </code>
| Pass ''table'' - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.  
| Pass ''table'' - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.
|-
|-
| TraceCollideable
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceCollideable | TraceCollideable]]
| <code>bool TraceCollideable(handle ) </code>
| <code>bool TraceCollideable(handle ) </code>
| Pass ''table'' - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
| Pass ''table'' - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
|-
|-
| RandomFloat
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomFloat | RandomFloat]]
| <code>float RandomFloat(float , float ) </code>
| <code>float RandomFloat(float , float ) </code>
| Get a random ''float'' within a range
| Get a random ''float'' within a range
|-
|-
| StopSoundOn
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundOn | StopSoundOn]]
| <code>void StopSoundOn(string soundName, handle playingEntity) </code>
| <code>void StopSoundOn(string soundName, handle playingEntity) </code>
| Stop named sound on Entity
| Stop named sound on Entity
|-
|-
| UnloadSpawnGroup
| [[Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroup | UnloadSpawnGroup]]
| <code>void UnloadSpawnGroup(string ) </code>
| <code>void UnloadSpawnGroup(string ) </code>
| Unload a spawn group by name
| Unload a spawn group by name
|-
|-
| rr_QueryBestResponse
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_QueryBestResponse | rr_QueryBestResponse]]
| <code>bool rr_QueryBestResponse(handle , handle , handle ) </code>
| <code>bool rr_QueryBestResponse(handle , handle , handle ) </code>
| Params: ( hEnt, hQuery, hResult ) // Static : tests 'query' against entity's response system and returns the best response found (or ''nil'' if none found).
| Params: ( hEnt, hQuery, hResult ) // Static : tests 'query' against entity's response system and returns the best response found (or ''nil'' if none found).
|-
|-
| UnloadSpawnGroupByHandle
| [[Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroupByHandle | UnloadSpawnGroupByHandle]]
| <code>void UnloadSpawnGroupByHandle(int ) </code>
| <code>void UnloadSpawnGroupByHandle(int ) </code>
| Unload a spawn group by ''handle''
| Unload a spawn group by ''handle''
|-
|-
| SetRenderingEnabled
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetRenderingEnabled | SetRenderingEnabled]]
| <code>void SetRenderingEnabled(ehandle , bool ) </code>
| <code>void SetRenderingEnabled(ehandle , bool ) </code>
| Set rendering on/off for an ''ehandle''
| Set rendering on/off for an ''ehandle''
|-
|-
| rr_CommitAIResponse
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_CommitAIResponse | rr_CommitAIResponse]]
| <code>bool rr_CommitAIResponse(handle , handle ) </code>
| <code>bool rr_CommitAIResponse(handle , handle ) </code>
| Commit the result of QueryBestResponse back to the given entity to play. Call with params (entity, airesponse)
| Commit the result of QueryBestResponse back to the given entity to play. Call with params (entity, airesponse)
|-
|-
| StopListeningToAllGameEvents
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToAllGameEvents | StopListeningToAllGameEvents]]
| <code>void StopListeningToAllGameEvents(handle ) </code>
| <code>void StopListeningToAllGameEvents(handle ) </code>
| Stop listening to all game events within a specific context.
| Stop listening to all game events within a specific context.
|-
|-
| LoadKeyValuesFromString
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValuesFromString | LoadKeyValuesFromString]]
| <code>table LoadKeyValuesFromString(string ) </code>
| <code>table LoadKeyValuesFromString(string ) </code>
| Creates a ''table'' from the specified keyvalues ''string''
| Creates a ''table'' from the specified keyvalues ''string''
Line 563: Line 562:
! Description  
! Description  
|-
|-
| GetBaseVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBaseVelocity | GetBaseVelocity]]
| <code>Vector GetBaseVelocity() </code>
| <code>Vector GetBaseVelocity() </code>
| Get Base velocity
| Get Base velocity
|-
|-
| SetSize
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetSize | SetSize]]
| <code>void SetSize(Vector , Vector ) </code>
| <code>void SetSize(Vector , Vector ) </code>
| No Description Set
| No Description Set
|-
|-
| SetRenderColor
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetRenderColor | SetRenderColor]]
| <code>void SetRenderColor(int , int , int ) </code>
| <code>void SetRenderColor(int , int , int ) </code>
| SetRenderColor( r, g, b ): Sets the render color of the entity.
| SetRenderColor( r, g, b ): Sets the render color of the entity.
|-
|-
| GatherCriteria
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria | GatherCriteria]]
| <code>void GatherCriteria(handle ) </code>
| <code>void GatherCriteria(handle ) </code>
| Returns a ''table'' containing the criteria that would be used for response queries on this entity. This is the same as the ''table'' that is passed to response rule script function callbacks.
| Returns a ''table'' containing the criteria that would be used for response queries on this entity. This is the same as the ''table'' that is passed to response rule script function callbacks.
|-
|-
| Trigger
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Trigger | Trigger]]
| <code>void Trigger() </code>
| <code>void Trigger() </code>
| Fires off this entity's OnTrigger responses
| Fires off this entity's OnTrigger responses
|-
|-
| SetOwner
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOwner | SetOwner]]
| <code>void SetOwner(handle owningEntity) </code>
| <code>void SetOwner(handle owningEntity) </code>
| Sets this entity's owner
| Sets this entity's owner
|-
|-
| SetAbsOrigin
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAbsOrigin | SetAbsOrigin]]
| <code>void SetAbsOrigin(Vector origin) </code>
| <code>void SetAbsOrigin(Vector origin) </code>
| SetAbsOrigin
| SetAbsOrigin
|-
|-
| SetAngularVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngularVelocity | SetAngularVelocity]]
| <code>void SetAngularVelocity(float pitch, float yaw, float roll) </code>
| <code>void SetAngularVelocity(float pitch, float yaw, float roll) </code>
| Set the local angular velocity - takes ''float'' pitch,yaw,roll velocities
| Set the local angular velocity - takes ''float'' pitch,yaw,roll velocities
|-
|-
| GetOwner
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwner | GetOwner]]
| <code>handle GetOwner() </code>
| <code>handle GetOwner() </code>
| Gets this entity's owner
| Gets this entity's owner
|-
|-
| GetOwnerEntity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwnerEntity | GetOwnerEntity]]
| <code>handle GetOwnerEntity() </code>
| <code>handle GetOwnerEntity() </code>
| Get the owner entity, if there is one
| Get the owner entity, if there is one
|-
|-
| GetChildren
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetChildren | GetChildren]]
| <code>handle GetChildren() </code>
| <code>handle GetChildren() </code>
| Get the entities parented to this entity.
| Get the entities parented to this entity.
|-
|-
| SetMaxHealth
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetMaxHealth | SetMaxHealth]]
| <code>void SetMaxHealth(int maxHP) </code>
| <code>void SetMaxHealth(int maxHP) </code>
| No Description Set
| No Description Set
|-
|-
| GetCenter
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetCenter | GetCenter]]
| <code>Vector GetCenter() </code>
| <code>Vector GetCenter() </code>
| Get ''vector'' to center of object - absolute coords
| Get ''vector'' to center of object - absolute coords
|-
|-
| Kill
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Kill | Kill]]
| <code>void Kill() </code>
| <code>void Kill() </code>
| No Description Set
| No Description Set
|-
|-
| FirstMoveChild
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.FirstMoveChild | FirstMoveChild]]
| <code>handle FirstMoveChild() </code>
| <code>handle FirstMoveChild() </code>
| No Description Set
| No Description Set
|-
|-
| GetMoveParent
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMoveParent | GetMoveParent]]
| <code>handle GetMoveParent() </code>
| <code>handle GetMoveParent() </code>
| If in hierarchy, retrieves the entity's parent
| If in hierarchy, retrieves the entity's parent
|-
|-
| SetForwardVector
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetForwardVector | SetForwardVector]]
| <code>void SetForwardVector(Vector forwardVec) </code>
| <code>void SetForwardVector(Vector forwardVec) </code>
| Set the orientation of the entity to have this forward ''forwardVec''
| Set the orientation of the entity to have this forward ''forwardVec''
|-
|-
| SetContextNum
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextNum | SetContextNum]]
| <code>void SetContextNum(string , float , float ) </code>
| <code>void SetContextNum(string , float , float ) </code>
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (''int'' or ''float''). Will last for duration (set 0 to mean 'forever').
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (''int'' or ''float''). Will last for duration (set 0 to mean 'forever').
|-
|-
| GetAbsOrigin
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAbsOrigin | GetAbsOrigin]]
| <code>Vector GetAbsOrigin() </code>
| <code>Vector GetAbsOrigin() </code>
| No Description Set
| No Description Set
|-
|-
| GetAngularVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngularVelocity | GetAngularVelocity]]
| <code>Vector GetAngularVelocity() </code>
| <code>Vector GetAngularVelocity() </code>
| Get the local angular velocity - returns a ''vector'' of pitch,yaw,roll
| Get the local angular velocity - returns a ''vector'' of pitch,yaw,roll
|-
|-
| NextMovePeer
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.NextMovePeer | NextMovePeer]]
| <code>handle NextMovePeer() </code>
| <code>handle NextMovePeer() </code>
| No Description Set
| No Description Set
|-
|-
| ApplyLocalAngularVelocityImpulse
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse | ApplyLocalAngularVelocityImpulse]]
| <code>void ApplyLocalAngularVelocityImpulse(Vector ) </code>
| <code>void ApplyLocalAngularVelocityImpulse(Vector ) </code>
| Apply an Ang Velocity Impulse
| Apply an Ang Velocity Impulse
|-
|-
| GetMaxHealth
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMaxHealth | GetMaxHealth]]
| <code>int GetMaxHealth() </code>
| <code>int GetMaxHealth() </code>
| No Description Set
| No Description Set
|-
|-
| PrecacheScriptSound
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.PrecacheScriptSound | PrecacheScriptSound]]
| <code>void PrecacheScriptSound(string ) </code>
| <code>void PrecacheScriptSound(string ) </code>
| Precache a sound for later playing.
| Precache a sound for later playing.
|-
|-
| SetContextThink
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextThink | SetContextThink]]
| <code>void SetContextThink(string , handle , float ) </code>
| <code>void SetContextThink(string , handle , float ) </code>
| Set a think function on this entity.
| Set a think function on this entity.
|-
|-
| GetBounds
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBounds | GetBounds]]
| <code>table GetBounds() </code>
| <code>table GetBounds() </code>
| Get a ''table'' containing the 'Mins' & 'Maxs' ''vector'' bounds, centered on object
| Get a ''table'' containing the 'Mins' & 'Maxs' ''vector'' bounds, centered on object
|-
|-
| SetTeam
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetTeam | SetTeam]]
| <code>void SetTeam(int team) </code>
| <code>void SetTeam(int team) </code>
| No Description Set
| No Description Set
|-
|-
| GetHealth
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetHealth | GetHealth]]
| <code>int GetHealth() </code>
| <code>int GetHealth() </code>
| No Description Set
| No Description Set
|-
|-
| GetForwardVector
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetForwardVector | GetForwardVector]]
| <code>Vector GetForwardVector() </code>
| <code>Vector GetForwardVector() </code>
| Get the forward ''vector'' of the entity
| Get the forward ''vector'' of the entity
|-
|-
| GetBoundingMaxs
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMaxs | GetBoundingMaxs]]
| <code>Vector GetBoundingMaxs() </code>
| <code>Vector GetBoundingMaxs() </code>
| Get a ''vector'' containing max bounds, centered on object
| Get a ''vector'' containing max bounds, centered on object
|-
|-
| GetModelName
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetModelName | GetModelName]]
| <code>string GetModelName() </code>
| <code>string GetModelName() </code>
| Returns the name of the model
| Returns the name of the model
|-
|-
| SetContext
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext | SetContext]]
| <code>void SetContext(string , string , float ) </code>
| <code>void SetContext(string , string , float ) </code>
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a ''string''. Will last for duration (set 0 to mean 'forever').
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a ''string''. Will last for duration (set 0 to mean 'forever').
|-
|-
| EmitSoundParams
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams | EmitSoundParams]]
| <code>void EmitSoundParams(string soundName, int pitch, float volume, float soundTime) </code>
| <code>void EmitSoundParams(string soundName, int pitch, float volume, float soundTime) </code>
| Plays/modifies a sound from this entity. changes sound if Pitch and/or Volume or SoundTime is > 0.
| Plays/modifies a sound from this entity. changes sound if Pitch and/or Volume or SoundTime is > 0.
|-
|-
| SetVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity | SetVelocity]]
| <code>void SetVelocity(Vector ) </code>
| <code>void SetVelocity(Vector ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTeam
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetTeam | GetTeam]]
| <code>int GetTeam() </code>
| <code>int GetTeam() </code>
| No Description Set
| No Description Set
|-
|-
| GetContext
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext | GetContext]]
| <code>table GetContext(string ) </code>
| <code>table GetContext(string ) </code>
| GetContext( name ): looks up a context and returns it if available. May return ''string'', ''float'', or ''nil'' (if the context isn't found)
| GetContext( name ): looks up a context and returns it if available. May return ''string'', ''float'', or ''nil'' (if the context isn't found)
|-
|-
| GetAngles
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngles | GetAngles]]
| <code>QAngle GetAngles() </code>
| <code>QAngle GetAngles() </code>
| No Description Set
| No Description Set
|-
|-
| SetHealth
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetHealth | SetHealth]]
| <code>void SetHealth(int hp) </code>
| <code>void SetHealth(int hp) </code>
| No Description Set
| No Description Set
|-
|-
| IsAlive
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsAlive | IsAlive]]
| <code>bool IsAlive() </code>
| <code>bool IsAlive() </code>
| No Description Set.
| No Description Set.
|-
|-
| SetParent
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent | SetParent]]
| <code>void SetParent(handle , string ) </code>
| <code>void SetParent(handle , string ) </code>
| Set the parent for this entity.
| Set the parent for this entity.
|-
|-
| GetAnglesAsVector
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAnglesAsVector | GetAnglesAsVector]]
| <code>Vector GetAnglesAsVector() </code>
| <code>Vector GetAnglesAsVector() </code>
| Get entity pitch, yaw, roll as a ''vector''
| Get entity pitch, yaw, roll as a ''vector''
|-
|-
| EmitSound
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSound | EmitSound]]
| <code>void EmitSound(string soundName) </code>
| <code>void EmitSound(string soundName) </code>
| Plays a sound from this entity.
| Plays a sound from this entity.
|-
|-
| SetAngles
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngles | SetAngles]]
| <code>void SetAngles(float pitch, float yaw, float roll) </code>
| <code>void SetAngles(float pitch, float yaw, float roll) </code>
| Set entity pitch, yaw, roll
| Set entity pitch, yaw, roll
|-
|-
| EyeAngles
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyeAngles | EyeAngles]]
| <code>QAngle EyeAngles() </code>
| <code>QAngle EyeAngles() </code>
| Get the qangles that this entity is looking at.
| Get the qangles that this entity is looking at.
|-
|-
| EyePosition
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyePosition | EyePosition]]
| <code>Vector EyePosition() </code>
| <code>Vector EyePosition() </code>
| Get ''vector'' to eye position - absolute coords
| Get ''vector'' to eye position - absolute coords
|-
|-
| ApplyAbsVelocityImpulse
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse | ApplyAbsVelocityImpulse]]
| <code>void ApplyAbsVelocityImpulse(Vector ) </code>
| <code>void ApplyAbsVelocityImpulse(Vector ) </code>
| Apply a Velocity Impulse
| Apply a Velocity Impulse
|-
|-
| GetRootMoveParent
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRootMoveParent | GetRootMoveParent]]
| <code>handle GetRootMoveParent() </code>
| <code>handle GetRootMoveParent() </code>
| If in hierarchy, walks up the hierarchy to find the root parent
| If in hierarchy, walks up the hierarchy to find the root parent
|-
|-
| OverrideFriction
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction | OverrideFriction]]
| <code>void OverrideFriction(float , float ) </code>
| <code>void OverrideFriction(float , float ) </code>
| Takes duration, value for a temporary override
| Takes duration, value for a temporary override
|-
|-
| SetFriction
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction | SetFriction]]
| <code>void SetFriction(float ) </code>
| <code>void SetFriction(float ) </code>
| Set PLAYER friction, ignored for objects
| Set PLAYER friction, ignored for objects
|-
|-
| SetModel
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetModel | SetModel]]
| <code>void SetModel(string modelName) </code>
| <code>void SetModel(string modelName) </code>
| No Description Set
| No Description Set
|-
|-
| GetUpVector
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetUpVector | GetUpVector]]
| <code>Vector GetUpVector() </code>
| <code>Vector GetUpVector() </code>
| Get the up ''vector'' of the entity
| Get the up ''vector'' of the entity
|-
|-
| SetGravity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetGravity | SetGravity]]
| <code>void SetGravity(float ) </code>
| <code>void SetGravity(float ) </code>
| Set PLAYER gravity, ignored for objects
| Set PLAYER gravity, ignored for objects
|-
|-
| IsPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsPlayer | IsPlayer]]
| <code>bool IsPlayer() </code>
| <code>bool IsPlayer() </code>
| Is this a player entity?
| Is this a player entity?
|-
|-
| GetVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetVelocity | GetVelocity]]
| <code>Vector GetVelocity() </code>
| <code>Vector GetVelocity() </code>
| No Description Set
| No Description Set
|-
|-
| GetLocalVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalVelocity | GetLocalVelocity]]
| <code>Vector GetLocalVelocity() </code>
| <code>Vector GetLocalVelocity() </code>
| Get Entity relative velocity
| Get Entity relative velocity
|-
|-
| StopSound
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.StopSound | StopSound]]
| <code>void StopSound(string soundName) </code>
| <code>void StopSound(string soundName) </code>
| Stops a named sound playing from this entity.
| Stops a named sound playing from this entity.
|-
|-
| SetOrigin
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOrigin | SetOrigin]]
| <code>void SetOrigin(Vector origin) </code>
| <code>void SetOrigin(Vector origin) </code>
| No Description Set
| No Description Set
|-
|-
| GetSoundDuration
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetSoundDuration | GetSoundDuration]]
| <code>float GetSoundDuration(string soundName, string actormodelname) </code>
| <code>float GetSoundDuration(string soundName, string actormodelname) </code>
| Returns ''float'' duration of the sound. Takes soundname and optional actormodelname.
| Returns ''float'' duration of the sound. Takes soundname and optional actormodelname.
|-
|-
| GetLocalAngularVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalAngularVelocity | GetLocalAngularVelocity]]
| <code>QAngle GetLocalAngularVelocity() </code>
| <code>QAngle GetLocalAngularVelocity() </code>
| Maybe local angvel
| Maybe local angvel
|-
|-
| GetOrigin
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOrigin | GetOrigin]]
| <code>Vector GetOrigin() </code>
| <code>Vector GetOrigin() </code>
| No Description Set
| No Description Set
|-
|-
| GetBoundingMins
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMins | GetBoundingMins]]
| <code>Vector GetBoundingMins() </code>
| <code>Vector GetBoundingMins() </code>
| Get a ''vector'' containing min bounds, centered on object
| Get a ''vector'' containing min bounds, centered on object
|-
|-
| GetRightVector
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRightVector | GetRightVector]]
| <code>Vector GetRightVector() </code>
| <code>Vector GetRightVector() </code>
| Get the right ''vector'' of the entity
| Get the right ''vector'' of the entity
Line 822: Line 821:
! Description  
! Description  
|-
|-
| First
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.First | First]]
| <code>handle First() </code>
| <code>handle First() </code>
| Begin an iteration over the list of entities
| Begin an iteration over the list of entities
|-
|-
| FindAllByModel
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByModel | FindAllByModel]]
| <code>table FindAllByModel(string modelName) </code>
| <code>table FindAllByModel(string modelName) </code>
| Find entities by model name.
| Find entities by model name.
|-
|-
| FindByName
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByName | FindByName]]
| <code>handle FindByName(handle lastEnt, string searchString) </code>
| <code>handle FindByName(handle lastEnt, string searchString) </code>
| Find entities by name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| FindByNameWithin
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameWithin | FindByNameWithin]]
| <code>handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) </code>
| <code>handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) </code>
| Find entities by name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| FindAllByTarget
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByTarget | FindAllByTarget]]
| <code>table FindAllByTarget(string targetName) </code>
| <code>table FindAllByTarget(string targetName) </code>
| Find entities by targetname.
| Find entities by targetname.
|-
|-
| FindByClassname
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassname | FindByClassname]]
| <code>handle FindByClassname(handle startFrom, string className) </code>
| <code>handle FindByClassname(handle startFrom, string className) </code>
| Find entities by class name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by class name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| FindAllByName
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByName | FindAllByName]]
| <code>table FindAllByName(string name) </code>
| <code>table FindAllByName(string name) </code>
| Find all entities by name. Returns an array containing all the found entities in it.
| Find all entities by name. Returns an array containing all the found entities in it.
|-
|-
| FindAllByClassnameWithin
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassnameWithin | FindAllByClassnameWithin]]
| <code>table FindAllByClassnameWithin(string , Vector , float ) </code>
| <code>table FindAllByClassnameWithin(string , Vector , float ) </code>
| Find entities by class name within a radius.
| Find entities by class name within a radius.
|-
|-
| FindByModel
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModel | FindByModel]]
| <code>handle FindByModel(handle startFrom, string modelName) </code>
| <code>handle FindByModel(handle startFrom, string modelName) </code>
| Find entities by model name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by model name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| FindAllByNameWithin
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByNameWithin | FindAllByNameWithin]]
| <code>table FindAllByNameWithin(string name, Vector origin, float maxRadius) </code>
| <code>table FindAllByNameWithin(string name, Vector origin, float maxRadius) </code>
| Find entities by name within a radius.
| Find entities by name within a radius.
|-
|-
| FindByClassnameWithin
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameWithin | FindByClassnameWithin]]
| <code>handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) </code>
| <code>handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) </code>
| 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
| 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
|-
|-
| FindByClassnameNearest
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameNearest | FindByClassnameNearest]]
| <code>handle FindByClassnameNearest(string className, Vector origin, float maxRadius) </code>
| <code>handle FindByClassnameNearest(string className, Vector origin, float maxRadius) </code>
| Find entities by class name nearest to a point.
| Find entities by class name nearest to a point.
|-
|-
| FindAllByClassname
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname | FindAllByClassname]]
| <code>table FindAllByClassname(string ) </code>
| <code>table FindAllByClassname(string ) </code>
| Finds all entities by class name. Returns an array containing all the found entities.
| Finds all entities by class name. Returns an array containing all the found entities.
|-
|-
| FindByTarget
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByTarget | FindByTarget]]
| <code>handle FindByTarget(handle startFrom, string targetName) </code>
| <code>handle FindByTarget(handle startFrom, string targetName) </code>
| Find entities by targetname. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by targetname. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| FindByNameNearest
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameNearest | FindByNameNearest]]
| <code>handle FindByNameNearest(string name, Vector origin, float maxRadius) </code>
| <code>handle FindByNameNearest(string name, Vector origin, float maxRadius) </code>
| Find entities by name nearest to a point.
| Find entities by name nearest to a point.
|-
|-
| CreateByClassname
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.CreateByClassname | CreateByClassname]]
| <code>handle CreateByClassname(string className) </code>
| <code>handle CreateByClassname(string className) </code>
| Creates an entity by classname
| Creates an entity by classname
|-
|-
| FindAllInSphere
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllInSphere | FindAllInSphere]]
| <code>table FindAllInSphere(Vector origin, float maxRadius) </code>
| <code>table FindAllInSphere(Vector origin, float maxRadius) </code>
| Find entities within a radius.
| Find entities within a radius.
|-
|-
| Next
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.Next | Next]]
| <code>handle Next(handle startFrom) </code>
| <code>handle Next(handle startFrom) </code>
| Continue an iteration over the list of entities, providing reference to a previously found entity
| Continue an iteration over the list of entities, providing reference to a previously found entity
|-
|-
| FindInSphere
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindInSphere | FindInSphere]]
| <code>handle FindInSphere(handle startFrom, Vector origin, float maxRadius) </code>
| <code>handle FindInSphere(handle startFrom, Vector origin, float maxRadius) </code>
| Find entities within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| FindByModelWithin
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModelWithin | FindByModelWithin]]
| <code>handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) </code>
| <code>handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) </code>
| Find entities by model name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by model name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
Line 911: Line 910:
! Description  
! Description  
|-
|-
| GetEntityIndex
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityIndex | GetEntityIndex]]
| <code>int GetEntityIndex() </code>
| <code>int GetEntityIndex() </code>
| No Description Set
| No Description Set
|-
|-
| DisconnectRedirectedOutput
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectRedirectedOutput | DisconnectRedirectedOutput]]
| <code>void DisconnectRedirectedOutput(string , string , handle ) </code>
| <code>void DisconnectRedirectedOutput(string , string , handle ) </code>
| Removes a connected script function from an I/O event on the passed entity.
| Removes a connected script function from an I/O event on the passed entity.
|-
|-
| GetOrCreatePublicScriptScope
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePublicScriptScope | GetOrCreatePublicScriptScope]]
| <code>handle GetOrCreatePublicScriptScope() </code>
| <code>handle GetOrCreatePublicScriptScope() </code>
| Retrieve, creating if necessary, the public script-side data associated with an entity
| Retrieve, creating if necessary, the public script-side data associated with an entity
|-
|-
| GetOrCreatePrivateScriptScope
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePrivateScriptScope | GetOrCreatePrivateScriptScope]]
| <code>handle GetOrCreatePrivateScriptScope() </code>
| <code>handle GetOrCreatePrivateScriptScope() </code>
| Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
| Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
|-
|-
| GetPrivateScriptScope
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPrivateScriptScope | GetPrivateScriptScope]]
| <code>handle GetPrivateScriptScope() </code>
| <code>handle GetPrivateScriptScope() </code>
| Retrieve the private per-instance script-side data associated with an entity
| Retrieve the private per-instance script-side data associated with an entity
|-
|-
| RedirectOutput
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput | RedirectOutput]]
| <code>void RedirectOutput(string , string , handle ) </code>
| <code>void RedirectOutput(string , string , handle ) </code>
| Adds an I/O connection that will call the named function on the passed entity when the specified output fires.
| Adds an I/O connection that will call the named function on the passed entity when the specified output fires.
|-
|-
| GetIntAttr
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr | GetIntAttr]]
| <code>int GetIntAttr(string ) </code>
| <code>int GetIntAttr(string ) </code>
| Get Integer Attribute
| Get Integer Attribute
|-
|-
| FireOutput
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput | FireOutput]]
| <code>void FireOutput(string , handle , handle , table , float ) </code>
| <code>void FireOutput(string , handle , handle , table , float ) </code>
| Fire an entity output
| Fire an entity output
|-
|-
| GetDebugName
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetDebugName | GetDebugName]]
| <code>string GetDebugName() </code>
| <code>string GetDebugName() </code>
| Get the entity name w/help if not defined (i.e. classname/etc)
| Get the entity name w/help if not defined (i.e. classname/etc)
|-
|-
| DisconnectOutput
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput | DisconnectOutput]]
| <code>void DisconnectOutput(string , string ) </code>
| <code>void DisconnectOutput(string , string ) </code>
| Removes a connected script function from an I/O event on this entity.
| Removes a connected script function from an I/O event on this entity.
|-
|-
| Destroy
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.Destroy | Destroy]]
| <code>void Destroy() </code>
| <code>void Destroy() </code>
| No Description Set
| No Description Set
|-
|-
| GetClassname
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetClassname | GetClassname]]
| <code>string GetClassname() </code>
| <code>string GetClassname() </code>
| No Description Set
| No Description Set
|-
|-
| GetName
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetName | GetName]]
| <code>string GetName() </code>
| <code>string GetName() </code>
| No Description Set
| No Description Set
|-
|-
| ConnectOutput
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput | ConnectOutput]]
| <code>void ConnectOutput(string , string ) </code>
| <code>void ConnectOutput(string , string ) </code>
| Adds an I/O connection that will call the named function on this entity when the specified output fires.
| Adds an I/O connection that will call the named function on this entity when the specified output fires.
|-
|-
| entindex
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.entindex | entindex]]
| <code>int entindex() </code>
| <code>int entindex() </code>
| No Description Set
| No Description Set
|-
|-
| GetEntityHandle
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityHandle | GetEntityHandle]]
| <code>ehandle GetEntityHandle() </code>
| <code>ehandle GetEntityHandle() </code>
| Get the entity as an EHANDLE
| Get the entity as an EHANDLE
|-
|-
| RemoveSelf
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RemoveSelf | RemoveSelf]]
| <code>void RemoveSelf() </code>
| <code>void RemoveSelf() </code>
| Delete this entity
| Delete this entity
|-
|-
| SetIntAttr
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.SetIntAttr | SetIntAttr]]
| <code>void SetIntAttr(string , int ) </code>
| <code>void SetIntAttr(string , int ) </code>
| Set Integer Attribute
| Set Integer Attribute
|-
|-
| GetPublicScriptScope
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPublicScriptScope | GetPublicScriptScope]]
| <code>handle GetPublicScriptScope() </code>
| <code>handle GetPublicScriptScope() </code>
| Retrieve the public script-side data associated with an entity
| Retrieve the public script-side data associated with an entity
Line 997: Line 996:
! Description  
! Description  
|-
|-
| GetAnimationIgnoresModelScale
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAnimationIgnoresModelScale | GetAnimationIgnoresModelScale]]
| <code>bool GetAnimationIgnoresModelScale() </code>
| <code>bool GetAnimationIgnoresModelScale() </code>
| No Description Set
| No Description Set
|-
|-
| IsSharedWithTeammates
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsSharedWithTeammates | IsSharedWithTeammates]]
| <code>bool IsSharedWithTeammates() </code>
| <code>bool IsSharedWithTeammates() </code>
| No Description Set
| No Description Set
|-
|-
| OnHeroLevelUp
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroLevelUp | OnHeroLevelUp]]
| <code>void OnHeroLevelUp() </code>
| <code>void OnHeroLevelUp() </code>
| No Description Set
| No Description Set
|-
|-
| OnChannelFinish
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]]
| <code>void OnChannelFinish(bool ) </code>
| <code>void OnChannelFinish(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| ToggleAutoCast
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAutoCast | ToggleAutoCast]]
| <code>void ToggleAutoCast() </code>
| <code>void ToggleAutoCast() </code>
| No Description Set
| No Description Set
|-
|-
| GetDuration
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetDuration | GetDuration]]
| <code>float GetDuration() </code>
| <code>float GetDuration() </code>
| No Description Set
| No Description Set
|-
|-
| IsChanneling
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsChanneling | IsChanneling]]
| <code>bool IsChanneling() </code>
| <code>bool IsChanneling() </code>
| Returns whether the ability is currently channeling.
| Returns whether the ability is currently channeling.
|-
|-
| GetAbilityTargetType
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetType | GetAbilityTargetType]]
| <code>int GetAbilityTargetType() </code>
| <code>int GetAbilityTargetType() </code>
| No Description Set
| No Description Set
|-
|-
| GetAbilityName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityName | GetAbilityName]]
| <code>string GetAbilityName() </code>
| <code>string GetAbilityName() </code>
| No Description Set
| No Description Set
|-
|-
| PlaysDefaultAnimWhenStolen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PlaysDefaultAnimWhenStolen | PlaysDefaultAnimWhenStolen]]
| <code>bool PlaysDefaultAnimWhenStolen() </code>
| <code>bool PlaysDefaultAnimWhenStolen() </code>
| No Description Set
| No Description Set
|-
|-
| IsActivated
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsActivated | IsActivated]]
| <code>bool IsActivated() </code>
| <code>bool IsActivated() </code>
| No Description Set
| No Description Set
|-
|-
| OnAbilityPhaseInterrupted
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseInterrupted | OnAbilityPhaseInterrupted]]
| <code>void OnAbilityPhaseInterrupted() </code>
| <code>void OnAbilityPhaseInterrupted() </code>
| No Description Set
| No Description Set
|-
|-
| SetHidden
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]]
| <code>void SetHidden(bool ) </code>
| <code>void SetHidden(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| IsPassive
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsPassive | IsPassive]]
| <code>bool IsPassive() </code>
| <code>bool IsPassive() </code>
| No Description Set
| No Description Set
|-
|-
| GetCastRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastRange | GetCastRange]]
| <code>int GetCastRange() </code>
| <code>int GetCastRange() </code>
| No Description Set
| No Description Set
|-
|-
| GetBackswingTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBackswingTime | GetBackswingTime]]
| <code>float GetBackswingTime() </code>
| <code>float GetBackswingTime() </code>
| No Description Set
| No Description Set
|-
|-
| GetCooldownTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTime | GetCooldownTime]]
| <code>float GetCooldownTime() </code>
| <code>float GetCooldownTime() </code>
| No Description Set
| No Description Set
|-
|-
| PayManaCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayManaCost | PayManaCost]]
| <code>void PayManaCost() </code>
| <code>void PayManaCost() </code>
| No Description Set
| No Description Set
|-
|-
| GetAssociatedSecondaryAbilities
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedSecondaryAbilities | GetAssociatedSecondaryAbilities]]
| <code>string GetAssociatedSecondaryAbilities() </code>
| <code>string GetAssociatedSecondaryAbilities() </code>
| No Description Set
| No Description Set
|-
|-
| GetStolenActivityModifier
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetStolenActivityModifier | GetStolenActivityModifier]]
| <code>string GetStolenActivityModifier() </code>
| <code>string GetStolenActivityModifier() </code>
| No Description Set
| No Description Set
|-
|-
| SpeakTrigger
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakTrigger | SpeakTrigger]]
| <code>bool SpeakTrigger() </code>
| <code>bool SpeakTrigger() </code>
| No Description Set
| No Description Set
|-
|-
| PayGoldCostForUpgrade
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCostForUpgrade | PayGoldCostForUpgrade]]
| <code>void PayGoldCostForUpgrade() </code>
| <code>void PayGoldCostForUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| GetModifierValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValue | GetModifierValue]]
| <code>float GetModifierValue() </code>
| <code>float GetModifierValue() </code>
| No Description Set
| No Description Set
|-
|-
| GetCursorTargetingNothing
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTargetingNothing | GetCursorTargetingNothing]]
| <code>bool GetCursorTargetingNothing() </code>
| <code>bool GetCursorTargetingNothing() </code>
| No Description Set
| No Description Set
|-
|-
| GetCooldownTimeRemaining
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTimeRemaining | GetCooldownTimeRemaining]]
| <code>float GetCooldownTimeRemaining() </code>
| <code>float GetCooldownTimeRemaining() </code>
| No Description Set
| No Description Set
|-
|-
| GetChannelStartTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelStartTime | GetChannelStartTime]]
| <code>float GetChannelStartTime() </code>
| <code>float GetChannelStartTime() </code>
| No Description Set
| No Description Set
|-
|-
| GetCursorPosition
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorPosition | GetCursorPosition]]
| <code>Vector GetCursorPosition() </code>
| <code>Vector GetCursorPosition() </code>
| No Description Set
| No Description Set
|-
|-
| GetToggleState
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetToggleState | GetToggleState]]
| <code>bool GetToggleState() </code>
| <code>bool GetToggleState() </code>
| No Description Set
| No Description Set
|-
|-
| IsInAbilityPhase
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsInAbilityPhase | IsInAbilityPhase]]
| <code>bool IsInAbilityPhase() </code>
| <code>bool IsInAbilityPhase() </code>
| Returns whether the ability is currently casting.
| Returns whether the ability is currently casting.
|-
|-
| ProcsMagicStick
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ProcsMagicStick | ProcsMagicStick]]
| <code>bool ProcsMagicStick() </code>
| <code>bool ProcsMagicStick() </code>
| No Description Set
| No Description Set
|-
|-
| GetCooldown
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]]
| <code>float GetCooldown(int ) </code>
| <code>float GetCooldown(int ) </code>
| Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
| Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
|-
|-
| ToggleAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAbility | ToggleAbility]]
| <code>void ToggleAbility() </code>
| <code>void ToggleAbility() </code>
| No Description Set
| No Description Set
|-
|-
| IsHiddenWhenStolen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenWhenStolen | IsHiddenWhenStolen]]
| <code>bool IsHiddenWhenStolen() </code>
| <code>bool IsHiddenWhenStolen() </code>
| No Description Set
| No Description Set
|-
|-
| OnSpellStart
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnSpellStart | OnSpellStart]]
| <code>void OnSpellStart() </code>
| <code>void OnSpellStart() </code>
| No Description Set
| No Description Set
|-
|-
| CastAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CastAbility | CastAbility]]
| <code>void CastAbility() </code>
| <code>void CastAbility() </code>
| No Description Set
| No Description Set
|-
|-
| GetChannelledManaCostPerSecond
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]]
| <code>int GetChannelledManaCostPerSecond(int ) </code>
| <code>int GetChannelledManaCostPerSecond(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetIntrinsicModifierName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetIntrinsicModifierName | GetIntrinsicModifierName]]
| <code>string GetIntrinsicModifierName() </code>
| <code>string GetIntrinsicModifierName() </code>
| No Description Set
| No Description Set
|-
|-
| IsOwnersGoldEnough
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]]
| <code>bool IsOwnersGoldEnough(int ) </code>
| <code>bool IsOwnersGoldEnough(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsHidden
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHidden | IsHidden]]
| <code>bool IsHidden() </code>
| <code>bool IsHidden() </code>
| No Description Set
| No Description Set
|-
|-
| GetLevelSpecialValueFor
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]]
| <code>table GetLevelSpecialValueFor(string , int ) </code>
| <code>table GetLevelSpecialValueFor(string , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]]
| <code>int GetGoldCost(int ) </code>
| <code>int GetGoldCost(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetChanneling
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]]
| <code>void SetChanneling(bool ) </code>
| <code>void SetChanneling(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| SetInAbilityPhase
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]]
| <code>void SetInAbilityPhase(bool ) </code>
| <code>void SetInAbilityPhase(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| SetAbilityIndex
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]]
| <code>void SetAbilityIndex(int ) </code>
| <code>void SetAbilityIndex(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetAbilityTargetTeam
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetTeam | GetAbilityTargetTeam]]
| <code>int GetAbilityTargetTeam() </code>
| <code>int GetAbilityTargetTeam() </code>
| No Description Set
| No Description Set
|-
|-
| SpeakAbilityConcept
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]]
| <code>void SpeakAbilityConcept(int ) </code>
| <code>void SpeakAbilityConcept(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsCooldownReady
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCooldownReady | IsCooldownReady]]
| <code>bool IsCooldownReady() </code>
| <code>bool IsCooldownReady() </code>
| No Description Set
| No Description Set
|-
|-
| IsToggle
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsToggle | IsToggle]]
| <code>bool IsToggle() </code>
| <code>bool IsToggle() </code>
| No Description Set
| No Description Set
|-
|-
| GetCastPoint
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastPoint | GetCastPoint]]
| <code>float GetCastPoint() </code>
| <code>float GetCastPoint() </code>
| No Description Set
| No Description Set
|-
|-
| OnUpgrade
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnUpgrade | OnUpgrade]]
| <code>void OnUpgrade() </code>
| <code>void OnUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| GetLevel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevel | GetLevel]]
| <code>int GetLevel() </code>
| <code>int GetLevel() </code>
| Get the current level of the ability
| Get the current level of the ability
|-
|-
| GetSpecialValueFor
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]]
| <code>table GetSpecialValueFor(string ) </code>
| <code>table GetSpecialValueFor(string ) </code>
| No Description Set
| No Description Set
|-
|-
| DecrementModifierRefCount
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.DecrementModifierRefCount | DecrementModifierRefCount]]
| <code>void DecrementModifierRefCount() </code>
| <code>void DecrementModifierRefCount() </code>
| No Description Set
| No Description Set
|-
|-
| GetAbilityType
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityType | GetAbilityType]]
| <code>int GetAbilityType() </code>
| <code>int GetAbilityType() </code>
| No Description Set
| No Description Set
|-
|-
| UseResources
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]]
| <code>void UseResources(bool , bool , bool ) </code>
| <code>void UseResources(bool , bool , bool ) </code>
| No Description Set
| No Description Set
|-
|-
| IsAttributeBonus
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsAttributeBonus | IsAttributeBonus]]
| <code>bool IsAttributeBonus() </code>
| <code>bool IsAttributeBonus() </code>
| No Description Set
| No Description Set
|-
|-
| MarkAbilityButtonDirty
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.MarkAbilityButtonDirty | MarkAbilityButtonDirty]]
| <code>void MarkAbilityButtonDirty() </code>
| <code>void MarkAbilityButtonDirty() </code>
| Mark the ability button for this ability as needing a refresh
| Mark the ability button for this ability as needing a refresh
|-
|-
| OnChannelThink
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]]
| <code>void OnChannelThink(float ) </code>
| <code>void OnChannelThink(float ) </code>
| No Description Set
| No Description Set
|-
|-
| HeroXPChange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]]
| <code>bool HeroXPChange(float ) </code>
| <code>bool HeroXPChange(float ) </code>
| No Description Set
| No Description Set
|-
|-
| GetAbilityTargetFlags
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetFlags | GetAbilityTargetFlags]]
| <code>int GetAbilityTargetFlags() </code>
| <code>int GetAbilityTargetFlags() </code>
| No Description Set
| No Description Set
|-
|-
| OnHeroCalculateStatBonus
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroCalculateStatBonus | OnHeroCalculateStatBonus]]
| <code>void OnHeroCalculateStatBonus() </code>
| <code>void OnHeroCalculateStatBonus() </code>
| No Description Set
| No Description Set
|-
|-
| SetOverrideCastPoint
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint | SetOverrideCastPoint]]
| <code>void SetOverrideCastPoint(float ) </code>
| <code>void SetOverrideCastPoint(float ) </code>
| No Description Set
| No Description Set
|-
|-
| GetAbilityDamageType
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamageType | GetAbilityDamageType]]
| <code>int GetAbilityDamageType() </code>
| <code>int GetAbilityDamageType() </code>
| No Description Set
| No Description Set
|-
|-
| RefCountsModifiers
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefCountsModifiers | RefCountsModifiers]]
| <code>bool RefCountsModifiers() </code>
| <code>bool RefCountsModifiers() </code>
| No Description Set
| No Description Set
|-
|-
| CreateVisibilityNode
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]]
| <code>void CreateVisibilityNode(Vector , float , float ) </code>
| <code>void CreateVisibilityNode(Vector , float , float ) </code>
| No Description Set
| No Description Set
|-
|-
| ResetToggleOnRespawn
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ResetToggleOnRespawn | ResetToggleOnRespawn]]
| <code>bool ResetToggleOnRespawn() </code>
| <code>bool ResetToggleOnRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| GetPlaybackRateOverride
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetPlaybackRateOverride | GetPlaybackRateOverride]]
| <code>float GetPlaybackRateOverride() </code>
| <code>float GetPlaybackRateOverride() </code>
| No Description Set
| No Description Set
|-
|-
| IsStealable
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStealable | IsStealable]]
| <code>bool IsStealable() </code>
| <code>bool IsStealable() </code>
| No Description Set
| No Description Set
|-
|-
| EndChannel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]]
| <code>void EndChannel(bool ) </code>
| <code>void EndChannel(bool ) </code>
| Param: ''bool'' bInterrupted
| Param: ''bool'' bInterrupted
|-
|-
| GetGoldCostForUpgrade
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]]
| <code>int GetGoldCostForUpgrade(int ) </code>
| <code>int GetGoldCostForUpgrade(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetRefCountsModifiers
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]]
| <code>void SetRefCountsModifiers(bool ) </code>
| <code>void SetRefCountsModifiers(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| OnAbilityPhaseStart
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseStart | OnAbilityPhaseStart]]
| <code>bool OnAbilityPhaseStart() </code>
| <code>bool OnAbilityPhaseStart() </code>
| No Description Set
| No Description Set
|-
|-
| UpgradeAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UpgradeAbility | UpgradeAbility]]
| <code>void UpgradeAbility() </code>
| <code>void UpgradeAbility() </code>
| No Description Set
| No Description Set
|-
|-
| SetActivated
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]]
| <code>void SetActivated(bool ) </code>
| <code>void SetActivated(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| ShouldUseResources
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ShouldUseResources | ShouldUseResources]]
| <code>bool ShouldUseResources() </code>
| <code>bool ShouldUseResources() </code>
| No Description Set
| No Description Set
|-
|-
| GetAssociatedPrimaryAbilities
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedPrimaryAbilities | GetAssociatedPrimaryAbilities]]
| <code>string GetAssociatedPrimaryAbilities() </code>
| <code>string GetAssociatedPrimaryAbilities() </code>
| No Description Set
| No Description Set
|-
|-
| IsOwnersGoldEnoughForUpgrade
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnoughForUpgrade | IsOwnersGoldEnoughForUpgrade]]
| <code>bool IsOwnersGoldEnoughForUpgrade() </code>
| <code>bool IsOwnersGoldEnoughForUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| GetManaCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]]
| <code>int GetManaCost(int ) </code>
| <code>int GetManaCost(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetModifierValueBonus
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValueBonus | GetModifierValueBonus]]
| <code>float GetModifierValueBonus() </code>
| <code>float GetModifierValueBonus() </code>
| No Description Set
| No Description Set
|-
|-
| OnOwnerDied
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerDied | OnOwnerDied]]
| <code>void OnOwnerDied() </code>
| <code>void OnOwnerDied() </code>
| No Description Set
| No Description Set
|-
|-
| IsFullyCastable
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsFullyCastable | IsFullyCastable]]
| <code>bool IsFullyCastable() </code>
| <code>bool IsFullyCastable() </code>
| Returns whether the ability can be cast.
| Returns whether the ability can be cast.
|-
|-
| GetMaxLevel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetMaxLevel | GetMaxLevel]]
| <code>int GetMaxLevel() </code>
| <code>int GetMaxLevel() </code>
| No Description Set
| No Description Set
|-
|-
| PayGoldCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCost | PayGoldCost]]
| <code>void PayGoldCost() </code>
| <code>void PayGoldCost() </code>
| No Description Set
| No Description Set
|-
|-
| OnOwnerSpawned
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerSpawned | OnOwnerSpawned]]
| <code>void OnOwnerSpawned() </code>
| <code>void OnOwnerSpawned() </code>
| No Description Set
| No Description Set
|-
|-
| OnInventoryContentsChanged
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnInventoryContentsChanged | OnInventoryContentsChanged]]
| <code>void OnInventoryContentsChanged() </code>
| <code>void OnInventoryContentsChanged() </code>
| No Description Set
| No Description Set
|-
|-
| GetConceptRecipientType
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetConceptRecipientType | GetConceptRecipientType]]
| <code>int GetConceptRecipientType() </code>
| <code>int GetConceptRecipientType() </code>
| No Description Set
| No Description Set
|-
|-
| GetBehavior
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBehavior | GetBehavior]]
| <code>int GetBehavior() </code>
| <code>int GetBehavior() </code>
| No Description Set
| No Description Set
|-
|-
| GetCloneSource
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCloneSource | GetCloneSource]]
| <code>handle GetCloneSource() </code>
| <code>handle GetCloneSource() </code>
| No Description Set
| No Description Set
|-
|-
| GetSharedCooldownName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSharedCooldownName | GetSharedCooldownName]]
| <code>string GetSharedCooldownName() </code>
| <code>string GetSharedCooldownName() </code>
| No Description Set
| No Description Set
|-
|-
| ContinueCasting
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ContinueCasting | ContinueCasting]]
| <code>bool ContinueCasting() </code>
| <code>bool ContinueCasting() </code>
| No Description Set
| No Description Set
|-
|-
| GetAbilityDamage
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamage | GetAbilityDamage]]
| <code>int GetAbilityDamage() </code>
| <code>int GetAbilityDamage() </code>
| No Description Set
| No Description Set
|-
|-
| IsStolen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStolen | IsStolen]]
| <code>bool IsStolen() </code>
| <code>bool IsStolen() </code>
| No Description Set
| No Description Set
|-
|-
| IsOwnersManaEnough
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersManaEnough | IsOwnersManaEnough]]
| <code>bool IsOwnersManaEnough() </code>
| <code>bool IsOwnersManaEnough() </code>
| No Description Set
| No Description Set
|-
|-
| SetLevel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetLevel | SetLevel]]
| <code>void SetLevel(int ) </code>
| <code>void SetLevel(int ) </code>
| Sets the level of this ability.
| Sets the level of this ability.
|-
|-
| GetAbilityIndex
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityIndex | GetAbilityIndex]]
| <code>int GetAbilityIndex() </code>
| <code>int GetAbilityIndex() </code>
| No Description Set
| No Description Set
|-
|-
| NumModifiersUsingAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.NumModifiersUsingAbility | NumModifiersUsingAbility]]
| <code>int NumModifiersUsingAbility() </code>
| <code>int NumModifiersUsingAbility() </code>
| No Description Set
| No Description Set
|-
|-
| IsCosmetic
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCosmetic | IsCosmetic]]
| <code>bool IsCosmetic() </code>
| <code>bool IsCosmetic() </code>
| No Description Set
| No Description Set
|-
|-
| IsItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsItem | IsItem]]
| <code>bool IsItem() </code>
| <code>bool IsItem() </code>
| No Description Set
| No Description Set
|-
|-
| EndCooldown
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndCooldown | EndCooldown]]
| <code>void EndCooldown() </code>
| <code>void EndCooldown() </code>
| Clear the cooldown remaining on this ability.
| Clear the cooldown remaining on this ability.
|-
|-
| GetHeroLevelRequiredToUpgrade
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetHeroLevelRequiredToUpgrade | GetHeroLevelRequiredToUpgrade]]
| <code>int GetHeroLevelRequiredToUpgrade() </code>
| <code>int GetHeroLevelRequiredToUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| OnAbilityPinged
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPinged | OnAbilityPinged]]
| <code>void OnAbilityPinged() </code>
| <code>void OnAbilityPinged() </code>
| No Description Set
| No Description Set
|-
|-
| SetStolen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]]
| <code>void SetStolen(bool ) </code>
| <code>void SetStolen(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| GetAutoCastState
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAutoCastState | GetAutoCastState]]
| <code>bool GetAutoCastState() </code>
| <code>bool GetAutoCastState() </code>
| No Description Set
| No Description Set
|-
|-
| GetChannelTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelTime | GetChannelTime]]
| <code>float GetChannelTime() </code>
| <code>float GetChannelTime() </code>
| No Description Set
| No Description Set
|-
|-
| GetCaster
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCaster | GetCaster]]
| <code>handle GetCaster() </code>
| <code>handle GetCaster() </code>
| No Description Set
| No Description Set
|-
|-
| StartCooldown
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.StartCooldown | StartCooldown]]
| <code>void StartCooldown(float ) </code>
| <code>void StartCooldown(float ) </code>
| param: flCooldown
| param: flCooldown
|-
|-
| RefundManaCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefundManaCost | RefundManaCost]]
| <code>void RefundManaCost() </code>
| <code>void RefundManaCost() </code>
| No Description Set
| No Description Set
|-
|-
| IncrementModifierRefCount
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IncrementModifierRefCount | IncrementModifierRefCount]]
| <code>void IncrementModifierRefCount() </code>
| <code>void IncrementModifierRefCount() </code>
| No Description Set
| No Description Set
|-
|-
| IsTrained
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsTrained | IsTrained]]
| <code>bool IsTrained() </code>
| <code>bool IsTrained() </code>
| No Description Set
| No Description Set
|-
|-
| GetCursorTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTarget | GetCursorTarget]]
| <code>handle GetCursorTarget() </code>
| <code>handle GetCursorTarget() </code>
| No Description Set
| No Description Set
|-
|-
| OnToggle
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnToggle | OnToggle]]
| <code>void OnToggle() </code>
| <code>void OnToggle() </code>
| No Description Set
| No Description Set
Line 1,451: Line 1,450:
! Description  
! Description  
|-
|-
| SetPlaybackRate
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_Attack.SetPlaybackRate | SetPlaybackRate]]
| <code>void SetPlaybackRate(float ) </code>
| <code>void SetPlaybackRate(float ) </code>
| Override playbackrate
| Override playbackrate
Line 1,465: Line 1,464:
! Description  
! Description  
|-
|-
| SetPlaybackRate
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_TailSpin.SetPlaybackRate | SetPlaybackRate]]
| <code>void SetPlaybackRate(float ) </code>
| <code>void SetPlaybackRate(float ) </code>
| Override playbackrate
| Override playbackrate
Line 1,479: Line 1,478:
! Description  
! Description  
|-
|-
| SetPlaybackRate
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Leap.SetPlaybackRate | SetPlaybackRate]]
| <code>void SetPlaybackRate(float ) </code>
| <code>void SetPlaybackRate(float ) </code>
| Override playbackrate
| Override playbackrate
Line 1,493: Line 1,492:
! Description  
! Description  
|-
|-
| SetPlaybackRate
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Dive.SetPlaybackRate | SetPlaybackRate]]
| <code>void SetPlaybackRate(float ) </code>
| <code>void SetPlaybackRate(float ) </code>
| Override playbackrate
| Override playbackrate
Line 1,507: Line 1,506:
! Description  
! Description  
|-
|-
| GetCastCount
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Roar.GetCastCount | GetCastCount]]
| <code>int GetCastCount() </code>
| <code>int GetCastCount() </code>
| Number of times Nian has used the roar
| Number of times Nian has used the roar
Line 1,520: Line 1,519:
! Description  
! Description  
|-
|-
| GetPurchaseTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaseTime | GetPurchaseTime]]
| <code>float GetPurchaseTime() </code>
| <code>float GetPurchaseTime() </code>
| Get the purchase time of this item
| Get the purchase time of this item
|-
|-
| GetInitialCharges
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetInitialCharges | GetInitialCharges]]
| <code>int GetInitialCharges() </code>
| <code>int GetInitialCharges() </code>
| Get the initial number of charges this item has.
| Get the initial number of charges this item has.
|-
|-
| GetContainer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetContainer | GetContainer]]
| <code>handle GetContainer() </code>
| <code>handle GetContainer() </code>
| Get the container for this item.
| Get the container for this item.
|-
|-
| SetPurchaseTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaseTime | SetPurchaseTime]]
| <code>void SetPurchaseTime(float ) </code>
| <code>void SetPurchaseTime(float ) </code>
| Set the purchase time of this item
| Set the purchase time of this item
|-
|-
| Think
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.Think | Think]]
| <code>void Think() </code>
| <code>void Think() </code>
| Think this item
| Think this item
|-
|-
| LaunchLoot
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot | LaunchLoot]]
| <code>void LaunchLoot(bool , float , float , Vector ) </code>
| <code>void LaunchLoot(bool , float , float , Vector ) </code>
| No Description Set
| No Description Set
|-
|-
| SetPurchaser
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaser | SetPurchaser]]
| <code>void SetPurchaser(handle ) </code>
| <code>void SetPurchaser(handle ) </code>
| Set the purchaser of record for this item.
| Set the purchaser of record for this item.
|-
|-
| GetCurrentCharges
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCurrentCharges | GetCurrentCharges]]
| <code>int GetCurrentCharges() </code>
| <code>int GetCurrentCharges() </code>
| Get the number of charges this item currently has.
| Get the number of charges this item currently has.
|-
|-
| GetPurchaser
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaser | GetPurchaser]]
| <code>handle GetPurchaser() </code>
| <code>handle GetPurchaser() </code>
| Get the purchaser for this item.
| Get the purchaser for this item.
|-
|-
| GetShareability
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetShareability | GetShareability]]
| <code>int GetShareability() </code>
| <code>int GetShareability() </code>
| No Description Set
| No Description Set
|-
|-
| GetCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCost | GetCost]]
| <code>int GetCost() </code>
| <code>int GetCost() </code>
| No Description Set
| No Description Set
|-
|-
| SetCurrentCharges
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetCurrentCharges | SetCurrentCharges]]
| <code>void SetCurrentCharges(int ) </code>
| <code>void SetCurrentCharges(int ) </code>
| Set the number of charges on this item
| Set the number of charges on this item
|-
|-
| IsPermanent
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.IsPermanent | IsPermanent]]
| <code>bool IsPermanent() </code>
| <code>bool IsPermanent() </code>
| Is this a permanent item?
| Is this a permanent item?
|-
|-
| StacksWithOtherOwners
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.StacksWithOtherOwners | StacksWithOtherOwners]]
| <code>bool StacksWithOtherOwners() </code>
| <code>bool StacksWithOtherOwners() </code>
| No Description Set
| No Description Set
|-
|-
| SetStacksWithOtherOwners
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetStacksWithOtherOwners | SetStacksWithOtherOwners]]
| <code>void SetStacksWithOtherOwners(bool ) </code>
| <code>void SetStacksWithOtherOwners(bool ) </code>
| No Description Set
| No Description Set
Line 1,589: Line 1,588:
! Description  
! Description  
|-
|-
| GetCreationTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetCreationTime | GetCreationTime]]
| <code>float GetCreationTime() </code>
| <code>float GetCreationTime() </code>
| Returns the game time when this item was created in the world
| Returns the game time when this item was created in the world
|-
|-
| SetContainedItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.SetContainedItem | SetContainedItem]]
| <code>void SetContainedItem(handle ) </code>
| <code>void SetContainedItem(handle ) </code>
| Set the contained item.
| Set the contained item.
|-
|-
| GetContainedItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetContainedItem | GetContainedItem]]
| <code>handle GetContainedItem() </code>
| <code>handle GetContainedItem() </code>
| Returned the contained item.
| Returned the contained item.
Line 1,610: Line 1,609:
! Description  
! Description  
|-
|-
| ApplyDataDrivenModifier
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_DataDriven.ApplyDataDrivenModifier | ApplyDataDrivenModifier]]
| <code>void ApplyDataDrivenModifier(handle , handle , string , handle ) </code>
| <code>void ApplyDataDrivenModifier(handle , handle , string , handle ) </code>
| Applies a data driven modifier to the target
| Applies a data driven modifier to the target
Line 1,623: Line 1,622:
! Description  
! Description  
|-
|-
| GetTail
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetTail | GetTail]]
| <code>handle GetTail() </code>
| <code>handle GetTail() </code>
| Is the Nian's tail broken?
| Is the Nian's tail broken?
|-
|-
| IsTailAlive
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsTailAlive | IsTailAlive]]
| <code>bool IsTailAlive() </code>
| <code>bool IsTailAlive() </code>
| Is the Nian's tail broken?
| Is the Nian's tail broken?
|-
|-
| IsHornAlive
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsHornAlive | IsHornAlive]]
| <code>bool IsHornAlive() </code>
| <code>bool IsHornAlive() </code>
| Is the Nian's horn broken?
| Is the Nian's horn broken?
|-
|-
| GetHorn
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetHorn | GetHorn]]
| <code>handle GetHorn() </code>
| <code>handle GetHorn() </code>
| Is the Nian horn?
| Is the Nian horn?
Line 1,648: Line 1,647:
! Description  
! Description  
|-
|-
| IsNoclipping
| [[Dota 2 Workshop Tools/Scripting/API/CBasePlayer.IsNoclipping | IsNoclipping]]
| <code>bool IsNoclipping() </code>
| <code>bool IsNoclipping() </code>
| Returns true if the player is in noclip mode.
| Returns true if the player is in noclip mode.
Line 1,661: Line 1,660:
! Description  
! Description  
|-
|-
| GetControlledRPGUnit
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetControlledRPGUnit | GetControlledRPGUnit]]
| <code>handle GetControlledRPGUnit() </code>
| <code>handle GetControlledRPGUnit() </code>
| Get the RPG unit this player controls.
| Get the RPG unit this player controls.
|-
|-
| GetAssignedHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetAssignedHero | GetAssignedHero]]
| <code>handle GetAssignedHero() </code>
| <code>handle GetAssignedHero() </code>
| Get the player's hero.
| Get the player's hero.
|-
|-
| GetPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetPlayerID | GetPlayerID]]
| <code>int GetPlayerID() </code>
| <code>int GetPlayerID() </code>
| Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
| Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
|-
|-
| SetKillCamUnit
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit | SetKillCamUnit]]
| <code>void SetKillCamUnit(handle ) </code>
| <code>void SetKillCamUnit(handle ) </code>
| Set the kill cam unit for this hero.
| Set the kill cam unit for this hero.
|-
|-
| SetMusicStatus
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetMusicStatus | SetMusicStatus]]
| <code>void SetMusicStatus(int , float ) </code>
| <code>void SetMusicStatus(int , float ) </code>
| (nMusicStatus, flIntensity) - Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.
| (nMusicStatus, flIntensity) - Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.
|-
|-
| MakeRandomHeroSelection
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.MakeRandomHeroSelection | MakeRandomHeroSelection]]
| <code>void MakeRandomHeroSelection() </code>
| <code>void MakeRandomHeroSelection() </code>
| Randoms this player's hero.
| Randoms this player's hero.
Line 1,696: Line 1,695:
! Description  
! Description  
|-
|-
| GetDenies
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies | GetDenies]]
| <code>int GetDenies(int ) </code>
| <code>int GetDenies(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldSpentOnConsumables
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnConsumables | GetGoldSpentOnConsumables]]
| <code>int GetGoldSpentOnConsumables(int ) </code>
| <code>int GetGoldSpentOnConsumables(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetPlayerReservedState
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerReservedState | GetPlayerReservedState]]
| <code>bool GetPlayerReservedState(int ) </code>
| <code>bool GetPlayerReservedState(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetEventPremiumPointsGranted
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPremiumPointsGranted | GetEventPremiumPointsGranted]]
| <code>int GetEventPremiumPointsGranted(int ) </code>
| <code>int GetEventPremiumPointsGranted(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsValidPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayerID | IsValidPlayerID]]
| <code>bool IsValidPlayerID(int playerID) </code>
| <code>bool IsValidPlayerID(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| GetTeam
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeam | GetTeam]]
| <code>int GetTeam(int ) </code>
| <code>int GetTeam(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetNthPlayerIDOnTeam
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthPlayerIDOnTeam | GetNthPlayerIDOnTeam]]
| <code>int GetNthPlayerIDOnTeam(int , int ) </code>
| <code>int GetNthPlayerIDOnTeam(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetCustomBuybackCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCost | GetCustomBuybackCost]]
| <code>int GetCustomBuybackCost(int ) </code>
| <code>int GetCustomBuybackCost(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsValidTeamPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayer | IsValidTeamPlayer]]
| <code>bool IsValidTeamPlayer(int playerID) </code>
| <code>bool IsValidTeamPlayer(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| GetPlayerName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerName | GetPlayerName]]
| <code>string GetPlayerName(int ) </code>
| <code>string GetPlayerName(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetEventPointsForPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPointsForPlayerID | GetEventPointsForPlayerID]]
| <code>int GetEventPointsForPlayerID(int ) </code>
| <code>int GetEventPointsForPlayerID(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetCustomBuybackCooldown
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCooldown | SetCustomBuybackCooldown]]
| <code>void SetCustomBuybackCooldown(int , float ) </code>
| <code>void SetCustomBuybackCooldown(int , float ) </code>
| Set the buyback cooldown for this player.
| Set the buyback cooldown for this player.
|-
|-
| GetTowerDamageTaken
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken | GetTowerDamageTaken]]
| <code>int GetTowerDamageTaken(int ) </code>
| <code>int GetTowerDamageTaken(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetAegisPickups
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAegisPickups | GetAegisPickups]]
| <code>int GetAegisPickups(int ) </code>
| <code>int GetAegisPickups(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetHasRandomed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRandomed | SetHasRandomed]]
| <code>void SetHasRandomed(int playerID) </code>
| <code>void SetHasRandomed(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| SetCameraTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCameraTarget | SetCameraTarget]]
| <code>void SetCameraTarget(int , handle ) </code>
| <code>void SetCameraTarget(int , handle ) </code>
| (playerID, entity) - force the given player's camera to follow the given entity
| (playerID, entity) - force the given player's camera to follow the given entity
|-
|-
| IncrementLastHitMultikill
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| <code>void IncrementLastHitMultikill(int ) </code>
| <code>void IncrementLastHitMultikill(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetEventRankGranted
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventRankGranted | GetEventRankGranted]]
| <code>int GetEventRankGranted(int ) </code>
| <code>int GetEventRankGranted(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsDisableHelpSetForPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsDisableHelpSetForPlayerID | IsDisableHelpSetForPlayerID]]
| <code>bool IsDisableHelpSetForPlayerID(int , int ) </code>
| <code>bool IsDisableHelpSetForPlayerID(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetRoshanKills
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRoshanKills | GetRoshanKills]]
| <code>int GetRoshanKills(int ) </code>
| <code>int GetRoshanKills(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetMisses
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses | GetMisses]]
| <code>int GetMisses(int ) </code>
| <code>int GetMisses(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetCustomBuybackCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCost | SetCustomBuybackCost]]
| <code>void SetCustomBuybackCost(int , int ) </code>
| <code>void SetCustomBuybackCost(int , int ) </code>
| Set the buyback cost for this player.
| Set the buyback cost for this player.
|-
|-
| ReplaceHeroWith
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ReplaceHeroWith | ReplaceHeroWith]]
| <code>handle ReplaceHeroWith(int , string , int , int ) </code>
| <code>handle ReplaceHeroWith(int , string , int , int ) </code>
| (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
| (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
|-
|-
| GetClaimedDenies
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies | GetClaimedDenies]]
| <code>int GetClaimedDenies(int ) </code>
| <code>int GetClaimedDenies(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementTotalEarnedXP
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementTotalEarnedXP | IncrementTotalEarnedXP]]
| <code>void IncrementTotalEarnedXP(int , int ) </code>
| <code>void IncrementTotalEarnedXP(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetLastHits
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHits | GetLastHits]]
| <code>int GetLastHits(int ) </code>
| <code>int GetLastHits(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsValidPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayer | IsValidPlayer]]
| <code>bool IsValidPlayer(int playerID) </code>
| <code>bool IsValidPlayer(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| SetBuybackGoldLimitTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| <code>void SetBuybackGoldLimitTime(int , float ) </code>
| <code>void SetBuybackGoldLimitTime(int , float ) </code>
| No Description Set
| No Description Set
|-
|-
| SetBuybackCooldownTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| <code>void SetBuybackCooldownTime(int , float ) </code>
| <code>void SetBuybackCooldownTime(int , float ) </code>
| No Description Set
| No Description Set
|-
|-
| ClearLastHitMultikill
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitMultikill | ClearLastHitMultikill]]
| <code>void ClearLastHitMultikill(int ) </code>
| <code>void ClearLastHitMultikill(int ) </code>
| No Description Set
| No Description Set
|-
|-
| ModifyGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold | ModifyGold]]
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int ) </code>
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetNthCourierForTeam
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthCourierForTeam | GetNthCourierForTeam]]
| <code>handle GetNthCourierForTeam(int , int ) </code>
| <code>handle GetNthCourierForTeam(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldSpentOnSupport
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnSupport | GetGoldSpentOnSupport]]
| <code>int GetGoldSpentOnSupport(int ) </code>
| <code>int GetGoldSpentOnSupport(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetNumCouriersForTeam
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumCouriersForTeam | GetNumCouriersForTeam]]
| <code>int GetNumCouriersForTeam(int ) </code>
| <code>int GetNumCouriersForTeam(int ) </code>
| No Description Set
| No Description Set
|-
|-
| AddRunePickup
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddRunePickup | AddRunePickup]]
| <code>void AddRunePickup(int ) </code>
| <code>void AddRunePickup(int ) </code>
| No Description Set
| No Description Set
|-
|-
| AreUnitsSharedWithPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AreUnitsSharedWithPlayerID | AreUnitsSharedWithPlayerID]]
| <code>bool AreUnitsSharedWithPlayerID(int , int ) </code>
| <code>bool AreUnitsSharedWithPlayerID(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetUnitShareMaskForPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetUnitShareMaskForPlayer | SetUnitShareMaskForPlayer]]
| <code>void SetUnitShareMaskForPlayer(int , int , int , bool ) </code>
| <code>void SetUnitShareMaskForPlayer(int , int , int , bool ) </code>
| No Description Set
| No Description Set
|-
|-
| IsHeroSharedWithPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSharedWithPlayerID | IsHeroSharedWithPlayerID]]
| <code>bool IsHeroSharedWithPlayerID(int , int ) </code>
| <code>bool IsHeroSharedWithPlayerID(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetUnitShareMaskForPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnitShareMaskForPlayer | GetUnitShareMaskForPlayer]]
| <code>int GetUnitShareMaskForPlayer(int , int ) </code>
| <code>int GetUnitShareMaskForPlayer(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetSteamAccountID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSteamAccountID | GetSteamAccountID]]
| <code><> GetSteamAccountID(int ) </code>
| <code><> GetSteamAccountID(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetCreepDamageTaken
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCreepDamageTaken | GetCreepDamageTaken]]
| <code>int GetCreepDamageTaken(int ) </code>
| <code>int GetCreepDamageTaken(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetLastBuybackTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime | SetLastBuybackTime]]
| <code>void SetLastBuybackTime(int , int ) </code>
| <code>void SetLastBuybackTime(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTimeOfLastConsumablePurchase
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastConsumablePurchase | GetTimeOfLastConsumablePurchase]]
| <code>float GetTimeOfLastConsumablePurchase(int ) </code>
| <code>float GetTimeOfLastConsumablePurchase(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTimeOfLastItemPurchase
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastItemPurchase | GetTimeOfLastItemPurchase]]
| <code>float GetTimeOfLastItemPurchase(int ) </code>
| <code>float GetTimeOfLastItemPurchase(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGold | GetGold]]
| <code>int GetGold(int ) </code>
| <code>int GetGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
| HeroLevelUp
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp | HeroLevelUp]]
| <code>void HeroLevelUp(int ) </code>
| <code>void HeroLevelUp(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetConnectionState
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetConnectionState | GetConnectionState]]
| <code><> GetConnectionState(int ) </code>
| <code><> GetConnectionState(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetCustomBuybackCooldown
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCooldown | GetCustomBuybackCooldown]]
| <code>float GetCustomBuybackCooldown(int ) </code>
| <code>float GetCustomBuybackCooldown(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetPlayerReservedState
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetPlayerReservedState | SetPlayerReservedState]]
| <code>void SetPlayerReservedState(int , bool ) </code>
| <code>void SetPlayerReservedState(int , bool ) </code>
| No Description Set
| No Description Set
|-
|-
| GetRawPlayerDamage
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRawPlayerDamage | GetRawPlayerDamage]]
| <code>int GetRawPlayerDamage(int ) </code>
| <code>int GetRawPlayerDamage(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementStreak | IncrementStreak]]
| <code>void IncrementStreak(int ) </code>
| <code>void IncrementStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementClaimedMisses
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedMisses | IncrementClaimedMisses]]
| <code>void IncrementClaimedMisses(int ) </code>
| <code>void IncrementClaimedMisses(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTotalEarnedXP
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedXP | GetTotalEarnedXP]]
| <code>int GetTotalEarnedXP(int ) </code>
| <code>int GetTotalEarnedXP(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldSpentOnItems
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnItems | GetGoldSpentOnItems]]
| <code>int GetGoldSpentOnItems(int ) </code>
| <code>int GetGoldSpentOnItems(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetSelectedHeroName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroName | GetSelectedHeroName]]
| <code>string GetSelectedHeroName(int ) </code>
| <code>string GetSelectedHeroName(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetRespawnSeconds
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRespawnSeconds | GetRespawnSeconds]]
| <code>int GetRespawnSeconds(int ) </code>
| <code>int GetRespawnSeconds(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetPlayerLoadedCompletely
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely | GetPlayerLoadedCompletely]]
| <code>bool GetPlayerLoadedCompletely(int ) </code>
| <code>bool GetPlayerLoadedCompletely(int ) </code>
| No Description Set
| No Description Set
|-
|-
| HaveAllPlayersJoined
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HaveAllPlayersJoined | HaveAllPlayersJoined]]
| <code>bool HaveAllPlayersJoined() </code>
| <code>bool HaveAllPlayersJoined() </code>
| No Description Set
| No Description Set
|-
|-
| IsFakeClient
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsFakeClient | IsFakeClient]]
| <code>bool IsFakeClient(int ) </code>
| <code>bool IsFakeClient(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetDamageDoneToHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDamageDoneToHero | GetDamageDoneToHero]]
| <code>int GetDamageDoneToHero(int , int ) </code>
| <code>int GetDamageDoneToHero(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsHeroSelected
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSelected | IsHeroSelected]]
| <code>bool IsHeroSelected(string ) </code>
| <code>bool IsHeroSelected(string ) </code>
| No Description Set
| No Description Set
|-
|-
| GetBroadcasterChannelSlot
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannelSlot | GetBroadcasterChannelSlot]]
| <code><> GetBroadcasterChannelSlot(int ) </code>
| <code><> GetBroadcasterChannelSlot(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetBroadcasterChannel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannel | GetBroadcasterChannel]]
| <code><> GetBroadcasterChannel(int ) </code>
| <code><> GetBroadcasterChannel(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetLevel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLevel | GetLevel]]
| <code>int GetLevel(int playerID) </code>
| <code>int GetLevel(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| HasRandomed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRandomed | HasRandomed]]
| <code>bool HasRandomed(int ) </code>
| <code>bool HasRandomed(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTeamKills
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeamKills | GetTeamKills]]
| <code>int GetTeamKills(int ) </code>
| <code>int GetTeamKills(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsBroadcaster
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsBroadcaster | IsBroadcaster]]
| <code>bool IsBroadcaster(int ) </code>
| <code>bool IsBroadcaster(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsValidTeamPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayerID | IsValidTeamPlayerID]]
| <code>bool IsValidTeamPlayerID(int playerID) </code>
| <code>bool IsValidTeamPlayerID(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| SpendGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SpendGold | SpendGold]]
| <code>void SpendGold(int , int , int ) </code>
| <code>void SpendGold(int , int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetHealing
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHealing | GetHealing]]
| <code>float GetHealing(int ) </code>
| <code>float GetHealing(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementLastHits
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHits | IncrementLastHits]]
| <code>void IncrementLastHits(int ) </code>
| <code>void IncrementLastHits(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementMisses
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses | IncrementMisses]]
| <code>void IncrementMisses(int ) </code>
| <code>void IncrementMisses(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTotalGoldSpent
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalGoldSpent | GetTotalGoldSpent]]
| <code>int GetTotalGoldSpent(int ) </code>
| <code>int GetTotalGoldSpent(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementClaimedDenies
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies | IncrementClaimedDenies]]
| <code>void IncrementClaimedDenies(int ) </code>
| <code>void IncrementClaimedDenies(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayer | GetPlayer]]
| <code>handle GetPlayer(int ) </code>
| <code>handle GetPlayer(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementDenies
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies | IncrementDenies]]
| <code>void IncrementDenies(int ) </code>
| <code>void IncrementDenies(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetGold | SetGold]]
| <code>void SetGold(int , int , bool ) </code>
| <code>void SetGold(int , int , bool ) </code>
| No Description Set
| No Description Set
|-
|-
| GetXPPerMin
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetXPPerMin | GetXPPerMin]]
| <code>float GetXPPerMin(int ) </code>
| <code>float GetXPPerMin(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTimeOfLastDeath
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath | GetTimeOfLastDeath]]
| <code>float GetTimeOfLastDeath(int ) </code>
| <code>float GetTimeOfLastDeath(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldBagsCollected
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldBagsCollected | GetGoldBagsCollected]]
| <code>int GetGoldBagsCollected(int ) </code>
| <code>int GetGoldBagsCollected(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetUnreliableGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnreliableGold | GetUnreliableGold]]
| <code>int GetUnreliableGold(int ) </code>
| <code>int GetUnreliableGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetAssists
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAssists | GetAssists]]
| <code>int GetAssists(int ) </code>
| <code>int GetAssists(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldPerMin
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldPerMin | GetGoldPerMin]]
| <code>float GetGoldPerMin(int ) </code>
| <code>float GetGoldPerMin(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetDeaths
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDeaths | GetDeaths]]
| <code>int GetDeaths(int ) </code>
| <code>int GetDeaths(int ) </code>
| No Description Set
| No Description Set
|-
|-
| WhoSelectedHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.WhoSelectedHero | WhoSelectedHero]]
| <code>int WhoSelectedHero(string ) </code>
| <code>int WhoSelectedHero(string ) </code>
| No Description Set
| No Description Set
|-
|-
| GetLastHitMultikill
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitMultikill | GetLastHitMultikill]]
| <code>int GetLastHitMultikill(int ) </code>
| <code>int GetLastHitMultikill(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementKills
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementKills | IncrementKills]]
| <code>void IncrementKills(int playerID, int kills) </code>
| <code>void IncrementKills(int playerID, int kills) </code>
| No Description Set
| No Description Set
|-
|-
| GetLastHitStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitStreak | GetLastHitStreak]]
| <code>int GetLastHitStreak(int ) </code>
| <code>int GetLastHitStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementAssists
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementAssists | IncrementAssists]]
| <code>void IncrementAssists(int playerID) </code>
| <code>void IncrementAssists(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementLastHitStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitStreak | IncrementLastHitStreak]]
| <code>void IncrementLastHitStreak(int ) </code>
| <code>void IncrementLastHitStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| ClearLastHitStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak | ClearLastHitStreak]]
| <code>void ClearLastHitStreak(int ) </code>
| <code>void ClearLastHitStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetKills
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills | GetKills]]
| <code>int GetKills(int ) </code>
| <code>int GetKills(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementNearbyCreepDeaths
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
| <code>void IncrementNearbyCreepDeaths(int ) </code>
| <code>void IncrementNearbyCreepDeaths(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTotalEarnedGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold | GetTotalEarnedGold]]
| <code>int GetTotalEarnedGold(int ) </code>
| <code>int GetTotalEarnedGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementGoldBagsCollected
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementGoldBagsCollected | IncrementGoldBagsCollected]]
| <code>void IncrementGoldBagsCollected(int ) </code>
| <code>void IncrementGoldBagsCollected(int ) </code>
| No Description Set
| No Description Set
|-
|-
| ResetBuybackCostTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetBuybackCostTime | ResetBuybackCostTime]]
| <code>void ResetBuybackCostTime(int ) </code>
| <code>void ResetBuybackCostTime(int ) </code>
| No Description Set
| No Description Set
|-
|-
| UpdateTeamSlot
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.UpdateTeamSlot | UpdateTeamSlot]]
| <code>void UpdateTeamSlot(int , int ) </code>
| <code>void UpdateTeamSlot(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldSpentOnBuybacks
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnBuybacks | GetGoldSpentOnBuybacks]]
| <code>int GetGoldSpentOnBuybacks(int ) </code>
| <code>int GetGoldSpentOnBuybacks(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetStuns
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStuns | GetStuns]]
| <code>float GetStuns(int ) </code>
| <code>float GetStuns(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetSelectedHeroEntity
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroEntity | GetSelectedHeroEntity]]
| <code>handle GetSelectedHeroEntity(int ) </code>
| <code>handle GetSelectedHeroEntity(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetClaimedMisses
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedMisses | GetClaimedMisses]]
| <code>int GetClaimedMisses(int ) </code>
| <code>int GetClaimedMisses(int ) </code>
| No Description Set
| No Description Set
|-
|-
| HasSelectedHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero | HasSelectedHero]]
| <code>bool HasSelectedHero(int ) </code>
| <code>bool HasSelectedHero(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetNearbyCreepDeaths
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNearbyCreepDeaths | GetNearbyCreepDeaths]]
| <code>int GetNearbyCreepDeaths(int ) </code>
| <code>int GetNearbyCreepDeaths(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetNumConsumablesPurchased
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumConsumablesPurchased | GetNumConsumablesPurchased]]
| <code>int GetNumConsumablesPurchased(int ) </code>
| <code>int GetNumConsumablesPurchased(int ) </code>
| No Description Set
| No Description Set
|-
|-
| ClearRawPlayerDamageMatrix
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearRawPlayerDamageMatrix | ClearRawPlayerDamageMatrix]]
| <code>void ClearRawPlayerDamageMatrix(int ) </code>
| <code>void ClearRawPlayerDamageMatrix(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStreak | GetStreak]]
| <code>int GetStreak(int ) </code>
| <code>int GetStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetKillsDoneToHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero | GetKillsDoneToHero]]
| <code>int GetKillsDoneToHero(int , int ) </code>
| <code>int GetKillsDoneToHero(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetTowerKills
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerKills | GetTowerKills]]
| <code>int GetTowerKills(int ) </code>
| <code>int GetTowerKills(int ) </code>
| No Description Set
| No Description Set
|-
|-
| AddAegisPickup
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup | AddAegisPickup]]
| <code>void AddAegisPickup(int ) </code>
| <code>void AddAegisPickup(int ) </code>
| No Description Set
| No Description Set
|-
|-
| AddClaimedFarm
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddClaimedFarm | AddClaimedFarm]]
| <code>void AddClaimedFarm(int , float ) </code>
| <code>void AddClaimedFarm(int , float ) </code>
| No Description Set
| No Description Set
|-
|-
| ResetTotalEarnedGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetTotalEarnedGold | ResetTotalEarnedGold]]
| <code>void ResetTotalEarnedGold(int ) </code>
| <code>void ResetTotalEarnedGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetHeroDamageTaken
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHeroDamageTaken | GetHeroDamageTaken]]
| <code>int GetHeroDamageTaken(int ) </code>
| <code>int GetHeroDamageTaken(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementDeaths
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDeaths | IncrementDeaths]]
| <code>void IncrementDeaths(int playerID) </code>
| <code>void IncrementDeaths(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| AddGoldSpentOnSupport
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddGoldSpentOnSupport | AddGoldSpentOnSupport]]
| <code>void AddGoldSpentOnSupport(int , int ) </code>
| <code>void AddGoldSpentOnSupport(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetSelectedHeroID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroID | GetSelectedHeroID]]
| <code>int GetSelectedHeroID(int ) </code>
| <code>int GetSelectedHeroID(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetRunePickups
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRunePickups | GetRunePickups]]
| <code>int GetRunePickups(int ) </code>
| <code>int GetRunePickups(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetNumItemsPurchased
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumItemsPurchased | GetNumItemsPurchased]]
| <code>int GetNumItemsPurchased(int ) </code>
| <code>int GetNumItemsPurchased(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetClaimedFarm
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedFarm | GetClaimedFarm]]
| <code>float GetClaimedFarm(int ) </code>
| <code>float GetClaimedFarm(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetReliableGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetReliableGold | GetReliableGold]]
| <code>int GetReliableGold(int ) </code>
| <code>int GetReliableGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
| HasRepicked
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRepicked | HasRepicked]]
| <code>bool HasRepicked(int playerID) </code>
| <code>bool HasRepicked(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| SetHasRepicked
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRepicked | SetHasRepicked]]
| <code>void SetHasRepicked(int playerID) </code>
| <code>void SetHasRepicked(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| ClearStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak | ClearStreak]]
| <code>void ClearStreak(int ) </code>
| <code>void ClearStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldLostToDeath
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath | GetGoldLostToDeath]]
| <code>int GetGoldLostToDeath(int ) </code>
| <code>int GetGoldLostToDeath(int ) </code>
| No Description Set
| No Description Set
|-
|-
| ClearKillsMatrix
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearKillsMatrix | ClearKillsMatrix]]
| <code>void ClearKillsMatrix(int ) </code>
| <code>void ClearKillsMatrix(int ) </code>
| No Description Set
| No Description Set
Line 2,201: Line 2,200:
! Description  
! Description  
|-
|-
| ForceKill
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ForceKill | ForceKill]]
| <code>void ForceKill(bool ) </code>
| <code>void ForceKill(bool ) </code>
| Kill this unit immediately.
| Kill this unit immediately.
|-
|-
| GetAbilityCount
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityCount | GetAbilityCount]]
| <code>int GetAbilityCount() </code>
| <code>int GetAbilityCount() </code>
| No Description Set
| No Description Set
|-
|-
| GetAdditionalBattleMusicWeight
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAdditionalBattleMusicWeight | GetAdditionalBattleMusicWeight]]
| <code>float GetAdditionalBattleMusicWeight() </code>
| <code>float GetAdditionalBattleMusicWeight() </code>
| Combat involving this creature will have this weight added to the music calcuations
| Combat involving this creature will have this weight added to the music calcuations
|-
|-
| GetPlayerOwnerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwnerID | GetPlayerOwnerID]]
| <code>int GetPlayerOwnerID() </code>
| <code>int GetPlayerOwnerID() </code>
| Get the owner player ID for this unit.
| Get the owner player ID for this unit.
|-
|-
| EjectItemFromStash
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.EjectItemFromStash | EjectItemFromStash]]
| <code>void EjectItemFromStash(handle ) </code>
| <code>void EjectItemFromStash(handle ) </code>
| Drops the selected item out of this unit's stash.
| Drops the selected item out of this unit's stash.
|-
|-
| GetBaseDayTimeVisionRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDayTimeVisionRange | GetBaseDayTimeVisionRange]]
| <code>int GetBaseDayTimeVisionRange() </code>
| <code>int GetBaseDayTimeVisionRange() </code>
| Returns the vision range before modifiers.
| Returns the vision range before modifiers.
|-
|-
| IsMuted
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMuted | IsMuted]]
| <code>bool IsMuted() </code>
| <code>bool IsMuted() </code>
| No Description Set
| No Description Set
|-
|-
| IsAttackingEntity
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity | IsAttackingEntity]]
| <code>bool IsAttackingEntity(handle ) </code>
| <code>bool IsAttackingEntity(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| IsMechanical
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMechanical | IsMechanical]]
| <code>bool IsMechanical() </code>
| <code>bool IsMechanical() </code>
| Is the unit mechanical?
| Is the unit mechanical?
|-
|-
| IsRealHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRealHero | IsRealHero]]
| <code>bool IsRealHero() </code>
| <code>bool IsRealHero() </code>
| Returns true if the hero is a true Hero, not a creep or an Illusion of a hero
| Returns true if the hero is a true Hero, not a creep or an Illusion of a hero
|-
|-
| SetDayTimeVisionRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDayTimeVisionRange | SetDayTimeVisionRange]]
| <code>void SetDayTimeVisionRange(int ) </code>
| <code>void SetDayTimeVisionRange(int ) </code>
| Set the base vision range.
| Set the base vision range.
|-
|-
| GetModelRadius
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModelRadius | GetModelRadius]]
| <code>float GetModelRadius() </code>
| <code>float GetModelRadius() </code>
| No Description Set
| No Description Set
|-
|-
| GetAverageTrueAttackDamage
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAverageTrueAttackDamage | GetAverageTrueAttackDamage]]
| <code>int GetAverageTrueAttackDamage() </code>
| <code>int GetAverageTrueAttackDamage() </code>
| Returns the average value of the minimum and maximum damage values.
| Returns the average value of the minimum and maximum damage values.
|-
|-
| RemoveModifierByName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByName | RemoveModifierByName]]
| <code>void RemoveModifierByName(string ) </code>
| <code>void RemoveModifierByName(string ) </code>
| Removes a modifier
| Removes a modifier
|-
|-
| DropItemAtPositionImmediate
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPositionImmediate | DropItemAtPositionImmediate]]
| <code>void DropItemAtPositionImmediate(handle , Vector ) </code>
| <code>void DropItemAtPositionImmediate(handle , Vector ) </code>
| Immediately drop a carried item at a given position.
| Immediately drop a carried item at a given position.
|-
|-
| GetPaddedCollisionRadius
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPaddedCollisionRadius | GetPaddedCollisionRadius]]
| <code>float GetPaddedCollisionRadius() </code>
| <code>float GetPaddedCollisionRadius() </code>
| Get the collision hull radius (including padding) of this NPC
| Get the collision hull radius (including padding) of this NPC
|-
|-
| GetAttackSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackSpeed | GetAttackSpeed]]
| <code>float GetAttackSpeed() </code>
| <code>float GetAttackSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| GetManaRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaRegen | GetManaRegen]]
| <code>float GetManaRegen() </code>
| <code>float GetManaRegen() </code>
| No Description Set
| No Description Set
|-
|-
| MoveToTargetToAttack
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToTargetToAttack | MoveToTargetToAttack]]
| <code>void MoveToTargetToAttack(handle ) </code>
| <code>void MoveToTargetToAttack(handle ) </code>
| Move to a target to attack.
| Move to a target to attack.
|-
|-
| IsDeniable
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDeniable | IsDeniable]]
| <code>bool IsDeniable() </code>
| <code>bool IsDeniable() </code>
| No Description Set
| No Description Set
|-
|-
| SetHullRadius
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHullRadius | SetHullRadius]]
| <code>void SetHullRadius(float ) </code>
| <code>void SetHullRadius(float ) </code>
| Set the collision hull radius of this NPC
| Set the collision hull radius of this NPC
|-
|-
| GetAttackRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRange | GetAttackRange]]
| <code>float GetAttackRange() </code>
| <code>float GetAttackRange() </code>
| Gets this unit's attack range after all modifiers.
| Gets this unit's attack range after all modifiers.
|-
|-
| SetMana
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMana | SetMana]]
| <code>void SetMana(float ) </code>
| <code>void SetMana(float ) </code>
| Set the mana on this unit.
| Set the mana on this unit.
|-
|-
| GetInitialGoalEntity
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetInitialGoalEntity | GetInitialGoalEntity]]
| <code>handle GetInitialGoalEntity() </code>
| <code>handle GetInitialGoalEntity() </code>
| Returns the initial waypoint goal for this NPC
| Returns the initial waypoint goal for this NPC
|-
|-
| GetUnitName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitName | GetUnitName]]
| <code>string GetUnitName() </code>
| <code>string GetUnitName() </code>
| No Description Set
| No Description Set
|-
|-
| RespawnUnit
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RespawnUnit | RespawnUnit]]
| <code>void RespawnUnit() </code>
| <code>void RespawnUnit() </code>
| Respawns the target unit if it can be respawned.
| Respawns the target unit if it can be respawned.
|-
|-
| GetRangeToUnit
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit | GetRangeToUnit]]
| <code>float GetRangeToUnit(handle ) </code>
| <code>float GetRangeToUnit(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| CastAbilityImmediately
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately | CastAbilityImmediately]]
| <code>void CastAbilityImmediately(handle , int ) </code>
| <code>void CastAbilityImmediately(handle , int ) </code>
| Cast an ability immediately.
| Cast an ability immediately.
|-
|-
| SetNightTimeVisionRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNightTimeVisionRange | SetNightTimeVisionRange]]
| <code>void SetNightTimeVisionRange(int ) </code>
| <code>void SetNightTimeVisionRange(int ) </code>
| Set the base vision range.
| Set the base vision range.
|-
|-
| RemoveAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveAbility | RemoveAbility]]
| <code>void RemoveAbility(string ) </code>
| <code>void RemoveAbility(string ) </code>
| Remove an ability from this unit by name.
| Remove an ability from this unit by name.
|-
|-
| IsAncient
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAncient | IsAncient]]
| <code>bool IsAncient() </code>
| <code>bool IsAncient() </code>
| Is this creature an Ancient?
| Is this creature an Ancient?
|-
|-
| SetStolenScepter
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetStolenScepter | SetStolenScepter]]
| <code>void SetStolenScepter(bool ) </code>
| <code>void SetStolenScepter(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| GetHealthRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthRegen | GetHealthRegen]]
| <code>float GetHealthRegen() </code>
| <code>float GetHealthRegen() </code>
| No Description Set
| No Description Set
|-
|-
| GetAttackDamage
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackDamage | GetAttackDamage]]
| <code>int GetAttackDamage() </code>
| <code>int GetAttackDamage() </code>
| Returns a random integer between the minimum and maximum base damage of the unit.
| Returns a random integer between the minimum and maximum base damage of the unit.
|-
|-
| Stop
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Stop | Stop]]
| <code>void Stop() </code>
| <code>void Stop() </code>
| Stop the current order.
| Stop the current order.
|-
|-
| GetAbilityByIndex
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityByIndex | GetAbilityByIndex]]
| <code>handle GetAbilityByIndex(int ) </code>
| <code>handle GetAbilityByIndex(int ) </code>
| Retrieve an ability by index from the unit.
| Retrieve an ability by index from the unit.
|-
|-
| SetInitialGoalEntity
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetInitialGoalEntity | SetInitialGoalEntity]]
| <code>void SetInitialGoalEntity(handle ) </code>
| <code>void SetInitialGoalEntity(handle ) </code>
| Sets the initial waypoint goal for this NPC
| Sets the initial waypoint goal for this NPC
|-
|-
| SetOriginalModel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetOriginalModel | SetOriginalModel]]
| <code>void SetOriginalModel(string originalModel) </code>
| <code>void SetOriginalModel(string originalModel) </code>
| Sets the original model of this entity, which it will tend to fall back to anytime its state changes
| Sets the original model of this entity, which it will tend to fall back to anytime its state changes
|-
|-
| IsOutOfGame
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOutOfGame | IsOutOfGame]]
| <code>bool IsOutOfGame() </code>
| <code>bool IsOutOfGame() </code>
| No Description Set
| No Description Set
|-
|-
| GetCreationTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCreationTime | GetCreationTime]]
| <code>float GetCreationTime() </code>
| <code>float GetCreationTime() </code>
| No Description Set
| No Description Set
|-
|-
| RemoveItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveItem | RemoveItem]]
| <code>void RemoveItem(handle ) </code>
| <code>void RemoveItem(handle ) </code>
| Removes the passed item from this unit's inventory.
| Removes the passed item from this unit's inventory.
|-
|-
| GetNightTimeVisionRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetNightTimeVisionRange | GetNightTimeVisionRange]]
| <code>int GetNightTimeVisionRange() </code>
| <code>int GetNightTimeVisionRange() </code>
| Returns the vision range after modifiers.
| Returns the vision range after modifiers.
|-
|-
| AngerNearbyUnits
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AngerNearbyUnits | AngerNearbyUnits]]
| <code>void AngerNearbyUnits() </code>
| <code>void AngerNearbyUnits() </code>
| No Description Set
| No Description Set
|-
|-
| InterruptChannel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptChannel | InterruptChannel]]
| <code>void InterruptChannel() </code>
| <code>void InterruptChannel() </code>
| No Description Set
| No Description Set
|-
|-
| UnitCanRespawn
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.UnitCanRespawn | UnitCanRespawn]]
| <code>bool UnitCanRespawn() </code>
| <code>bool UnitCanRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| NotOnMinimapForEnemies
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimapForEnemies | NotOnMinimapForEnemies]]
| <code>bool NotOnMinimapForEnemies() </code>
| <code>bool NotOnMinimapForEnemies() </code>
| No Description Set
| No Description Set
|-
|-
| GetHealthPercent
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthPercent | GetHealthPercent]]
| <code>int GetHealthPercent() </code>
| <code>int GetHealthPercent() </code>
| Get the current health percent of the unit.
| Get the current health percent of the unit.
|-
|-
| IsPhantomBlocker
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantomBlocker | IsPhantomBlocker]]
| <code>bool IsPhantomBlocker() </code>
| <code>bool IsPhantomBlocker() </code>
| No Description Set
| No Description Set
|-
|-
| MakePhantomBlocker
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakePhantomBlocker | MakePhantomBlocker]]
| <code>void MakePhantomBlocker() </code>
| <code>void MakePhantomBlocker() </code>
| No Description Set
| No Description Set
|-
|-
| FindAbilityByName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.FindAbilityByName | FindAbilityByName]]
| <code>handle FindAbilityByName(string ) </code>
| <code>handle FindAbilityByName(string ) </code>
| Retrieve an ability by name from the unit.
| Retrieve an ability by name from the unit.
|-
|-
| HasAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAbility | HasAbility]]
| <code>bool HasAbility(string ) </code>
| <code>bool HasAbility(string ) </code>
| See whether this unit has an ability by name.
| See whether this unit has an ability by name.
|-
|-
| MakeVisibleDueToAttack
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleDueToAttack | MakeVisibleDueToAttack]]
| <code>void MakeVisibleDueToAttack(int ) </code>
| <code>void MakeVisibleDueToAttack(int ) </code>
| No Description Set
| No Description Set
|-
|-
| IsInvulnerable
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvulnerable | IsInvulnerable]]
| <code>bool IsInvulnerable() </code>
| <code>bool IsInvulnerable() </code>
| No Description Set
| No Description Set
|-
|-
| GetAttackRangeBuffer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRangeBuffer | GetAttackRangeBuffer]]
| <code>float GetAttackRangeBuffer() </code>
| <code>float GetAttackRangeBuffer() </code>
| Gets the attack range buffer.
| Gets the attack range buffer.
|-
|-
| SetBaseDamageMin
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMin | SetBaseDamageMin]]
| <code>void SetBaseDamageMin(int ) </code>
| <code>void SetBaseDamageMin(int ) </code>
| Sets the minimum base damage.
| Sets the minimum base damage.
|-
|-
| IsFrozen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsFrozen | IsFrozen]]
| <code>bool IsFrozen() </code>
| <code>bool IsFrozen() </code>
| No Description Set
| No Description Set
|-
|-
| GetBaseNightTimeVisionRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseNightTimeVisionRange | GetBaseNightTimeVisionRange]]
| <code>int GetBaseNightTimeVisionRange() </code>
| <code>int GetBaseNightTimeVisionRange() </code>
| Returns the vision range before modifiers.
| Returns the vision range before modifiers.
|-
|-
| DropItemAtPosition
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPosition | DropItemAtPosition]]
| <code>void DropItemAtPosition(Vector , handle ) </code>
| <code>void DropItemAtPosition(Vector , handle ) </code>
| Drop an item at a given point.
| Drop an item at a given point.
|-
|-
| MakeVisibleToTeam
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleToTeam | MakeVisibleToTeam]]
| <code>void MakeVisibleToTeam(int , float ) </code>
| <code>void MakeVisibleToTeam(int , float ) </code>
| No Description Set
| No Description Set
|-
|-
| GetOpposingTeamNumber
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetOpposingTeamNumber | GetOpposingTeamNumber]]
| <code>int GetOpposingTeamNumber() </code>
| <code>int GetOpposingTeamNumber() </code>
| No Description Set
| No Description Set
|-
|-
| GetModifierCount
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierCount | GetModifierCount]]
| <code>int GetModifierCount() </code>
| <code>int GetModifierCount() </code>
| How many modifiers does this unit have?
| How many modifiers does this unit have?
|-
|-
| SetCursorPosition
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorPosition | SetCursorPosition]]
| <code>void SetCursorPosition(Vector ) </code>
| <code>void SetCursorPosition(Vector ) </code>
| No Description Set
| No Description Set
|-
|-
| GetHullRadius
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHullRadius | GetHullRadius]]
| <code>float GetHullRadius() </code>
| <code>float GetHullRadius() </code>
| Get the collision hull radius of this NPC
| Get the collision hull radius of this NPC
|-
|-
| IsOpposingTeam
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOpposingTeam | IsOpposingTeam]]
| <code>bool IsOpposingTeam(int ) </code>
| <code>bool IsOpposingTeam(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetIdleAcquire
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetIdleAcquire | SetIdleAcquire]]
| <code>void SetIdleAcquire(bool ) </code>
| <code>void SetIdleAcquire(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| ShouldIdleAcquire
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ShouldIdleAcquire | ShouldIdleAcquire]]
| <code>bool ShouldIdleAcquire() </code>
| <code>bool ShouldIdleAcquire() </code>
| No Description Set
| No Description Set
|-
|-
| IsPositionInRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPositionInRange | IsPositionInRange]]
| <code>bool IsPositionInRange(Vector , float ) </code>
| <code>bool IsPositionInRange(Vector , float ) </code>
| No Description Set
| No Description Set
|-
|-
| InterruptMotionControllers
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers | InterruptMotionControllers]]
| <code>void InterruptMotionControllers(bool ) </code>
| <code>void InterruptMotionControllers(bool ) </code>
| Parameter boolean determines finding clear space.
| Parameter boolean determines finding clear space.
|-
|-
| SetControllableByPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetControllableByPlayer | SetControllableByPlayer]]
| <code>void SetControllableByPlayer(int , bool ) </code>
| <code>void SetControllableByPlayer(int , bool ) </code>
| Set this unit controllable by the player with the passed ID.
| Set this unit controllable by the player with the passed ID.
|-
|-
| RemoveNoDraw
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveNoDraw | RemoveNoDraw]]
| <code>void RemoveNoDraw() </code>
| <code>void RemoveNoDraw() </code>
| Remove the no draw flag.
| Remove the no draw flag.
|-
|-
| ReduceMana
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ReduceMana | ReduceMana]]
| <code>void ReduceMana(float ) </code>
| <code>void ReduceMana(float ) </code>
| Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
| Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
|-
|-
| SetBaseManaRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseManaRegen | SetBaseManaRegen]]
| <code>void SetBaseManaRegen(float ) </code>
| <code>void SetBaseManaRegen(float ) </code>
| No Description Set
| No Description Set
|-
|-
| Interrupt
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Interrupt | Interrupt]]
| <code>void Interrupt() </code>
| <code>void Interrupt() </code>
| No Description Set
| No Description Set
|-
|-
| GetCursorPosition
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorPosition | GetCursorPosition]]
| <code>Vector GetCursorPosition() </code>
| <code>Vector GetCursorPosition() </code>
| No Description Set
| No Description Set
|-
|-
| GetBaseAttackTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackTime | GetBaseAttackTime]]
| <code>float GetBaseAttackTime() </code>
| <code>float GetBaseAttackTime() </code>
| No Description Set
| No Description Set
|-
|-
| GetDayTimeVisionRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDayTimeVisionRange | GetDayTimeVisionRange]]
| <code>int GetDayTimeVisionRange() </code>
| <code>int GetDayTimeVisionRange() </code>
| Returns the vision range after modifiers.
| Returns the vision range after modifiers.
|-
|-
| MoveToNPC
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPC | MoveToNPC]]
| <code>void MoveToNPC(handle ) </code>
| <code>void MoveToNPC(handle ) </code>
| Move to follow a unit.
| Move to follow a unit.
|-
|-
| IsUnableToMiss
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnableToMiss | IsUnableToMiss]]
| <code>bool IsUnableToMiss() </code>
| <code>bool IsUnableToMiss() </code>
| No Description Set
| No Description Set
|-
|-
| RemoveModifierByNameAndCaster
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByNameAndCaster | RemoveModifierByNameAndCaster]]
| <code>void RemoveModifierByNameAndCaster(string , handle ) </code>
| <code>void RemoveModifierByNameAndCaster(string , handle ) </code>
| Removes a modifier that was cast by the given caster
| Removes a modifier that was cast by the given caster
|-
|-
| SetForceAttackTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetForceAttackTarget | SetForceAttackTarget]]
| <code>void SetForceAttackTarget(handle ) </code>
| <code>void SetForceAttackTarget(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| HasAttackCapability
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAttackCapability | HasAttackCapability]]
| <code>bool HasAttackCapability() </code>
| <code>bool HasAttackCapability() </code>
| No Description Set
| No Description Set
|-
|-
| GetAttacksPerSecond
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttacksPerSecond | GetAttacksPerSecond]]
| <code>float GetAttacksPerSecond() </code>
| <code>float GetAttacksPerSecond() </code>
| No Description Set
| No Description Set
|-
|-
| GetBaseDamageMin
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMin | GetBaseDamageMin]]
| <code>int GetBaseDamageMin() </code>
| <code>int GetBaseDamageMin() </code>
| Gets the minimum base damage.
| Gets the minimum base damage.
|-
|-
| GetForceAttackTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetForceAttackTarget | GetForceAttackTarget]]
| <code>handle GetForceAttackTarget() </code>
| <code>handle GetForceAttackTarget() </code>
| No Description Set
| No Description Set
|-
|-
| AlertNearbyUnits
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits | AlertNearbyUnits]]
| <code>void AlertNearbyUnits(handle , handle ) </code>
| <code>void AlertNearbyUnits(handle , handle ) </code>
| No Description Set
| No Description Set
|-
|-
| IsCreature
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCreature | IsCreature]]
| <code>bool IsCreature() </code>
| <code>bool IsCreature() </code>
| Is this a Creature type NPC
| Is this a Creature type NPC
|-
|-
| GetAttackTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackTarget | GetAttackTarget]]
| <code>handle GetAttackTarget() </code>
| <code>handle GetAttackTarget() </code>
| No Description Set
| No Description Set
|-
|-
| PerformAttack
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PerformAttack | PerformAttack]]
| <code>void PerformAttack(handle , bool , bool , bool , bool ) </code>
| <code>void PerformAttack(handle , bool , bool , bool , bool ) </code>
| Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
| Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
|-
|-
| GetDeathXP
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDeathXP | GetDeathXP]]
| <code>int GetDeathXP() </code>
| <code>int GetDeathXP() </code>
| Get the XP bounty on this unit
| Get the XP bounty on this unit
|-
|-
| SetAttacking
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttacking | SetAttacking]]
| <code>void SetAttacking(handle ) </code>
| <code>void SetAttacking(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| SetHasInventory
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHasInventory | SetHasInventory]]
| <code>void SetHasInventory(bool ) </code>
| <code>void SetHasInventory(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| ModifyHealth
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ModifyHealth | ModifyHealth]]
| <code>void ModifyHealth(int , handle , bool , int ) </code>
| <code>void ModifyHealth(int , handle , bool , int ) </code>
| Sets the health to a specific value, with optional flags or inflictors.
| Sets the health to a specific value, with optional flags or inflictors.
|-
|-
| IsMagicImmune
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMagicImmune | IsMagicImmune]]
| <code>bool IsMagicImmune() </code>
| <code>bool IsMagicImmune() </code>
| No Description Set
| No Description Set
|-
|-
| GetAttackAnimationPoint
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackAnimationPoint | GetAttackAnimationPoint]]
| <code>float GetAttackAnimationPoint() </code>
| <code>float GetAttackAnimationPoint() </code>
| No Description Set
| No Description Set
|-
|-
| TimeUntilNextAttack
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TimeUntilNextAttack | TimeUntilNextAttack]]
| <code>float TimeUntilNextAttack() </code>
| <code>float TimeUntilNextAttack() </code>
| No Description Set
| No Description Set
|-
|-
| AttackNoEarlierThan
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan | AttackNoEarlierThan]]
| <code>void AttackNoEarlierThan(float ) </code>
| <code>void AttackNoEarlierThan(float ) </code>
| No Description Set
| No Description Set
|-
|-
| SetBaseMagicalResistanceValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMagicalResistanceValue | SetBaseMagicalResistanceValue]]
| <code>void SetBaseMagicalResistanceValue(float ) </code>
| <code>void SetBaseMagicalResistanceValue(float ) </code>
| Sets base magical armor value.
| Sets base magical armor value.
|-
|-
| AddAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility | AddAbility]]
| <code>void AddAbility(string ) </code>
| <code>void AddAbility(string ) </code>
| Add an ability to this unit by name.
| Add an ability to this unit by name.
|-
|-
| HasItemInInventory
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory | HasItemInInventory]]
| <code>bool HasItemInInventory(string ) </code>
| <code>bool HasItemInInventory(string ) </code>
| See whether this unit has an item by name.
| See whether this unit has an item by name.
|-
|-
| AttackReady
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackReady | AttackReady]]
| <code>bool AttackReady() </code>
| <code>bool AttackReady() </code>
| No Description Set
| No Description Set
|-
|-
| SetDeathXP
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDeathXP | SetDeathXP]]
| <code>void SetDeathXP(int ) </code>
| <code>void SetDeathXP(int ) </code>
| Set the XP bounty on this unit
| Set the XP bounty on this unit
|-
|-
| GetBaseHealthRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseHealthRegen | GetBaseHealthRegen]]
| <code>float GetBaseHealthRegen() </code>
| <code>float GetBaseHealthRegen() </code>
| No Description Set
| No Description Set
|-
|-
| GetTeamNumber
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTeamNumber | GetTeamNumber]]
| <code>int GetTeamNumber() </code>
| <code>int GetTeamNumber() </code>
| Get the team number of this unit.
| Get the team number of this unit.
|-
|-
| GetStatsBasedManaRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
| <code>float GetStatsBasedManaRegen() </code>
| <code>float GetStatsBasedManaRegen() </code>
| Returns mana regen rate per intelligence.
| Returns mana regen rate per intelligence.
|-
|-
| GetUnitLabel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitLabel | GetUnitLabel]]
| <code>string GetUnitLabel() </code>
| <code>string GetUnitLabel() </code>
| No Description Set
| No Description Set
|-
|-
| IsHardDisarmed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHardDisarmed | IsHardDisarmed]]
| <code>bool IsHardDisarmed() </code>
| <code>bool IsHardDisarmed() </code>
| No Description Set
| No Description Set
|-
|-
| GetMoveSpeedModifier
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMoveSpeedModifier | GetMoveSpeedModifier]]
| <code>float GetMoveSpeedModifier(float ) </code>
| <code>float GetMoveSpeedModifier(float ) </code>
| No Description Set
| No Description Set
|-
|-
| GetMana
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMana | GetMana]]
| <code>float GetMana() </code>
| <code>float GetMana() </code>
| Get the mana on this unit.
| Get the mana on this unit.
|-
|-
| AddNewModifier
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNewModifier | AddNewModifier]]
| <code>void AddNewModifier(handle , handle , string , handle ) </code>
| <code>void AddNewModifier(handle , handle , string , handle ) </code>
| Add a modifier to this unit
| Add a modifier to this unit
|-
|-
| SwapAbilities
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SwapAbilities | SwapAbilities]]
| <code>void SwapAbilities(string , string , bool , bool ) </code>
| <code>void SwapAbilities(string , string , bool , bool ) </code>
| Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, ''bool'' bEnable1, ''bool'' bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.
| Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, ''bool'' bEnable1, ''bool'' bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.
|-
|-
| SetUnitName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetUnitName | SetUnitName]]
| <code>void SetUnitName(string ) </code>
| <code>void SetUnitName(string ) </code>
| No Description Set
| No Description Set
|-
|-
| IsPhased
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhased | IsPhased]]
| <code>bool IsPhased() </code>
| <code>bool IsPhased() </code>
| No Description Set
| No Description Set
|-
|-
| SetRangedProjectileName
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetRangedProjectileName | SetRangedProjectileName]]
| <code>void SetRangedProjectileName(string ) </code>
| <code>void SetRangedProjectileName(string ) </code>
| No Description Set
| No Description Set
|-
|-
| SpendMana
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SpendMana | SpendMana]]
| <code>void SpendMana(float , handle ) </code>
| <code>void SpendMana(float , handle ) </code>
| Spend mana from this unit, this can be used for spending mana from abilities or item usage.
| Spend mana from this unit, this can be used for spending mana from abilities or item usage.
|-
|-
| GetProjectileSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetProjectileSpeed | GetProjectileSpeed]]
| <code>int GetProjectileSpeed() </code>
| <code>int GetProjectileSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| HasFlyingVision
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyingVision | HasFlyingVision]]
| <code>bool HasFlyingVision() </code>
| <code>bool HasFlyingVision() </code>
| No Description Set
| No Description Set
|-
|-
| HasMovementCapability
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasMovementCapability | HasMovementCapability]]
| <code>bool HasMovementCapability() </code>
| <code>bool HasMovementCapability() </code>
| No Description Set
| No Description Set
|-
|-
| IsCommandRestricted
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCommandRestricted | IsCommandRestricted]]
| <code>bool IsCommandRestricted() </code>
| <code>bool IsCommandRestricted() </code>
| No Description Set
| No Description Set
|-
|-
| HasGroundMovementCapability
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasGroundMovementCapability | HasGroundMovementCapability]]
| <code>bool HasGroundMovementCapability() </code>
| <code>bool HasGroundMovementCapability() </code>
| No Description Set
| No Description Set
|-
|-
| SetMoveCapability
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMoveCapability | SetMoveCapability]]
| <code>void SetMoveCapability(int ) </code>
| <code>void SetMoveCapability(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SellItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SellItem | SellItem]]
| <code>void SellItem(handle ) </code>
| <code>void SellItem(handle ) </code>
| Sells the passed item in this unit's inventory.
| Sells the passed item in this unit's inventory.
|-
|-
| IsSoftDisarmed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSoftDisarmed | IsSoftDisarmed]]
| <code>bool IsSoftDisarmed() </code>
| <code>bool IsSoftDisarmed() </code>
| No Description Set
| No Description Set
|-
|-
| GetMagicalArmorValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMagicalArmorValue | GetMagicalArmorValue]]
| <code>float GetMagicalArmorValue() </code>
| <code>float GetMagicalArmorValue() </code>
| Returns current magical armor value.
| Returns current magical armor value.
|-
|-
| SetMinimumGoldBounty
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMinimumGoldBounty | SetMinimumGoldBounty]]
| <code>void SetMinimumGoldBounty(int ) </code>
| <code>void SetMinimumGoldBounty(int ) </code>
| Set the minimum gold bounty for this unit.
| Set the minimum gold bounty for this unit.
|-
|-
| SetAttackCapability
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttackCapability | SetAttackCapability]]
| <code>void SetAttackCapability(int ) </code>
| <code>void SetAttackCapability(int ) </code>
| No Description Set
| No Description Set
|-
|-
| HasScepter
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasScepter | HasScepter]]
| <code>bool HasScepter() </code>
| <code>bool HasScepter() </code>
| No Description Set
| No Description Set
|-
|-
| IsMovementImpaired
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMovementImpaired | IsMovementImpaired]]
| <code>bool IsMovementImpaired() </code>
| <code>bool IsMovementImpaired() </code>
| No Description Set
| No Description Set
|-
|-
| IsIdle
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIdle | IsIdle]]
| <code>bool IsIdle() </code>
| <code>bool IsIdle() </code>
| Is this creature currently idle?
| Is this creature currently idle?
|-
|-
| IsRangedAttacker
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRangedAttacker | IsRangedAttacker]]
| <code>bool IsRangedAttacker() </code>
| <code>bool IsRangedAttacker() </code>
| Is this unit a ranged attacker?
| Is this unit a ranged attacker?
|-
|-
| SetBaseHealthRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseHealthRegen | SetBaseHealthRegen]]
| <code>void SetBaseHealthRegen(float ) </code>
| <code>void SetBaseHealthRegen(float ) </code>
| No Description Set
| No Description Set
|-
|-
| SetBaseMoveSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMoveSpeed | SetBaseMoveSpeed]]
| <code>void SetBaseMoveSpeed(int ) </code>
| <code>void SetBaseMoveSpeed(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetMaximumGoldBounty
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMaximumGoldBounty | SetMaximumGoldBounty]]
| <code>void SetMaximumGoldBounty(int ) </code>
| <code>void SetMaximumGoldBounty(int ) </code>
| Set the maximum gold bounty for this unit.
| Set the maximum gold bounty for this unit.
|-
|-
| GetPercentageBasedManaRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPercentageBasedManaRegen | GetPercentageBasedManaRegen]]
| <code>float GetPercentageBasedManaRegen() </code>
| <code>float GetPercentageBasedManaRegen() </code>
| This Mana regen is derived from % bonuses (from items like Void Stone).
| This Mana regen is derived from % bonuses (from items like Void Stone).
|-
|-
| GetItemInSlot
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot | GetItemInSlot]]
| <code>handle GetItemInSlot(int ) </code>
| <code>handle GetItemInSlot(int ) </code>
| Returns nth item in inventory slot (index is zero based)
| Returns nth item in inventory slot (index is zero based)
|-
|-
| NoTeamMoveTo
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamMoveTo | NoTeamMoveTo]]
| <code>bool NoTeamMoveTo() </code>
| <code>bool NoTeamMoveTo() </code>
| No Description Set
| No Description Set
|-
|-
| GetBaseDamageMax
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMax | GetBaseDamageMax]]
| <code>int GetBaseDamageMax() </code>
| <code>int GetBaseDamageMax() </code>
| Gets the minimum base damage.
| Gets the minimum base damage.
|-
|-
| GetTotalPurchasedUpgradeGoldCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTotalPurchasedUpgradeGoldCost | GetTotalPurchasedUpgradeGoldCost]]
| <code>int GetTotalPurchasedUpgradeGoldCost() </code>
| <code>int GetTotalPurchasedUpgradeGoldCost() </code>
| Get how much gold has been spent on ability upgrades.
| Get how much gold has been spent on ability upgrades.
|-
|-
| IsBlind
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlind | IsBlind]]
| <code>bool IsBlind() </code>
| <code>bool IsBlind() </code>
| No Description Set
| No Description Set
|-
|-
| GiveMana
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana | GiveMana]]
| <code>void GiveMana(float ) </code>
| <code>void GiveMana(float ) </code>
| Give mana to this unit, this can be used for mana gained by abilities or item usage.
| Give mana to this unit, this can be used for mana gained by abilities or item usage.
|-
|-
| IsDominated
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDominated | IsDominated]]
| <code>bool IsDominated() </code>
| <code>bool IsDominated() </code>
| No Description Set
| No Description Set
|-
|-
| GetMustReachEachGoalEntity
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMustReachEachGoalEntity | GetMustReachEachGoalEntity]]
| <code>bool GetMustReachEachGoalEntity() </code>
| <code>bool GetMustReachEachGoalEntity() </code>
| Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
| Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
|-
|-
| PassivesDisabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PassivesDisabled | PassivesDisabled]]
| <code>bool PassivesDisabled() </code>
| <code>bool PassivesDisabled() </code>
| No Description Set
| No Description Set
|-
|-
| PickupRune
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupRune | PickupRune]]
| <code>void PickupRune(handle ) </code>
| <code>void PickupRune(handle ) </code>
| Pick up a rune.
| Pick up a rune.
|-
|-
| GetManaPercent
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaPercent | GetManaPercent]]
| <code>int GetManaPercent() </code>
| <code>int GetManaPercent() </code>
| Get the percent of mana remaining.
| Get the percent of mana remaining.
|-
|-
| IsStunned
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsStunned | IsStunned]]
| <code>bool IsStunned() </code>
| <code>bool IsStunned() </code>
| No Description Set
| No Description Set
|-
|-
| HasInventory
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasInventory | HasInventory]]
| <code>bool HasInventory() </code>
| <code>bool HasInventory() </code>
| No Description Set
| No Description Set
|-
|-
| MoveToNPCToGiveItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPCToGiveItem | MoveToNPCToGiveItem]]
| <code>void MoveToNPCToGiveItem(handle , handle ) </code>
| <code>void MoveToNPCToGiveItem(handle , handle ) </code>
| Give an item to another unit.
| Give an item to another unit.
|-
|-
| NoHealthBar
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoHealthBar | NoHealthBar]]
| <code>bool NoHealthBar() </code>
| <code>bool NoHealthBar() </code>
| No Description Set
| No Description Set
|-
|-
| IsLowAttackPriority
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsLowAttackPriority | IsLowAttackPriority]]
| <code>bool IsLowAttackPriority() </code>
| <code>bool IsLowAttackPriority() </code>
| No Description Set
| No Description Set
|-
|-
| NotOnMinimap
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimap | NotOnMinimap]]
| <code>bool NotOnMinimap() </code>
| <code>bool NotOnMinimap() </code>
| No Description Set
| No Description Set
|-
|-
| GetCursorCastTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorCastTarget | GetCursorCastTarget]]
| <code>handle GetCursorCastTarget() </code>
| <code>handle GetCursorCastTarget() </code>
| No Description Set
| No Description Set
|-
|-
| IsInvisible
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvisible | IsInvisible]]
| <code>bool IsInvisible() </code>
| <code>bool IsInvisible() </code>
| No Description Set
| No Description Set
|-
|-
| HasFlyMovementCapability
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyMovementCapability | HasFlyMovementCapability]]
| <code>bool HasFlyMovementCapability() </code>
| <code>bool HasFlyMovementCapability() </code>
| No Description Set
| No Description Set
|-
|-
| IsSpeciallyDeniable
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSpeciallyDeniable | IsSpeciallyDeniable]]
| <code>bool IsSpeciallyDeniable() </code>
| <code>bool IsSpeciallyDeniable() </code>
| No Description Set
| No Description Set
|-
|-
| GetGoldBounty
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetGoldBounty | GetGoldBounty]]
| <code>int GetGoldBounty() </code>
| <code>int GetGoldBounty() </code>
| Get the gold bounty on this unit
| Get the gold bounty on this unit
|-
|-
| AddNoDraw
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw | AddNoDraw]]
| <code>void AddNoDraw() </code>
| <code>void AddNoDraw() </code>
| Adds the no draw flag.
| Adds the no draw flag.
|-
|-
| AddItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddItem | AddItem]]
| <code>void AddItem(handle ) </code>
| <code>void AddItem(handle ) </code>
| Add an item to this unit's inventory.
| Add an item to this unit's inventory.
|-
|-
| IsUnselec''table
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnselectable | IsUnselectable]]
| <code>bool IsUnselec''table() </code>
| <code>bool IsUnselectable() </code>
| No Description Set
| No Description Set
|-
|-
| SetBaseAttackTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseAttackTime | SetBaseAttackTime]]
| <code>void SetBaseAttackTime(float ) </code>
| <code>void SetBaseAttackTime(float ) </code>
| No Description Set
| No Description Set
|-
|-
| GetBaseMoveSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMoveSpeed | GetBaseMoveSpeed]]
| <code>float GetBaseMoveSpeed() </code>
| <code>float GetBaseMoveSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| IsBlockDisabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlockDisabled | IsBlockDisabled]]
| <code>bool IsBlockDisabled() </code>
| <code>bool IsBlockDisabled() </code>
| No Description Set
| No Description Set
|-
|-
| IsNightmared
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNightmared | IsNightmared]]
| <code>bool IsNightmared() </code>
| <code>bool IsNightmared() </code>
| No Description Set
| No Description Set
|-
|-
| GetCursorTargetingNothing
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorTargetingNothing | GetCursorTargetingNothing]]
| <code>bool GetCursorTargetingNothing() </code>
| <code>bool GetCursorTargetingNothing() </code>
| No Description Set
| No Description Set
|-
|-
| HasModifier
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasModifier | HasModifier]]
| <code>bool HasModifier(string ) </code>
| <code>bool HasModifier(string ) </code>
| Sees if this unit has a given modifier
| Sees if this unit has a given modifier
|-
|-
| GetHasteFactor
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHasteFactor | GetHasteFactor]]
| <code>float GetHasteFactor() </code>
| <code>float GetHasteFactor() </code>
| No Description Set
| No Description Set
|-
|-
| NoUnitCollision
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoUnitCollision | NoUnitCollision]]
| <code>bool NoUnitCollision() </code>
| <code>bool NoUnitCollision() </code>
| No Description Set
| No Description Set
|-
|-
| IsHexed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHexed | IsHexed]]
| <code>bool IsHexed() </code>
| <code>bool IsHexed() </code>
| No Description Set
| No Description Set
|-
|-
| GetCastPoint
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint | GetCastPoint]]
| <code>float GetCastPoint(bool ) </code>
| <code>float GetCastPoint(bool ) </code>
| Parameter: bAttack
| Parameter: bAttack
|-
|-
| GetConstantBasedManaRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetConstantBasedManaRegen | GetConstantBasedManaRegen]]
| <code>float GetConstantBasedManaRegen() </code>
| <code>float GetConstantBasedManaRegen() </code>
| This Mana regen is derived from constant bonuses like Basilius.
| This Mana regen is derived from constant bonuses like Basilius.
|-
|-
| GetLevel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLevel | GetLevel]]
| <code>int GetLevel() </code>
| <code>int GetLevel() </code>
| Returns the level of this unit.
| Returns the level of this unit.
|-
|-
| SetCursorTargetingNothing
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorTargetingNothing | SetCursorTargetingNothing]]
| <code>void SetCursorTargetingNothing(bool ) </code>
| <code>void SetCursorTargetingNothing(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| IsHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHero | IsHero]]
| <code>bool IsHero() </code>
| <code>bool IsHero() </code>
| Is this a hero or hero illusion?
| Is this a hero or hero illusion?
|-
|-
| GetModifierNameByIndex
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex | GetModifierNameByIndex]]
| <code>string GetModifierNameByIndex(int ) </code>
| <code>string GetModifierNameByIndex(int ) </code>
| Get a modifier name by index.
| Get a modifier name by index.
|-
|-
| IsSilenced
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSilenced | IsSilenced]]
| <code>bool IsSilenced() </code>
| <code>bool IsSilenced() </code>
| No Description Set
| No Description Set
|-
|-
| IsAttackImmune
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackImmune | IsAttackImmune]]
| <code>bool IsAttackImmune() </code>
| <code>bool IsAttackImmune() </code>
| No Description Set
| No Description Set
|-
|-
| IsDisarmed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDisarmed | IsDisarmed]]
| <code>bool IsDisarmed() </code>
| <code>bool IsDisarmed() </code>
| No Description Set
| No Description Set
|-
|-
| IsAttacking
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttacking | IsAttacking]]
| <code>bool IsAttacking() </code>
| <code>bool IsAttacking() </code>
| No Description Set
| No Description Set
|-
|-
| MoveToPosition
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPosition | MoveToPosition]]
| <code>void MoveToPosition(Vector ) </code>
| <code>void MoveToPosition(Vector ) </code>
| Issue a Move-To command
| Issue a Move-To command
|-
|-
| ProvidesVision
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ProvidesVision | ProvidesVision]]
| <code>bool ProvidesVision() </code>
| <code>bool ProvidesVision() </code>
| No Description Set
| No Description Set
|-
|-
| MoveToPositionAggressive
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPositionAggressive | MoveToPositionAggressive]]
| <code>void MoveToPositionAggressive(Vector ) </code>
| <code>void MoveToPositionAggressive(Vector ) </code>
| Issue an Attack-Move-To command
| Issue an Attack-Move-To command
|-
|-
| SetCursorCastTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorCastTarget | SetCursorCastTarget]]
| <code>void SetCursorCastTarget(handle ) </code>
| <code>void SetCursorCastTarget(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| SetPhysicalArmorBaseValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetPhysicalArmorBaseValue | SetPhysicalArmorBaseValue]]
| <code>void SetPhysicalArmorBaseValue(float ) </code>
| <code>void SetPhysicalArmorBaseValue(float ) </code>
| Sets base physical armor value.
| Sets base physical armor value.
|-
|-
| IsRooted
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRooted | IsRooted]]
| <code>bool IsRooted() </code>
| <code>bool IsRooted() </code>
| No Description Set
| No Description Set
|-
|-
| TriggerModifierDodge
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerModifierDodge | TriggerModifierDodge]]
| <code>bool TriggerModifierDodge() </code>
| <code>bool TriggerModifierDodge() </code>
| No Description Set
| No Description Set
|-
|-
| TriggerSpellAbsorb
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerSpellAbsorb | TriggerSpellAbsorb]]
| <code>bool TriggerSpellAbsorb(handle ) </code>
| <code>bool TriggerSpellAbsorb(handle ) </code>
| Query whether the passed ability will trigger spell absorb on this unit.
| Query whether the passed ability will trigger spell absorb on this unit.
|-
|-
| GetIdealSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIdealSpeed | GetIdealSpeed]]
| <code>float GetIdealSpeed() </code>
| <code>float GetIdealSpeed() </code>
| Returns speed after all modifiers.
| Returns speed after all modifiers.
|-
|-
| MakeIllusion
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeIllusion | MakeIllusion]]
| <code>void MakeIllusion() </code>
| <code>void MakeIllusion() </code>
| No Description Set
| No Description Set
|-
|-
| IsIllusion
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIllusion | IsIllusion]]
| <code>bool IsIllusion() </code>
| <code>bool IsIllusion() </code>
| No Description Set
| No Description Set
|-
|-
| GetSecondsPerAttack
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetSecondsPerAttack | GetSecondsPerAttack]]
| <code>float GetSecondsPerAttack() </code>
| <code>float GetSecondsPerAttack() </code>
| No Description Set
| No Description Set
|-
|-
| SetMustReachEachGoalEntity
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMustReachEachGoalEntity | SetMustReachEachGoalEntity]]
| <code>void SetMustReachEachGoalEntity(bool ) </code>
| <code>void SetMustReachEachGoalEntity(bool ) </code>
| Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
| Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
|-
|-
| GetMaxHealth
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxHealth | GetMaxHealth]]
| <code>int GetMaxHealth() </code>
| <code>int GetMaxHealth() </code>
| Get the maximum health of this unit.
| Get the maximum health of this unit.
|-
|-
| GetBaseAttackRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackRange | GetBaseAttackRange]]
| <code>int GetBaseAttackRange() </code>
| <code>int GetBaseAttackRange() </code>
| Gets this unit's attack range before modifiers.
| Gets this unit's attack range before modifiers.
|-
|-
| IsEvadeDisabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsEvadeDisabled | IsEvadeDisabled]]
| <code>bool IsEvadeDisabled() </code>
| <code>bool IsEvadeDisabled() </code>
| No Description Set
| No Description Set
|-
|-
| GetMaxMana
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxMana | GetMaxMana]]
| <code>float GetMaxMana() </code>
| <code>float GetMaxMana() </code>
| Get the maximum mana of this unit.
| Get the maximum mana of this unit.
|-
|-
| SetBaseDamageMax
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMax | SetBaseDamageMax]]
| <code>void SetBaseDamageMax(int ) </code>
| <code>void SetBaseDamageMax(int ) </code>
| Sets the minimum base damage.
| Sets the minimum base damage.
|-
|-
| GetHealth
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealth | GetHealth]]
| <code>int GetHealth() </code>
| <code>int GetHealth() </code>
| Get the health of this unit.
| Get the health of this unit.
|-
|-
| GetMainControllingPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMainControllingPlayer | GetMainControllingPlayer]]
| <code>int GetMainControllingPlayer() </code>
| <code>int GetMainControllingPlayer() </code>
| Returns the player ID of the controlling player.
| Returns the player ID of the controlling player.
|-
|-
| Heal
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal | Heal]]
| <code>void Heal(float , handle ) </code>
| <code>void Heal(float , handle ) </code>
| Heal this unit.
| Heal this unit.
|-
|-
| GetIncreasedAttackSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
| <code>float GetIncreasedAttackSpeed() </code>
| <code>float GetIncreasedAttackSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| PickupDroppedItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupDroppedItem | PickupDroppedItem]]
| <code>void PickupDroppedItem(handle ) </code>
| <code>void PickupDroppedItem(handle ) </code>
| Pick up a dropped item.
| Pick up a dropped item.
|-
|-
| IsPhantom
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantom | IsPhantom]]
| <code>bool IsPhantom() </code>
| <code>bool IsPhantom() </code>
| Is this a phantom unit?
| Is this a phantom unit?
|-
|-
| Hold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Hold | Hold]]
| <code>void Hold() </code>
| <code>void Hold() </code>
| Hold position.
| Hold position.
|-
|-
| IsNeutralUnitType
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNeutralUnitType | IsNeutralUnitType]]
| <code>bool IsNeutralUnitType() </code>
| <code>bool IsNeutralUnitType() </code>
| Is this a neutral?
| Is this a neutral?
|-
|-
| DisassembleItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DisassembleItem | DisassembleItem]]
| <code>void DisassembleItem(handle ) </code>
| <code>void DisassembleItem(handle ) </code>
| Disassemble the passed item in this unit's inventory.
| Disassemble the passed item in this unit's inventory.
|-
|-
| GetBaseMagicalResistanceValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMagicalResistanceValue | GetBaseMagicalResistanceValue]]
| <code>float GetBaseMagicalResistanceValue() </code>
| <code>float GetBaseMagicalResistanceValue() </code>
| Returns base magical armor value.
| Returns base magical armor value.
|-
|-
| GetCollisionPadding
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCollisionPadding | GetCollisionPadding]]
| <code>float GetCollisionPadding() </code>
| <code>float GetCollisionPadding() </code>
| Returns the size of the collision padding around the hull.
| Returns the size of the collision padding around the hull.
|-
|-
| IsAlive
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAlive | IsAlive]]
| <code>bool IsAlive() </code>
| <code>bool IsAlive() </code>
| Is this unit alive?
| Is this unit alive?
|-
|-
| NoTeamSelect
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamSelect | NoTeamSelect]]
| <code>bool NoTeamSelect() </code>
| <code>bool NoTeamSelect() </code>
| No Description Set
| No Description Set
|-
|-
| CastAbilityOnTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnTarget | CastAbilityOnTarget]]
| <code>void CastAbilityOnTarget(handle target, handle ability, int playerIndex) </code>
| <code>void CastAbilityOnTarget(handle target, handle ability, int playerIndex) </code>
| Cast an ability on a target entity.
| Cast an ability on a target entity.
|-
|-
| CastAbilityOnPosition
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition | CastAbilityOnPosition]]
| <code>void CastAbilityOnPosition(Vector , handle , int ) </code>
| <code>void CastAbilityOnPosition(Vector , handle , int ) </code>
| Cast an ability on a position.
| Cast an ability on a position.
|-
|-
| GetPlayerOwner
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwner | GetPlayerOwner]]
| <code>handle GetPlayerOwner() </code>
| <code>handle GetPlayerOwner() </code>
| Returns the player that owns this unit
| Returns the player that owns this unit
|-
|-
| IsSummoned
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSummoned | IsSummoned]]
| <code>bool IsSummoned() </code>
| <code>bool IsSummoned() </code>
| Is this unit summoned?
| Is this unit summoned?
|-
|-
| IsTower
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsTower | IsTower]]
| <code>bool IsTower() </code>
| <code>bool IsTower() </code>
| Is this a tower?
| Is this a tower?
|-
|-
| SetNeverMoveToClearSpace
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNeverMoveToClearSpace | SetNeverMoveToClearSpace]]
| <code>void SetNeverMoveToClearSpace(bool ) </code>
| <code>void SetNeverMoveToClearSpace(bool ) </code>
| If set to true, we will never attempt to move this unit to clear space, even when it unphases.
| If set to true, we will never attempt to move this unit to clear space, even when it unphases.
|-
|-
| SetAdditionalBattleMusicWeight
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAdditionalBattleMusicWeight | SetAdditionalBattleMusicWeight]]
| <code>void SetAdditionalBattleMusicWeight(float ) </code>
| <code>void SetAdditionalBattleMusicWeight(float ) </code>
| Combat involving this creature will have this weight added to the music calcuations
| Combat involving this creature will have this weight added to the music calcuations
|-
|-
| GetBaseMaxHealth
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMaxHealth | GetBaseMaxHealth]]
| <code>float GetBaseMaxHealth() </code>
| <code>float GetBaseMaxHealth() </code>
| Gets the base max health value.
| Gets the base max health value.
|-
|-
| GetHealthDeficit
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthDeficit | GetHealthDeficit]]
| <code>int GetHealthDeficit() </code>
| <code>int GetHealthDeficit() </code>
| Returns integer amount of health missing from max.
| Returns integer amount of health missing from max.
|-
|-
| GetAcquisitionRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAcquisitionRange | GetAcquisitionRange]]
| <code>float GetAcquisitionRange() </code>
| <code>float GetAcquisitionRange() </code>
| Gets the range at which this unit will auto-acquire.
| Gets the range at which this unit will auto-acquire.
|-
|-
| GetLastIdleChangeTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLastIdleChangeTime | GetLastIdleChangeTime]]
| <code>float GetLastIdleChangeTime() </code>
| <code>float GetLastIdleChangeTime() </code>
| Get the last game time that this unit switched to/from idle state.
| Get the last game time that this unit switched to/from idle state.
|-
|-
| SetBaseMaxHealth
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMaxHealth | SetBaseMaxHealth]]
| <code>void SetBaseMaxHealth(float ) </code>
| <code>void SetBaseMaxHealth(float ) </code>
| Set a new base max health value.
| Set a new base max health value.
|-
|-
| Kill
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Kill | Kill]]
| <code>void Kill(handle , handle ) </code>
| <code>void Kill(handle , handle ) </code>
| Kills this NPC, with the params Ability and Attacker
| Kills this NPC, with the params Ability and Attacker
|-
|-
| CastAbilityNoTarget
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityNoTarget | CastAbilityNoTarget]]
| <code>void CastAbilityNoTarget(handle ability, int playerIndex) </code>
| <code>void CastAbilityNoTarget(handle ability, int playerIndex) </code>
| Cast an ability with no target. ( hAbility, iPlayerIndex )
| Cast an ability with no target. ( hAbility, iPlayerIndex )
|-
|-
| GetCurrentVisionRange
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentVisionRange | GetCurrentVisionRange]]
| <code>int GetCurrentVisionRange() </code>
| <code>int GetCurrentVisionRange() </code>
| Gets the current vision range.
| Gets the current vision range.
|-
|-
| CastAbilityToggle
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle | CastAbilityToggle]]
| <code>void CastAbilityToggle(handle , int ) </code>
| <code>void CastAbilityToggle(handle , int ) </code>
| Toggle an ability. ( hAbility, iPlayerIndex )
| Toggle an ability. ( hAbility, iPlayerIndex )
|-
|-
| IsOwnedByAnyPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOwnedByAnyPlayer | IsOwnedByAnyPlayer]]
| <code>bool IsOwnedByAnyPlayer() </code>
| <code>bool IsOwnedByAnyPlayer() </code>
| Is this unit owned by any non-bot player?
| Is this unit owned by any non-bot player?
|-
|-
| GetPhysicalArmorBaseValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorBaseValue | GetPhysicalArmorBaseValue]]
| <code>float GetPhysicalArmorBaseValue() </code>
| <code>float GetPhysicalArmorBaseValue() </code>
| Returns base physical armor value.
| Returns base physical armor value.
|-
|-
| GetCurrentActiveAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentActiveAbility | GetCurrentActiveAbility]]
| <code>handle GetCurrentActiveAbility() </code>
| <code>handle GetCurrentActiveAbility() </code>
| Get the ability this unit is currently casting.
| Get the ability this unit is currently casting.
|-
|-
| IsControllableByAnyPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsControllableByAnyPlayer | IsControllableByAnyPlayer]]
| <code>bool IsControllableByAnyPlayer() </code>
| <code>bool IsControllableByAnyPlayer() </code>
| Is this unit controlled by any non-bot player?
| Is this unit controlled by any non-bot player?
|-
|-
| GetPhysicalArmorValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorValue | GetPhysicalArmorValue]]
| <code>float GetPhysicalArmorValue() </code>
| <code>float GetPhysicalArmorValue() </code>
| Returns current physical armor value.
| Returns current physical armor value.
|-
|-
| BoundingRadius2D
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.BoundingRadius2D | BoundingRadius2D]]
| <code>float BoundingRadius2D() </code>
| <code>float BoundingRadius2D() </code>
| No Description Set
| No Description Set
Line 3,130: Line 3,129:
! Description  
! Description  
|-
|-
| GetPhysicalArmorValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPhysicalArmorValue | GetPhysicalArmorValue]]
| <code>float GetPhysicalArmorValue() </code>
| <code>float GetPhysicalArmorValue() </code>
| Hero armor is affected by attributes.
| Hero armor is affected by attributes.
|-
|-
| GetDenies
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDenies | GetDenies]]
| <code>int GetDenies() </code>
| <code>int GetDenies() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetIntellect
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellect | GetIntellect]]
| <code>float GetIntellect() </code>
| <code>float GetIntellect() </code>
| No Description Set
| No Description Set
|-
|-
| ShouldDoFlyHeightVisual
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ShouldDoFlyHeightVisual | ShouldDoFlyHeightVisual]]
| <code>bool ShouldDoFlyHeightVisual() </code>
| <code>bool ShouldDoFlyHeightVisual() </code>
| No Description Set
| No Description Set
|-
|-
| GetPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPlayerID | GetPlayerID]]
| <code>int GetPlayerID() </code>
| <code>int GetPlayerID() </code>
| Returns player ID of the player owning this hero
| Returns player ID of the player owning this hero
|-
|-
| GetLastHits
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetLastHits | GetLastHits]]
| <code>int GetLastHits() </code>
| <code>int GetLastHits() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetBaseAgility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseAgility | GetBaseAgility]]
| <code>float GetBaseAgility() </code>
| <code>float GetBaseAgility() </code>
| No Description Set
| No Description Set
|-
|-
| IsReincarnating
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsReincarnating | IsReincarnating]]
| <code>bool IsReincarnating() </code>
| <code>bool IsReincarnating() </code>
| No Description Set
| No Description Set
|-
|-
| SetBaseAgility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseAgility | SetBaseAgility]]
| <code>void SetBaseAgility(float ) </code>
| <code>void SetBaseAgility(float ) </code>
| No Description Set
| No Description Set
|-
|-
| IncrementLastHitMultikill
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| <code>void IncrementLastHitMultikill() </code>
| <code>void IncrementLastHitMultikill() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| RespawnHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RespawnHero | RespawnHero]]
| <code>void RespawnHero(bool , bool , bool ) </code>
| <code>void RespawnHero(bool , bool , bool ) </code>
| Respawn this hero.
| Respawn this hero.
|-
|-
| GetBaseStrength
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseStrength | GetBaseStrength]]
| <code>float GetBaseStrength() </code>
| <code>float GetBaseStrength() </code>
| No Description Set
| No Description Set
|-
|-
| GetDeathGoldCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeathGoldCost | GetDeathGoldCost]]
| <code>int GetDeathGoldCost() </code>
| <code>int GetDeathGoldCost() </code>
| No Description Set
| No Description Set
|-
|-
| GetManaRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetManaRegen | GetManaRegen]]
| <code>float GetManaRegen() </code>
| <code>float GetManaRegen() </code>
| Hero mana regen is affected by attributes.
| Hero mana regen is affected by attributes.
|-
|-
| ClearLastHitMultikill
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitMultikill | ClearLastHitMultikill]]
| <code>void ClearLastHitMultikill() </code>
| <code>void ClearLastHitMultikill() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| ModifyGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyGold | ModifyGold]]
| <code>int ModifyGold(int goldAmmt, bool reliable, int reason) </code>
| <code>int ModifyGold(int goldAmmt, bool reliable, int reason) </code>
| Gives this hero some gold. Args: ''int'' nGoldChange, ''bool'' bReliable, ''int'' reason
| Gives this hero some gold. Args: ''int'' nGoldChange, ''bool'' bReliable, ''int'' reason
|-
|-
| GetPrimaryStatValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryStatValue | GetPrimaryStatValue]]
| <code>float GetPrimaryStatValue() </code>
| <code>float GetPrimaryStatValue() </code>
| No Description Set
| No Description Set
|-
|-
| ClearStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearStreak | ClearStreak]]
| <code>void ClearStreak() </code>
| <code>void ClearStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetAgility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgility | GetAgility]]
| <code>float GetAgility() </code>
| <code>float GetAgility() </code>
| No Description Set
| No Description Set
|-
|-
| SetBuybackGoldLimitTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| <code>void SetBuybackGoldLimitTime(float ) </code>
| <code>void SetBuybackGoldLimitTime(float ) </code>
| Set the amount of time gold gain is limited after buying back.
| Set the amount of time gold gain is limited after buying back.
|-
|-
| CalculateStatBonus
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CalculateStatBonus | CalculateStatBonus]]
| <code>void CalculateStatBonus() </code>
| <code>void CalculateStatBonus() </code>
| Recalculate all stats after the hero gains stats.
| Recalculate all stats after the hero gains stats.
|-
|-
| GetBuybackCooldownTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCooldownTime | GetBuybackCooldownTime]]
| <code>float GetBuybackCooldownTime() </code>
| <code>float GetBuybackCooldownTime() </code>
| Return ''float'' value for the amount of time left on cooldown for this hero's buyback.
| Return ''float'' value for the amount of time left on cooldown for this hero's buyback.
|-
|-
| GetGoldBounty
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGoldBounty | GetGoldBounty]]
| <code>int GetGoldBounty() </code>
| <code>int GetGoldBounty() </code>
| No Description Set
| No Description Set
|-
|-
| GetHealthRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetHealthRegen | GetHealthRegen]]
| <code>float GetHealthRegen() </code>
| <code>float GetHealthRegen() </code>
| Hero health regen is affected by attributes.
| Hero health regen is affected by attributes.
|-
|-
| IncrementStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementStreak | IncrementStreak]]
| <code>void IncrementStreak() </code>
| <code>void IncrementStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| IsBuybackDisabledByReapersScythe
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsBuybackDisabledByReapersScythe | IsBuybackDisabledByReapersScythe]]
| <code>bool IsBuybackDisabledByReapersScythe() </code>
| <code>bool IsBuybackDisabledByReapersScythe() </code>
| No Description Set
| No Description Set
|-
|-
| GetBuybackCost
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCost | GetBuybackCost]]
| <code>int GetBuybackCost() </code>
| <code>int GetBuybackCost() </code>
| Return integer value for the gold cost of a buyback.
| Return integer value for the gold cost of a buyback.
|-
|-
| CanEarnGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CanEarnGold | CanEarnGold]]
| <code>bool CanEarnGold() </code>
| <code>bool CanEarnGold() </code>
| Returns boolean value result of buyback gold limit time less than game time.
| Returns boolean value result of buyback gold limit time less than game time.
|-
|-
| GetStrength
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrength | GetStrength]]
| <code>float GetStrength() </code>
| <code>float GetStrength() </code>
| No Description Set
| No Description Set
|-
|-
| GetAgilityGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgilityGain | GetAgilityGain]]
| <code>float GetAgilityGain() </code>
| <code>float GetAgilityGain() </code>
| No Description Set
| No Description Set
|-
|-
| GetNumAttackers
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetNumAttackers | GetNumAttackers]]
| <code>int GetNumAttackers() </code>
| <code>int GetNumAttackers() </code>
| No Description Set
| No Description Set
|-
|-
| GetCurrentXP
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetCurrentXP | GetCurrentXP]]
| <code>int GetCurrentXP() </code>
| <code>int GetCurrentXP() </code>
| Returns the amount of XP
| Returns the amount of XP
|-
|-
| SetAbilityPoints
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetAbilityPoints | SetAbilityPoints]]
| <code>void SetAbilityPoints(int ) </code>
| <code>void SetAbilityPoints(int ) </code>
| Sets the current unspent ability point's.
| Sets the current unspent ability point's.
|-
|-
| SetRespawnPosition
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetRespawnPosition | SetRespawnPosition]]
| <code>void SetRespawnPosition(Vector ) </code>
| <code>void SetRespawnPosition(Vector ) </code>
| No Description Set
| No Description Set
|-
|-
| ModifyIntellect
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyIntellect | ModifyIntellect]]
| <code>void ModifyIntellect(float ) </code>
| <code>void ModifyIntellect(float ) </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|-
|-
| SpendGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SpendGold | SpendGold]]
| <code>void SpendGold(int , int ) </code>
| <code>void SpendGold(int , int ) </code>
| Args: ''int'' nGold, ''int'' nReason
| Args: ''int'' nGold, ''int'' nReason
|-
|-
| UnitCanRespawn
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UnitCanRespawn | UnitCanRespawn]]
| <code>bool UnitCanRespawn() </code>
| <code>bool UnitCanRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| GetGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGold | GetGold]]
| <code>int GetGold() </code>
| <code>int GetGold() </code>
| Returns gold amount for the player owning this hero
| Returns gold amount for the player owning this hero
|-
|-
| PerformTaunt
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.PerformTaunt | PerformTaunt]]
| <code>void PerformTaunt() </code>
| <code>void PerformTaunt() </code>
| No Description Set
| No Description Set
|-
|-
| HeroLevelUp
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HeroLevelUp | HeroLevelUp]]
| <code>void HeroLevelUp(bool ) </code>
| <code>void HeroLevelUp(bool ) </code>
| Levels up the hero, true or false to play effects.
| Levels up the hero, true or false to play effects.
|-
|-
| SetGold
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetGold | SetGold]]
| <code>void SetGold(int , bool ) </code>
| <code>void SetGold(int , bool ) </code>
| Sets the gold amount for the player owning this hero
| Sets the gold amount for the player owning this hero
|-
|-
| HasAnyAvailableInventorySpace
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasAnyAvailableInventorySpace | HasAnyAvailableInventorySpace]]
| <code>bool HasAnyAvailableInventorySpace() </code>
| <code>bool HasAnyAvailableInventorySpace() </code>
| No Description Set
| No Description Set
|-
|-
| KilledHero
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.KilledHero | KilledHero]]
| <code>void KilledHero(handle , handle ) </code>
| <code>void KilledHero(handle , handle ) </code>
| Args: Hero, Inflictor
| Args: Hero, Inflictor
|-
|-
| GetAbilityPoints
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAbilityPoints | GetAbilityPoints]]
| <code>int GetAbilityPoints() </code>
| <code>int GetAbilityPoints() </code>
| Gets the current unspent ability point's.
| Gets the current unspent ability point's.
|-
|-
| HasRoomForItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasRoomForItem | HasRoomForItem]]
| <code>int HasRoomForItem(string , bool , bool ) </code>
| <code>int HasRoomForItem(string , bool , bool ) </code>
| Args: const char* pItemName, ''bool'' bIncludeStashCombines, ''bool'' bAllowSelling
| Args: const char* pItemName, ''bool'' bIncludeStashCombines, ''bool'' bAllowSelling
|-
|-
| GetAssists
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAssists | GetAssists]]
| <code>int GetAssists() </code>
| <code>int GetAssists() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| SetTimeUntilRespawn
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetTimeUntilRespawn | SetTimeUntilRespawn]]
| <code>void SetTimeUntilRespawn(float ) </code>
| <code>void SetTimeUntilRespawn(float ) </code>
| No Description Set
| No Description Set
|-
|-
| GetDeaths
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeaths | GetDeaths]]
| <code>int GetDeaths() </code>
| <code>int GetDeaths() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetTimeUntilRespawn
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetTimeUntilRespawn | GetTimeUntilRespawn]]
| <code>float GetTimeUntilRespawn() </code>
| <code>float GetTimeUntilRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| UpgradeAbility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UpgradeAbility | UpgradeAbility]]
| <code>void UpgradeAbility(handle ) </code>
| <code>void UpgradeAbility(handle ) </code>
| This upgrades the passed ability if it exists and the hero has enough ability point's.
| This upgrades the passed ability if it exists and the hero has enough ability point's.
|-
|-
| IncrementKills
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementKills | IncrementKills]]
| <code>void IncrementKills(int kills) </code>
| <code>void IncrementKills(int kills) </code>
| Passed ID is for the victim, killer ID is ID of the current hero. Value is stored in PlayerResource.
| Passed ID is for the victim, killer ID is ID of the current hero. Value is stored in PlayerResource.
|-
|-
| GetPrimaryAttribute
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryAttribute | GetPrimaryAttribute]]
| <code>int GetPrimaryAttribute() </code>
| <code>int GetPrimaryAttribute() </code>
| 0 = strength, 1 = agility, 2 = intelligence.
| 0 = strength, 1 = agility, 2 = intelligence.
|-
|-
| IncrementAssists
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementAssists | IncrementAssists]]
| <code>void IncrementAssists() </code>
| <code>void IncrementAssists() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| HasFlyingVision
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasFlyingVision | HasFlyingVision]]
| <code>bool HasFlyingVision() </code>
| <code>bool HasFlyingVision() </code>
| No Description Set
| No Description Set
|-
|-
| GetAttacker
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAttacker | GetAttacker]]
| <code>int GetAttacker(int ) </code>
| <code>int GetAttacker(int ) </code>
| No Description Set
| No Description Set
|-
|-
| GetKills
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetKills | GetKills]]
| <code>int GetKills() </code>
| <code>int GetKills() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetIncreasedAttackSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
| <code>float GetIncreasedAttackSpeed() </code>
| <code>float GetIncreasedAttackSpeed() </code>
| Hero attack speed is also affected by agility.
| Hero attack speed is also affected by agility.
|-
|-
| IncrementLastHitStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitStreak | IncrementLastHitStreak]]
| <code>void IncrementLastHitStreak() </code>
| <code>void IncrementLastHitStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| HasOwnerAbandoned
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasOwnerAbandoned | HasOwnerAbandoned]]
| <code>bool HasOwnerAbandoned() </code>
| <code>bool HasOwnerAbandoned() </code>
| No Description Set
| No Description Set
|-
|-
| WillReincarnate
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.WillReincarnate | WillReincarnate]]
| <code>bool WillReincarnate() </code>
| <code>bool WillReincarnate() </code>
| No Description Set
| No Description Set
|-
|-
| AddExperience
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.AddExperience | AddExperience]]
| <code>bool AddExperience(float , bool ) </code>
| <code>bool AddExperience(float , bool ) </code>
| Params: Float XP, Bool applyBotDifficultyScaling
| Params: Float XP, Bool applyBotDifficultyScaling
|-
|-
| GetMultipleKillCount
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMultipleKillCount | GetMultipleKillCount]]
| <code>int GetMultipleKillCount() </code>
| <code>int GetMultipleKillCount() </code>
| No Description Set
| No Description Set
|-
|-
| RecordLastHit
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RecordLastHit | RecordLastHit]]
| <code>void RecordLastHit() </code>
| <code>void RecordLastHit() </code>
| No Description Set
| No Description Set
|-
|-
| IncrementLastHits
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHits | IncrementLastHits]]
| <code>void IncrementLastHits() </code>
| <code>void IncrementLastHits() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetStatsBasedManaRegen
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
| <code>float GetStatsBasedManaRegen() </code>
| <code>float GetStatsBasedManaRegen() </code>
| Returns only the regen based on Intelligence.
| Returns only the regen based on Intelligence.
|-
|-
| GetBuybackGoldLimitTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackGoldLimitTime | GetBuybackGoldLimitTime]]
| <code>float GetBuybackGoldLimitTime() </code>
| <code>float GetBuybackGoldLimitTime() </code>
| Returns the amount of time gold gain is limited after buying back.
| Returns the amount of time gold gain is limited after buying back.
|-
|-
| SetCustomDeathXP
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetCustomDeathXP | SetCustomDeathXP]]
| <code>void SetCustomDeathXP(int ) </code>
| <code>void SetCustomDeathXP(int ) </code>
| Sets a custom experience value for this hero. {{tip|GameRules boolean must be set for this to work!}}
| Sets a custom experience value for this hero. {{tip|GameRules boolean must be set for this to work!}}
|-
|-
| GetBaseDamageMax
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMax | GetBaseDamageMax]]
| <code>int GetBaseDamageMax() </code>
| <code>int GetBaseDamageMax() </code>
| Hero damage is also affected by attributes.
| Hero damage is also affected by attributes.
|-
|-
| GetBaseDamageMin
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMin | GetBaseDamageMin]]
| <code>int GetBaseDamageMin() </code>
| <code>int GetBaseDamageMin() </code>
| Hero damage is also affected by attributes.
| Hero damage is also affected by attributes.
|-
|-
| GetStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStreak | GetStreak]]
| <code>int GetStreak() </code>
| <code>int GetStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetMostRecentDamageTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMostRecentDamageTime | GetMostRecentDamageTime]]
| <code>float GetMostRecentDamageTime() </code>
| <code>float GetMostRecentDamageTime() </code>
| No Description Set
| No Description Set
|-
|-
| SetBuyBackDisabledByReapersScythe
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuyBackDisabledByReapersScythe | SetBuyBackDisabledByReapersScythe]]
| <code>void SetBuyBackDisabledByReapersScythe(bool ) </code>
| <code>void SetBuyBackDisabledByReapersScythe(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| Buyback
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.Buyback | Buyback]]
| <code>void Buyback() </code>
| <code>void Buyback() </code>
| Spend the gold and buyback with this hero.
| Spend the gold and buyback with this hero.
|-
|-
| SetBaseStrength
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseStrength | SetBaseStrength]]
| <code>void SetBaseStrength(float ) </code>
| <code>void SetBaseStrength(float ) </code>
| No Description Set
| No Description Set
|-
|-
| SetBaseIntellect
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseIntellect | SetBaseIntellect]]
| <code>void SetBaseIntellect(float ) </code>
| <code>void SetBaseIntellect(float ) </code>
| No Description Set
| No Description Set
|-
|-
| GetStrengthGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrengthGain | GetStrengthGain]]
| <code>float GetStrengthGain() </code>
| <code>float GetStrengthGain() </code>
| No Description Set
| No Description Set
|-
|-
| IncrementDeaths
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDeaths | IncrementDeaths]]
| <code>void IncrementDeaths() </code>
| <code>void IncrementDeaths() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetRespawnTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetRespawnTime | GetRespawnTime]]
| <code>float GetRespawnTime() </code>
| <code>float GetRespawnTime() </code>
| No Description Set
| No Description Set
|-
|-
| ModifyAgility
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyAgility | ModifyAgility]]
| <code>void ModifyAgility(float ) </code>
| <code>void ModifyAgility(float ) </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|-
|-
| GetIntellectGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellectGain | GetIntellectGain]]
| <code>float GetIntellectGain() </code>
| <code>float GetIntellectGain() </code>
| No Description Set
| No Description Set
|-
|-
| ClearLastHitStreak
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitStreak | ClearLastHitStreak]]
| <code>void ClearLastHitStreak() </code>
| <code>void ClearLastHitStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| IncrementNearbyCreepDeaths
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
| <code>void IncrementNearbyCreepDeaths() </code>
| <code>void IncrementNearbyCreepDeaths() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| GetBaseIntellect
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseIntellect | GetBaseIntellect]]
| <code>float GetBaseIntellect() </code>
| <code>float GetBaseIntellect() </code>
| No Description Set
| No Description Set
|-
|-
| SetPlayerID
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetPlayerID | SetPlayerID]]
| <code>void SetPlayerID(int ) </code>
| <code>void SetPlayerID(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetBuybackCooldownTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| <code>void SetBuybackCooldownTime(float ) </code>
| <code>void SetBuybackCooldownTime(float ) </code>
| Sets the buyback cooldown time.
| Sets the buyback cooldown time.
|-
|-
| GetBonusDamageFromPrimaryStat
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBonusDamageFromPrimaryStat | GetBonusDamageFromPrimaryStat]]
| <code>int GetBonusDamageFromPrimaryStat() </code>
| <code>int GetBonusDamageFromPrimaryStat() </code>
| No Description Set
| No Description Set
|-
|-
| IncrementDenies
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDenies | IncrementDenies]]
| <code>void IncrementDenies() </code>
| <code>void IncrementDenies() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| ModifyStrength
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyStrength | ModifyStrength]]
| <code>void ModifyStrength(float ) </code>
| <code>void ModifyStrength(float ) </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
| Adds passed value to base attribute value, then calls CalculateStatBonus.
Line 3,491: Line 3,490:
! Description  
! Description  
|-
|-
| SetHPRegenGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPRegenGain | SetHPRegenGain]]
| <code>void SetHPRegenGain(float ) </code>
| <code>void SetHPRegenGain(float ) </code>
| Set the hit point's regen gained per level on this creature.
| Set the hit point's regen gained per level on this creature.
|-
|-
| SetDisableResistanceGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDisableResistanceGain | SetDisableResistanceGain]]
| <code>void SetDisableResistanceGain(float ) </code>
| <code>void SetDisableResistanceGain(float ) </code>
| Set the disable resistance gained per level on this creature.
| Set the disable resistance gained per level on this creature.
|-
|-
| SetAttackTimeGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetAttackTimeGain | SetAttackTimeGain]]
| <code>void SetAttackTimeGain(float ) </code>
| <code>void SetAttackTimeGain(float ) </code>
| Set the attack time gained per level on this creature.
| Set the attack time gained per level on this creature.
|-
|-
| SetMoveSpeedGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMoveSpeedGain | SetMoveSpeedGain]]
| <code>void SetMoveSpeedGain(int ) </code>
| <code>void SetMoveSpeedGain(int ) </code>
| Set the move speed gained per level on this creature.
| Set the move speed gained per level on this creature.
|-
|-
| CreatureLevelUp
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.CreatureLevelUp | CreatureLevelUp]]
| <code>void CreatureLevelUp(int ) </code>
| <code>void CreatureLevelUp(int ) </code>
| Level the creature up by the specified number of levels
| Level the creature up by the specified number of levels
|-
|-
| SetBountyGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetBountyGain | SetBountyGain]]
| <code>void SetBountyGain(int ) </code>
| <code>void SetBountyGain(int ) </code>
| Set the bounty gold gained per level on this creature.
| Set the bounty gold gained per level on this creature.
|-
|-
| SetXPGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetXPGain | SetXPGain]]
| <code>void SetXPGain(int ) </code>
| <code>void SetXPGain(int ) </code>
| Set the xp reward gained per level on this creature.
| Set the xp reward gained per level on this creature.
|-
|-
| SetChampion
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetChampion | SetChampion]]
| <code>void SetChampion(bool ) </code>
| <code>void SetChampion(bool ) </code>
| Flag this unit as a champion creature.
| Flag this unit as a champion creature.
|-
|-
| AddItemDrop
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.AddItemDrop | AddItemDrop]]
| <code>void AddItemDrop(handle ) </code>
| <code>void AddItemDrop(handle ) </code>
| Add the specified item drop to this creature
| Add the specified item drop to this creature
|-
|-
| SetManaRegenGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetManaRegenGain | SetManaRegenGain]]
| <code>void SetManaRegenGain(float ) </code>
| <code>void SetManaRegenGain(float ) </code>
| Set the mana point's regen gained per level on this creature.
| Set the mana point's regen gained per level on this creature.
|-
|-
| SetDamageGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDamageGain | SetDamageGain]]
| <code>void SetDamageGain(int ) </code>
| <code>void SetDamageGain(int ) </code>
| Set the damage gained per level on this creature.
| Set the damage gained per level on this creature.
|-
|-
| SetMagicResistanceGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMagicResistanceGain | SetMagicResistanceGain]]
| <code>void SetMagicResistanceGain(float ) </code>
| <code>void SetMagicResistanceGain(float ) </code>
| Set the magic resistance gained per level on this creature.
| Set the magic resistance gained per level on this creature.
|-
|-
| SetHPGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPGain | SetHPGain]]
| <code>void SetHPGain(int ) </code>
| <code>void SetHPGain(int ) </code>
| Set the hit point's gained per level on this creature.
| Set the hit point's gained per level on this creature.
|-
|-
| IsChampion
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.IsChampion | IsChampion]]
| <code>bool IsChampion() </code>
| <code>bool IsChampion() </code>
| Is this unit a champion?
| Is this unit a champion?
|-
|-
| SetManaGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetManaGain | SetManaGain]]
| <code>void SetManaGain(int ) </code>
| <code>void SetManaGain(int ) </code>
| Set the mana point's gained per level on this creature.
| Set the mana point's gained per level on this creature.
|-
|-
| SetArmorGain
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetArmorGain | SetArmorGain]]
| <code>void SetArmorGain(float ) </code>
| <code>void SetArmorGain(float ) </code>
| Set the armor gained per level on this creature.
| Set the armor gained per level on this creature.
Line 3,564: Line 3,563:
! Description  
! Description  
|-
|-
| SetInvulnCount
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.SetInvulnCount | SetInvulnCount]]
| <code>void SetInvulnCount(int ) </code>
| <code>void SetInvulnCount(int ) </code>
| Set the invulnerability counter of this building.
| Set the invulnerability counter of this building.
|-
|-
| GetInvulnCount
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.GetInvulnCount | GetInvulnCount]]
| <code>int GetInvulnCount() </code>
| <code>int GetInvulnCount() </code>
| Get the invulnerability count for a building.
| Get the invulnerability count for a building.
Line 3,581: Line 3,580:
! Description  
! Description  
|-
|-
| IsFacing
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsFacing | IsFacing]]
| <code>bool IsFacing(Vector , float ) </code>
| <code>bool IsFacing(Vector , float ) </code>
| ( vecTargetPosition, flAngleTolerance ) - returns true if the unit is within flAngleTolerance degrees of the target position
| ( vecTargetPosition, flAngleTolerance ) - returns true if the unit is within flAngleTolerance degrees of the target position
|-
|-
| SetSightConeAngle
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeAngle | SetSightConeAngle]]
| <code>void SetSightConeAngle(float ) </code>
| <code>void SetSightConeAngle(float ) </code>
| ( flAngleDegrees ) - sets angle in which the unit can see things up to sight range
| ( flAngleDegrees ) - sets angle in which the unit can see things up to sight range
|-
|-
| ActionState
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ActionState | ActionState]]
| <code>handle ActionState() </code>
| <code>handle ActionState() </code>
| return the ActionState object for this unit.
| return the ActionState object for this unit.
|-
|-
| FindSensedEnemies
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.FindSensedEnemies | FindSensedEnemies]]
| <code>table FindSensedEnemies() </code>
| <code>table FindSensedEnemies() </code>
| returns list of all enemy units within this unit's sight cone or sensing sphere
| returns list of all enemy units within this unit's sight cone or sensing sphere
|-
|-
| GetUnitName
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetUnitName | GetUnitName]]
| <code>string GetUnitName() </code>
| <code>string GetUnitName() </code>
| get the unit name for this unit.
| get the unit name for this unit.
|-
|-
| GetMaxStamina
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxStamina | GetMaxStamina]]
| <code>float GetMaxStamina() </code>
| <code>float GetMaxStamina() </code>
| returns maximum stamina amount.
| returns maximum stamina amount.
|-
|-
| SetBlocking
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetBlocking | SetBlocking]]
| <code>void SetBlocking(bool ) </code>
| <code>void SetBlocking(bool ) </code>
| ( bShouldBlock ) - Set the blocking state of this unit.
| ( bShouldBlock ) - Set the blocking state of this unit.
|-
|-
| GetStamina
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetStamina | GetStamina]]
| <code>float GetStamina() </code>
| <code>float GetStamina() </code>
| returns current stamina amount.
| returns current stamina amount.
|-
|-
| GetMovementTargetEntity
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMovementTargetEntity | GetMovementTargetEntity]]
| <code>handle GetMovementTargetEntity() </code>
| <code>handle GetMovementTargetEntity() </code>
| Returs the movement target entity, if set.
| Returs the movement target entity, if set.
|-
|-
| IsBlocking
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsBlocking | IsBlocking]]
| <code>bool IsBlocking() </code>
| <code>bool IsBlocking() </code>
| is this unit blocking?
| is this unit blocking?
|-
|-
| GetSensingSphereRange
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSensingSphereRange | GetSensingSphereRange]]
| <code>float GetSensingSphereRange() </code>
| <code>float GetSensingSphereRange() </code>
| returns range of unit's 360 degree sensing sphere
| returns range of unit's 360 degree sensing sphere
|-
|-
| SetMovementTargetEntity
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetEntity | SetMovementTargetEntity]]
| <code>void SetMovementTargetEntity(handle , float ) </code>
| <code>void SetMovementTargetEntity(handle , float ) </code>
| ( hTargetEntity, flTargetRange ) - Try to move this unit to the given range from the target entity.
| ( hTargetEntity, flTargetRange ) - Try to move this unit to the given range from the target entity.
|-
|-
| SetTurnRate
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetTurnRate | SetTurnRate]]
| <code>void SetTurnRate(float ) </code>
| <code>void SetTurnRate(float ) </code>
| ( flTurnRate ) - sets unit's turn rate in degrees per second
| ( flTurnRate ) - sets unit's turn rate in degrees per second
|-
|-
| GetSightConeAngle
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeAngle | GetSightConeAngle]]
| <code>float GetSightConeAngle() </code>
| <code>float GetSightConeAngle() </code>
| returns angle in which the unit can see things up to sight range
| returns angle in which the unit can see things up to sight range
|-
|-
| GetMaxSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxSpeed | GetMaxSpeed]]
| <code>float GetMaxSpeed() </code>
| <code>float GetMaxSpeed() </code>
| returns unit's max speed
| returns unit's max speed
|-
|-
| GrantItem
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GrantItem | GrantItem]]
| <code>void GrantItem(string , bool ) </code>
| <code>void GrantItem(string , bool ) </code>
| ( sItemName ) - grant an item to the unit by name.
| ( sItemName ) - grant an item to the unit by name.
|-
|-
| SetMovementTargetPosition
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetPosition | SetMovementTargetPosition]]
| <code>void SetMovementTargetPosition(Vector , float ) </code>
| <code>void SetMovementTargetPosition(Vector , float ) </code>
| ( vecTargetPosition, flTargetRange ) - Try to move this unit to the given range from the target point.
| ( vecTargetPosition, flTargetRange ) - Try to move this unit to the given range from the target point.
|-
|-
| ClearMovementTarget
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ClearMovementTarget | ClearMovementTarget]]
| <code>void ClearMovementTarget() </code>
| <code>void ClearMovementTarget() </code>
| Clear any movement target entity/position.
| Clear any movement target entity/position.
|-
|-
| SetSightConeRange
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeRange | SetSightConeRange]]
| <code>void SetSightConeRange(float ) </code>
| <code>void SetSightConeRange(float ) </code>
| ( fRange ) - set range of unit's sight cone
| ( fRange ) - set range of unit's sight cone
|-
|-
| SetMaxSpeed
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMaxSpeed | SetMaxSpeed]]
| <code>void SetMaxSpeed(float ) </code>
| <code>void SetMaxSpeed(float ) </code>
| ( flMaxSpeed ) - sets unit's max speed
| ( flMaxSpeed ) - sets unit's max speed
|-
|-
| GetSightConeRange
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeRange | GetSightConeRange]]
| <code>float GetSightConeRange() </code>
| <code>float GetSightConeRange() </code>
| returns range of unit's sight cone
| returns range of unit's sight cone
|-
|-
| GetTurnRate
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetTurnRate | GetTurnRate]]
| <code>float GetTurnRate() </code>
| <code>float GetTurnRate() </code>
| returns unit's turn rate in degrees per second
| returns unit's turn rate in degrees per second
|-
|-
| SetSensingSphereRange
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSensingSphereRange | SetSensingSphereRange]]
| <code>void SetSensingSphereRange(float ) </code>
| <code>void SetSensingSphereRange(float ) </code>
| ( flSightRange ) - set range of unit's 360 degree sensing sphere
| ( flSightRange ) - set range of unit's 360 degree sensing sphere
Line 3,682: Line 3,681:
! Description  
! Description  
|-
|-
| SetCustomHeroMaxLevel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomHeroMaxLevel | SetCustomHeroMaxLevel]]
| <code>void SetCustomHeroMaxLevel(int maxLevel) </code>
| <code>void SetCustomHeroMaxLevel(int maxLevel) </code>
| Allows definition of the max level heroes can achieve (default is 25).
| Allows definition of the max level heroes can achieve (default is 25).
|-
|-
| SetUseCustomHeroLevels
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetUseCustomHeroLevels | SetUseCustomHeroLevels]]
| <code>void SetUseCustomHeroLevels(bool ) </code>
| <code>void SetUseCustomHeroLevels(bool ) </code>
| Turn on custom-defined XP values for hero level ups. The ''table'' should be defined before switching this on.
| Turn on custom-defined XP values for hero level ups. The ''table'' should be defined before switching this on.
|-
|-
| SetBuybackEnabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBuybackEnabled | SetBuybackEnabled]]
| <code>void SetBuybackEnabled(bool ) </code>
| <code>void SetBuybackEnabled(bool ) </code>
| Enables or disables buyback completely
| Enables or disables buyback completely
|-
|-
| SetCustomXPRequiredToReachNextLevel
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomXPRequiredToReachNextLevel | SetCustomXPRequiredToReachNextLevel]]
| <code>void SetCustomXPRequiredToReachNextLevel(handle ) </code>
| <code>void SetCustomXPRequiredToReachNextLevel(handle ) </code>
| Allows definition of a ''table'' of hero XP values.
| Allows definition of a ''table'' of hero XP values.
|-
|-
| SetBotThinkingEnabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBotThinkingEnabled | SetBotThinkingEnabled]]
| <code>void SetBotThinkingEnabled(bool ) </code>
| <code>void SetBotThinkingEnabled(bool ) </code>
| Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc.
| Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc.
|-
|-
| SetCustomBuybackCostEnabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCostEnabled | SetCustomBuybackCostEnabled]]
| <code>void SetCustomBuybackCostEnabled(bool ) </code>
| <code>void SetCustomBuybackCostEnabled(bool ) </code>
| Turns on capability to define custom buyback costs.
| Turns on capability to define custom buyback costs.
|-
|-
| SetTopBarTeamValuesVisible
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesVisible | SetTopBarTeamValuesVisible]]
| <code>void SetTopBarTeamValuesVisible(bool ) </code>
| <code>void SetTopBarTeamValuesVisible(bool ) </code>
| Turning on/off the team values on the top game bar.
| Turning on/off the team values on the top game bar.
|-
|-
| SetTopBarTeamValuesOverride
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesOverride | SetTopBarTeamValuesOverride]]
| <code>void SetTopBarTeamValuesOverride(bool ) </code>
| <code>void SetTopBarTeamValuesOverride(bool ) </code>
| Override the values of the team values on the top game bar.
| Override the values of the team values on the top game bar.
|-
|-
| SetAlwaysShowPlayerInventory
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetAlwaysShowPlayerInventory | SetAlwaysShowPlayerInventory]]
| <code>void SetAlwaysShowPlayerInventory(bool ) </code>
| <code>void SetAlwaysShowPlayerInventory(bool ) </code>
| Show the player hero's inventory in the HUD, regardless of what unit is selected.
| Show the player hero's inventory in the HUD, regardless of what unit is selected.
|-
|-
| SetRemoveIllusionsOnDeath
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRemoveIllusionsOnDeath | SetRemoveIllusionsOnDeath]]
| <code>void SetRemoveIllusionsOnDeath(bool ) </code>
| <code>void SetRemoveIllusionsOnDeath(bool ) </code>
| Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds.
| Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds.
|-
|-
| ClientLoadGridNav
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.ClientLoadGridNav | ClientLoadGridNav]]
| <code>void ClientLoadGridNav() </code>
| <code>void ClientLoadGridNav() </code>
| Tell clients that they need to load gridnav information. Used for things like allowing clients to identify valid locations to place buildings.
| Tell clients that they need to load gridnav information. Used for things like allowing clients to identify valid locations to place buildings.
|-
|-
| SetFogOfWarDisabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetFogOfWarDisabled | SetFogOfWarDisabled]]
| <code>void SetFogOfWarDisabled(bool ) </code>
| <code>void SetFogOfWarDisabled(bool ) </code>
| Turn the fog of war on or off.
| Turn the fog of war on or off.
|-
|-
| SetRecommendedItemsDisabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRecommendedItemsDisabled | SetRecommendedItemsDisabled]]
| <code>void SetRecommendedItemsDisabled(bool ) </code>
| <code>void SetRecommendedItemsDisabled(bool ) </code>
| Turn the panel for showing recommended items at the shop off/on. Takes a ''bool''.
| Turn the panel for showing recommended items at the shop off/on. Takes a ''bool''.
|-
|-
| SetGoldSoundDisabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetGoldSoundDisabled | SetGoldSoundDisabled]]
| <code>void SetGoldSoundDisabled(bool ) </code>
| <code>void SetGoldSoundDisabled(bool ) </code>
| Turn the sound when gold is acquired off/on. Takes a ''bool''.
| Turn the sound when gold is acquired off/on. Takes a ''bool''.
|-
|-
| SetTowerBackdoorProtectionEnabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTowerBackdoorProtectionEnabled | SetTowerBackdoorProtectionEnabled]]
| <code>void SetTowerBackdoorProtectionEnabled(bool ) </code>
| <code>void SetTowerBackdoorProtectionEnabled(bool ) </code>
| Enables/Disables tower backdoor protection
| Enables/Disables tower backdoor protection
|-
|-
| SetTopBarTeamValue
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValue | SetTopBarTeamValue]]
| <code>void SetTopBarTeamValue(int , int ) </code>
| <code>void SetTopBarTeamValue(int , int ) </code>
| Set the team values on the top game bar.
| Set the team values on the top game bar.
|-
|-
| SetCustomBuybackCooldownEnabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCooldownEnabled | SetCustomBuybackCooldownEnabled]]
| <code>void SetCustomBuybackCooldownEnabled(bool ) </code>
| <code>void SetCustomBuybackCooldownEnabled(bool ) </code>
| Turns on capability to define custom buyback cooldowns.
| Turns on capability to define custom buyback cooldowns.
|-
|-
| SetOverrideSelectionEntity
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetOverrideSelectionEntity | SetOverrideSelectionEntity]]
| <code>void SetOverrideSelectionEntity(handle unit) </code>
| <code>void SetOverrideSelectionEntity(handle unit) </code>
| Set an override for the default selection entity, instead of each player's hero.
| Set an override for the default selection entity, instead of each player's hero.
|-
|-
| SetCameraDistanceOverride
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCameraDistanceOverride | SetCameraDistanceOverride]]
| <code>void SetCameraDistanceOverride(float ) </code>
| <code>void SetCameraDistanceOverride(float ) </code>
| Set a different camera distance; dota default is 1134.
| Set a different camera distance; dota default is 1134.
Line 3,767: Line 3,766:
! Description  
! Description  
|-
|-
| SetTextReplaceString
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceString | SetTextReplaceString]]
| <code>void SetTextReplaceString(string ) </code>
| <code>void SetTextReplaceString(string ) </code>
| Set the text replace ''string'' for this quest
| Set the text replace ''string'' for this quest
|-
|-
| CompleteQuest
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.CompleteQuest | CompleteQuest]]
| <code>void CompleteQuest() </code>
| <code>void CompleteQuest() </code>
| Mark this quest complete
| Mark this quest complete
|-
|-
| RemoveSubquest
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.RemoveSubquest | RemoveSubquest]]
| <code>void RemoveSubquest(handle ) </code>
| <code>void RemoveSubquest(handle ) </code>
| Remove a subquest from this quest
| Remove a subquest from this quest
|-
|-
| SetTextReplaceValue
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceValue | SetTextReplaceValue]]
| <code>void SetTextReplaceValue(int , int ) </code>
| <code>void SetTextReplaceValue(int , int ) </code>
| Set a quest value
| Set a quest value
|-
|-
| GetSubquest
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquest | GetSubquest]]
| <code>handle GetSubquest(int ) </code>
| <code>handle GetSubquest(int ) </code>
| Finds a subquest from this quest by index
| Finds a subquest from this quest by index
|-
|-
| GetSubquestByName
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquestByName | GetSubquestByName]]
| <code>handle GetSubquestByName(string ) </code>
| <code>handle GetSubquestByName(string ) </code>
| Finds a subquest from this quest by name
| Finds a subquest from this quest by name
|-
|-
| AddSubquest
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.AddSubquest | AddSubquest]]
| <code>void AddSubquest(handle ) </code>
| <code>void AddSubquest(handle ) </code>
| Add a subquest to this quest
| Add a subquest to this quest
Line 3,804: Line 3,803:
! Description  
! Description  
|-
|-
| SetTextReplaceString
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceString | SetTextReplaceString]]
| <code>void SetTextReplaceString(string ) </code>
| <code>void SetTextReplaceString(string ) </code>
| Set the text replace ''string'' for this subquest
| Set the text replace ''string'' for this subquest
|-
|-
| CompleteSubquest
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.CompleteSubquest | CompleteSubquest]]
| <code>void CompleteSubquest() </code>
| <code>void CompleteSubquest() </code>
| Mark this subquest complete
| Mark this subquest complete
|-
|-
| SetTextReplaceValue
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceValue | SetTextReplaceValue]]
| <code>void SetTextReplaceValue(int , int ) </code>
| <code>void SetTextReplaceValue(int , int ) </code>
| Set a subquest value
| Set a subquest value
Line 3,825: Line 3,824:
! Description  
! Description  
|-
|-
| ExpensiveInstantRayCast
| [[Dota 2 Workshop Tools/Scripting/API/CPhysicsComponent.ExpensiveInstantRayCast | ExpensiveInstantRayCast]]
| <code>bool ExpensiveInstantRayCast(Vector , Vector , handle ) </code>
| <code>bool ExpensiveInstantRayCast(Vector , Vector , handle ) </code>
| Do an instant (i.e. blocking) Ray Cast. Will do a handle/queue version later. Don't plan to use this for real!
| Do an instant (i.e. blocking) Ray Cast. Will do a handle/queue version later. Don't plan to use this for real!
Line 3,838: Line 3,837:
! Description  
! Description  
|-
|-
| ForceSpawn
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.ForceSpawn | ForceSpawn]]
| <code>void ForceSpawn() </code>
| <code>void ForceSpawn() </code>
| ForceSpawn() : Spawns all of the entities the point_template is pointing at.
| ForceSpawn() : Spawns all of the entities the point_template is pointing at.
|-
|-
| GetSpawnedEntities
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.GetSpawnedEntities | GetSpawnedEntities]]
| <code>handle GetSpawnedEntities() </code>
| <code>handle GetSpawnedEntities() </code>
| GetSpawnedEntities() : Get the list of the most recent spawned entities
| GetSpawnedEntities() : Get the list of the most recent spawned entities
|-
|-
| SetSpawnCallback
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.SetSpawnCallback | SetSpawnCallback]]
| <code>void SetSpawnCallback(handle , handle ) </code>
| <code>void SetSpawnCallback(handle , handle ) </code>
| SetSpawnCallback( hCallbackFunc, hCallbackScope, hCallbackData ) : Set a callback for when the template spawns entities. The spawned entities will be passed in as an array.
| SetSpawnCallback( hCallbackFunc, hCallbackScope, hCallbackData ) : Set a callback for when the template spawns entities. The spawned entities will be passed in as an array.
|-
|-
| DeleteCreatedSpawnGroups
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.DeleteCreatedSpawnGroups | DeleteCreatedSpawnGroups]]
| <code>void DeleteCreatedSpawnGroups() </code>
| <code>void DeleteCreatedSpawnGroups() </code>
| DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this.
| DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this.
Line 3,863: Line 3,862:
! Description  
! Description  
|-
|-
| SetAnimation
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAnimation | SetAnimation]]
| <code>void SetAnimation(string ) </code>
| <code>void SetAnimation(string ) </code>
| Pass ''string'' for the animation to play on this model
| Pass ''string'' for the animation to play on this model
|-
|-
| SetVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetVelocity | SetVelocity]]
| <code>void SetVelocity(Vector velocity) </code>
| <code>void SetVelocity(Vector velocity) </code>
| No Description Set
| No Description Set
|-
|-
| SetBodyGroup
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetBodyGroup | SetBodyGroup]]
| <code>void SetBodyGroup(string ) </code>
| <code>void SetBodyGroup(string ) </code>
| No Description Set
| No Description Set
|-
|-
| AddImpulseAtPosition
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddImpulseAtPosition | AddImpulseAtPosition]]
| <code>void AddImpulseAtPosition(Vector , Vector ) </code>
| <code>void AddImpulseAtPosition(Vector , Vector ) </code>
| Apply an impulse at a worldspace position to the physics
| Apply an impulse at a worldspace position to the physics
|-
|-
| SetMaterialGroup
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetMaterialGroup | SetMaterialGroup]]
| <code>void SetMaterialGroup(utlstringtoken ) </code>
| <code>void SetMaterialGroup(utlstringtoken ) </code>
| No Description Set
| No Description Set
|-
|-
| SetAngularVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAngularVelocity | SetAngularVelocity]]
| <code>void SetAngularVelocity(Vector ) </code>
| <code>void SetAngularVelocity(Vector ) </code>
| No Description Set
| No Description Set
|-
|-
| LookupSequence
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.LookupSequence | LookupSequence]]
| <code><> LookupSequence(string ) </code>
| <code><> LookupSequence(string ) </code>
| Returns a sequence id given a name
| Returns a sequence id given a name
|-
|-
| SequenceDuration
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SequenceDuration | SequenceDuration]]
| <code>float SequenceDuration(string ) </code>
| <code>float SequenceDuration(string ) </code>
| Returns the duration in seconds of the specified sequence
| Returns the duration in seconds of the specified sequence
|-
|-
| AddVelocity
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddVelocity | AddVelocity]]
| <code>void AddVelocity(Vector , Vector ) </code>
| <code>void AddVelocity(Vector , Vector ) </code>
| Add linear and angular velocity to the physics object
| Add linear and angular velocity to the physics object
|-
|-
| IsAttachedToParent
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.IsAttachedToParent | IsAttachedToParent]]
| <code>bool IsAttachedToParent() </code>
| <code>bool IsAttachedToParent() </code>
| Is attached to parent
| Is attached to parent
|-
|-
| DetachFromParent
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.DetachFromParent | DetachFromParent]]
| <code>void DetachFromParent() </code>
| <code>void DetachFromParent() </code>
| Detach from its parent
| Detach from its parent
|-
|-
| GetSequence
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.GetSequence | GetSequence]]
| <code><> GetSequence() </code>
| <code><> GetSequence() </code>
| Returns the active sequence
| Returns the active sequence
Line 3,920: Line 3,919:
! Description  
! Description  
|-
|-
| IsSequenceFinished
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.IsSequenceFinished | IsSequenceFinished]]
| <code>bool IsSequenceFinished() </code>
| <code>bool IsSequenceFinished() </code>
| Ask whether the main sequence is done playing
| Ask whether the main sequence is done playing
|-
|-
| ScriptLookupAttachment
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.ScriptLookupAttachment | ScriptLookupAttachment]]
| <code>int ScriptLookupAttachment(string ) </code>
| <code>int ScriptLookupAttachment(string ) </code>
| Get the named attachment id
| Get the named attachment id
|-
|-
| SetModelScale
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetModelScale | SetModelScale]]
| <code>void SetModelScale(float modelScale) </code>
| <code>void SetModelScale(float modelScale) </code>
| ( flScale ) - set scale of entity's model
| ( flScale ) - set scale of entity's model
|-
|-
| GetAttachmentAngles
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentAngles | GetAttachmentAngles]]
| <code>Vector GetAttachmentAngles(int ) </code>
| <code>Vector GetAttachmentAngles(int ) </code>
| Get the attachement id's angles as a p,y,r ''vector''
| Get the attachement id's angles as a p,y,r ''vector''
|-
|-
| SetPoseParameter
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetPoseParameter | SetPoseParameter]]
| <code>float SetPoseParameter(string , float ) </code>
| <code>float SetPoseParameter(string , float ) </code>
| Set the specified pose parameter to the specified value
| Set the specified pose parameter to the specified value
|-
|-
| GetAttachmentOrigin
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentOrigin | GetAttachmentOrigin]]
| <code>Vector GetAttachmentOrigin(int ) </code>
| <code>Vector GetAttachmentOrigin(int ) </code>
| Get the attachement id's origin ''vector''
| Get the attachement id's origin ''vector''
|-
|-
| SetBodygroup
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetBodygroup | SetBodygroup]]
| <code>void SetBodygroup(int , int ) </code>
| <code>void SetBodygroup(int , int ) </code>
| Sets a bodygroup
| Sets a bodygroup
Line 3,957: Line 3,956:
! Description  
! Description  
|-
|-
| GetEquippedWeapons
| [[Dota 2 Workshop Tools/Scripting/API/CBaseCombatCharacter.GetEquippedWeapons | GetEquippedWeapons]]
| <code>table GetEquippedWeapons() </code>
| <code>table GetEquippedWeapons() </code>
| GetEquippedWeapons() : Returns an array of all the equipped weapons
| GetEquippedWeapons() : Returns an array of all the equipped weapons
|-
|-
| GetWeaponCount
| [[Dota 2 Workshop Tools/Scripting/API/CBaseCombatCharacter.GetWeaponCount | GetWeaponCount]]
| <code>int GetWeaponCount() </code>
| <code>int GetWeaponCount() </code>
| GetWeaponCount() : Gets the number of weapons currently equipped
| GetWeaponCount() : Gets the number of weapons currently equipped
Line 3,974: Line 3,973:
! Description  
! Description  
|-
|-
| ProjectileDodge
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.ProjectileDodge | ProjectileDodge]]
| <code>void ProjectileDodge(handle ) </code>
| <code>void ProjectileDodge(handle ) </code>
| Makes the specified unit dodge projectiles
| Makes the specified unit dodge projectiles
|-
|-
| CreateLinearProjectile
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateLinearProjectile | CreateLinearProjectile]]
| <code>int CreateLinearProjectile(handle ) </code>
| <code>int CreateLinearProjectile(handle ) </code>
| Creates a linear projectile and returns the projectile ID
| Creates a linear projectile and returns the projectile ID
|-
|-
| DestroyLinearProjectile
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.DestroyLinearProjectile | DestroyLinearProjectile]]
| <code>void DestroyLinearProjectile(int ) </code>
| <code>void DestroyLinearProjectile(int ) </code>
| Destroys the linear projectile matching the argument ID
| Destroys the linear projectile matching the argument ID
|-
|-
| CreateTrackingProjectile
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateTrackingProjectile | CreateTrackingProjectile]]
| <code>void CreateTrackingProjectile(handle ) </code>
| <code>void CreateTrackingProjectile(handle ) </code>
| Creates a tracking projectile
| Creates a tracking projectile
Line 3,999: Line 3,998:
! Description  
! Description  
|-
|-
| Enable
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Enable | Enable]]
| <code>void Enable() </code>
| <code>void Enable() </code>
| Enable the trigger
| Enable the trigger
|-
|-
| IsTouching
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.IsTouching | IsTouching]]
| <code>bool IsTouching(handle ) </code>
| <code>bool IsTouching(handle ) </code>
| Checks whether the passed entity is touching the trigger.
| Checks whether the passed entity is touching the trigger.
|-
|-
| Disable
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Disable | Disable]]
| <code>void Disable() </code>
| <code>void Disable() </code>
| Disable the trigger
| Disable the trigger
Line 4,020: Line 4,019:
! Description  
! Description  
|-
|-
| SpawnEntityAtEntityOrigin
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtEntityOrigin | SpawnEntityAtEntityOrigin]]
| <code>void SpawnEntityAtEntityOrigin(handle ) </code>
| <code>void SpawnEntityAtEntityOrigin(handle ) </code>
| Create an entity at the location of a specified entity instance
| Create an entity at the location of a specified entity instance
|-
|-
| SpawnEntityAtNamedEntityOrigin
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtNamedEntityOrigin | SpawnEntityAtNamedEntityOrigin]]
| <code>void SpawnEntityAtNamedEntityOrigin(string ) </code>
| <code>void SpawnEntityAtNamedEntityOrigin(string ) </code>
| Create an entity at the location of a named entity
| Create an entity at the location of a named entity
|-
|-
| SpawnEntityAtLocation
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtLocation | SpawnEntityAtLocation]]
| <code>void SpawnEntityAtLocation(Vector , Vector ) </code>
| <code>void SpawnEntityAtLocation(Vector , Vector ) </code>
| Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll)
| Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll)
|-
|-
| SpawnEntity
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntity | SpawnEntity]]
| <code>void SpawnEntity() </code>
| <code>void SpawnEntity() </code>
| Create an entity at the location of the maker
| Create an entity at the location of the maker
Line 4,045: Line 4,044:
! Description  
! Description  
|-
|-
| StartVote
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAVoteSystem.StartVote | StartVote]]
| <code>void StartVote(handle ) </code>
| <code>void StartVote(handle ) </code>
| Starts a vote, based upon a ''table'' of parameters
| Starts a vote, based upon a ''table'' of parameters
Line 4,058: Line 4,057:
! Description  
! Description  
|-
|-
| HasTag
| [[Dota 2 Workshop Tools/Scripting/API/CMarkupVolumeTagged.HasTag | HasTag]]
| <code>bool HasTag(string ) </code>
| <code>bool HasTag(string ) </code>
| Does this volume have the given tag.
| Does this volume have the given tag.
Line 4,071: Line 4,070:
! Description  
! Description  
|-
|-
| GetValue
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.GetValue | GetValue]]
| <code>table GetValue(string ) </code>
| <code>table GetValue(string ) </code>
| Reads a spawn key
| Reads a spawn key
|-
|-
| AddResource
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.AddResource | AddResource]]
| <code>void AddResource(string ) </code>
| <code>void AddResource(string ) </code>
| Precaches a specific resource
| Precaches a specific resource
Line 4,088: Line 4,087:
! Description  
! Description  
|-
|-
| GetValue
| [[Dota 2 Workshop Tools/Scripting/API/CScriptKeyValues.GetValue | GetValue]]
| <code>table GetValue(string ) </code>
| <code>table GetValue(string ) </code>
| Reads a spawn key
| Reads a spawn key
Line 4,103: Line 4,102:
! Description  
! Description  
|-
|-
| SetParticleAlwaysSimulate
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleAlwaysSimulate | SetParticleAlwaysSimulate]]
| <code>void SetParticleAlwaysSimulate(int ) </code>
| <code>void SetParticleAlwaysSimulate(int ) </code>
| No Description Set
| No Description Set
|-
|-
| SetParticleControl
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControl | SetParticleControl]]
| <code>void SetParticleControl(int particleId, int controlIndex, Vector controlData) </code>
| <code>void SetParticleControl(int particleId, int controlIndex, Vector controlData) </code>
| Set the control point data for a control on a particle effect
| Set the control point data for a control on a particle effect
|-
|-
| CreateParticleForPlayer
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticleForPlayer | CreateParticleForPlayer]]
| <code>int CreateParticleForPlayer(string particleName, int particleAttach, handle owningEntity, handle owningPlayer) </code>
| <code>int CreateParticleForPlayer(string particleName, int particleAttach, handle owningEntity, handle owningPlayer) </code>
| Creates a new particle effect that only plays for the specified player
| Creates a new particle effect that only plays for the specified player
|-
|-
| ReleaseParticleIndex
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.ReleaseParticleIndex | ReleaseParticleIndex]]
| <code>void ReleaseParticleIndex(int particleId) </code>
| <code>void ReleaseParticleIndex(int particleId) </code>
| Frees the specified particle index
| Frees the specified particle index
|-
|-
| GetParticleReplacement
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.GetParticleReplacement | GetParticleReplacement]]
| <code>string GetParticleReplacement(string , handle ) </code>
| <code>string GetParticleReplacement(string , handle ) </code>
| No Description Set
| No Description Set
|-
|-
| SetParticleControlEnt
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControlEnt | SetParticleControlEnt]]
| <code>void SetParticleControlEnt(int , int , handle , int , string , Vector , bool ) </code>
| <code>void SetParticleControlEnt(int , int , handle , int , string , Vector , bool ) </code>
| No Description Set
| No Description Set
|-
|-
| CreateParticle
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticle | CreateParticle]]
| <code>int CreateParticle(string particleName, int particleAttach, handle owningEntity) </code>
| <code>int CreateParticle(string particleName, int particleAttach, handle owningEntity) </code>
| Creates a new particle effect
| Creates a new particle effect
Line 4,140: Line 4,139:
! Description  
! Description  
|-
|-
| GetHero
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHero | GetHero]]
| <code>handle GetHero(int heroId) </code>
| <code>handle GetHero(int heroId) </code>
| Get the Nth hero in the Hero List
| Get the Nth hero in the Hero List
|-
|-
| GetAllHeroes
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetAllHeroes | GetAllHeroes]]
| <code>table GetAllHeroes() </code>
| <code>table GetAllHeroes() </code>
| Returns all the heroes in the world
| Returns all the heroes in the world
|-
|-
| GetHeroCount
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHeroCount | GetHeroCount]]
| <code>int GetHeroCount() </code>
| <code>int GetHeroCount() </code>
| Returns the number of heroes in the world
| Returns the number of heroes in the world
Line 4,161: Line 4,160:
! Description  
! Description  
|-
|-
| Init
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.Init | Init]]
| <code>void Init(int ) </code>
| <code>void Init(int ) </code>
| Initialize with number of outputs
| Initialize with number of outputs
|-
|-
| AddOutput
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.AddOutput | AddOutput]]
| <code>void AddOutput(string , string ) </code>
| <code>void AddOutput(string , string ) </code>
| Add an output
| Add an output
Line 4,178: Line 4,177:
! Description  
! Description  
|-
|-
| SetVolumetrics
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetVolumetrics | SetVolumetrics]]
| <code>void SetVolumetrics(bool , float , float , int , float ) </code>
| <code>void SetVolumetrics(bool , float , float , int , float ) </code>
| Turn on/off light volumetrics: ''bool'' bOn, ''float'' flIntensity, ''float'' flNoise, ''int'' nPlanes, ''float'' flPlaneOffset
| Turn on/off light volumetrics: ''bool'' bOn, ''float'' flIntensity, ''float'' flNoise, ''int'' nPlanes, ''float'' flPlaneOffset
|-
|-
| SetFarRange
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetFarRange | SetFarRange]]
| <code>void SetFarRange(float ) </code>
| <code>void SetFarRange(float ) </code>
| Set light maximum range
| Set light maximum range
|-
|-
| SetQuadraticAttenuation
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetQuadraticAttenuation | SetQuadraticAttenuation]]
| <code>void SetQuadraticAttenuation(float ) </code>
| <code>void SetQuadraticAttenuation(float ) </code>
| Set light quadratic attenuation value
| Set light quadratic attenuation value
|-
|-
| SetNearRange
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetNearRange | SetNearRange]]
| <code>void SetNearRange(float ) </code>
| <code>void SetNearRange(float ) </code>
| Set light minimum range
| Set light minimum range
|-
|-
| SetLinearAttenuation
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetLinearAttenuation | SetLinearAttenuation]]
| <code>void SetLinearAttenuation(float ) </code>
| <code>void SetLinearAttenuation(float ) </code>
| Set light linear attenuation value
| Set light linear attenuation value
Line 4,207: Line 4,206:
! Description  
! Description  
|-
|-
| QueryString
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryString | QueryString]]
| <code>string QueryString(utlstringtoken , string ) </code>
| <code>string QueryString(utlstringtoken , string ) </code>
| Query ''string'' data for this key
| Query ''string'' data for this key
|-
|-
| QueryNumber
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryNumber | QueryNumber]]
| <code>float QueryNumber(utlstringtoken , float ) </code>
| <code>float QueryNumber(utlstringtoken , float ) </code>
| Query number data for this key
| Query number data for this key
|-
|-
| QueryInt
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryInt | QueryInt]]
| <code>int QueryInt(utlstringtoken , int ) </code>
| <code>int QueryInt(utlstringtoken , int ) </code>
| Query ''int'' data for this key
| Query ''int'' data for this key
|-
|-
| QueryColor
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryColor | QueryColor]]
| <code>Vector QueryColor(utlstringtoken , Vector ) </code>
| <code>Vector QueryColor(utlstringtoken , Vector ) </code>
| Query color data for this key
| Query color data for this key
|-
|-
| QueryVector
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryVector | QueryVector]]
| <code>Vector QueryVector(utlstringtoken , Vector ) </code>
| <code>Vector QueryVector(utlstringtoken , Vector ) </code>
| Query ''vector'' data for this key
| Query ''vector'' data for this key
|-
|-
| QueryFloat
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryFloat | QueryFloat]]
| <code>float QueryFloat(utlstringtoken , float ) </code>
| <code>float QueryFloat(utlstringtoken , float ) </code>
| Query ''float'' data for this key
| Query ''float'' data for this key
Line 4,240: Line 4,239:
! Description  
! Description  
|-
|-
| DisableMotion
| [[Dota 2 Workshop Tools/Scripting/API/CPhysicsProp.DisableMotion | DisableMotion]]
| <code>void DisableMotion() </code>
| <code>void DisableMotion() </code>
| Enable motion for the prop
| Enable motion for the prop
|-
|-
| EnableMotion
| [[Dota 2 Workshop Tools/Scripting/API/CPhysicsProp.EnableMotion | EnableMotion]]
| <code>void EnableMotion() </code>
| <code>void EnableMotion() </code>
| Enable motion for the prop
| Enable motion for the prop
Line 4,257: Line 4,256:
! Description  
! Description  
|-
|-
| SetPostGameTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetPostGameTime | SetPostGameTime]]
| <code>void SetPostGameTime(float time) </code>
| <code>void SetPostGameTime(float time) </code>
| Sets the amount of time players have between the game ending and the server disconnecting them.
| Sets the amount of time players have between the game ending and the server disconnecting them.
|-
|-
| State_Get
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.State_Get | State_Get]]
| <code><> State_Get() </code>
| <code><> State_Get() </code>
| Get the current Gamerules state
| Get the current Gamerules state
|-
|-
| MakeTeamLose
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.MakeTeamLose | MakeTeamLose]]
| <code>void MakeTeamLose(int team) </code>
| <code>void MakeTeamLose(int team) </code>
| Makes ths specified team lose
| Makes ths specified team lose
|-
|-
| Defeated
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.Defeated | Defeated]]
| <code>void Defeated() </code>
| <code>void Defeated() </code>
| Kills the ancient, etc.
| Kills the ancient, etc.
|-
|-
| ResetToHeroSelection
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.ResetToHeroSelection | ResetToHeroSelection]]
| <code>void ResetToHeroSelection() </code>
| <code>void ResetToHeroSelection() </code>
| Restart the game at hero selection
| Restart the game at hero selection
|-
|-
| SendCustomMessage
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SendCustomMessage | SendCustomMessage]]
| <code>void SendCustomMessage(string , int , int ) </code>
| <code>void SendCustomMessage(string , int , int ) </code>
| Sends a ''string'' to the defined team.
| Sends a ''string'' to the defined team.
|-
|-
| SetCreepMinimapIconScale
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCreepMinimapIconScale | SetCreepMinimapIconScale]]
| <code>void SetCreepMinimapIconScale(float scale) </code>
| <code>void SetCreepMinimapIconScale(float scale) </code>
| Scale the creep icons on the minimap.
| Scale the creep icons on the minimap.
|-
|-
| GetNianFightStartTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetNianFightStartTime | GetNianFightStartTime]]
| <code>float GetNianFightStartTime() </code>
| <code>float GetNianFightStartTime() </code>
| Gets the start time for the Nian fight
| Gets the start time for the Nian fight
|-
|-
| NumDroppedItems
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.NumDroppedItems | NumDroppedItems]]
| <code>int NumDroppedItems() </code>
| <code>int NumDroppedItems() </code>
| Returns the number of items currently dropped on the ground
| Returns the number of items currently dropped on the ground
|-
|-
| SetGoldTickTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldTickTime | SetGoldTickTime]]
| <code>void SetGoldTickTime(float ) </code>
| <code>void SetGoldTickTime(float ) </code>
| Set the time ''int''erval between auto gold increases.
| Set the time ''int''erval between auto gold increases.
|-
|-
| GetMatchSignoutComplete
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetMatchSignoutComplete | GetMatchSignoutComplete]]
| <code>bool GetMatchSignoutComplete() </code>
| <code>bool GetMatchSignoutComplete() </code>
| Have we received the post match signout message that includes reward information
| Have we received the post match signout message that includes reward information
|-
|-
| GetDifficulty
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetDifficulty | GetDifficulty]]
| <code>int GetDifficulty() </code>
| <code>int GetDifficulty() </code>
| Returns difficulty level of the custom game mode
| Returns difficulty level of the custom game mode
|-
|-
| ResetDefeated
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.ResetDefeated | ResetDefeated]]
| <code>void ResetDefeated() </code>
| <code>void ResetDefeated() </code>
| Restart after killing the ancient, etc.
| Restart after killing the ancient, etc.
|-
|-
| GetNianTotalDamageTaken
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetNianTotalDamageTaken | GetNianTotalDamageTaken]]
| <code>int GetNianTotalDamageTaken() </code>
| <code>int GetNianTotalDamageTaken() </code>
| For New Bloom, get total damage taken by the Nian / Year Beast
| For New Bloom, get total damage taken by the Nian / Year Beast
|-
|-
| SetHeroRespawnEnabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroRespawnEnabled | SetHeroRespawnEnabled]]
| <code>void SetHeroRespawnEnabled(bool canRespawn) </code>
| <code>void SetHeroRespawnEnabled(bool canRespawn) </code>
| Control if the normal DOTA hero respawn rules apply.
| Control if the normal DOTA hero respawn rules apply.
|-
|-
| SetGameWinner
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGameWinner | SetGameWinner]]
| <code>void SetGameWinner(int team) </code>
| <code>void SetGameWinner(int team) </code>
| Makes ths specified team win
| Makes ths specified team win
|-
|-
| SetHeroSelectionTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroSelectionTime | SetHeroSelectionTime]]
| <code>void SetHeroSelectionTime(float time) </code>
| <code>void SetHeroSelectionTime(float time) </code>
| Sets the amount of time players have to pick their hero.
| Sets the amount of time players have to pick their hero.
|-
|-
| SetUseUniversalShopMode
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseUniversalShopMode | SetUseUniversalShopMode]]
| <code>void SetUseUniversalShopMode(bool enabled) </code>
| <code>void SetUseUniversalShopMode(bool enabled) </code>
| When true, all items are available at as long as any shop is in range, including Secret Shop items
| When true, all items are available at as long as any shop is in range, including Secret Shop items
|-
|-
| SetCustomGameDifficulty
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCustomGameDifficulty | SetCustomGameDifficulty]]
| <code>void SetCustomGameDifficulty(int ) </code>
| <code>void SetCustomGameDifficulty(int ) </code>
| Set the difficulty level of the custom game mode
| Set the difficulty level of the custom game mode
|-
|-
| SetUseCustomHeroXPValues
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseCustomHeroXPValues | SetUseCustomHeroXPValues]]
| <code>void SetUseCustomHeroXPValues(bool ) </code>
| <code>void SetUseCustomHeroXPValues(bool ) </code>
| Allows heroes in the map to give a specific amount of XP (this value must be set).
| Allows heroes in the map to give a specific amount of XP (this value must be set).
|-
|-
| Playtesting_UpdateAddOnKeyValues
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.Playtesting_UpdateAddOnKeyValues | Playtesting_UpdateAddOnKeyValues]]
| <code>void Playtesting_UpdateAddOnKeyValues() </code>
| <code>void Playtesting_UpdateAddOnKeyValues() </code>
| Updates custom hero, unit and ability KeyValues in memory with the latest values from disk
| Updates custom hero, unit and ability KeyValues in memory with the latest values from disk
|-
|-
| IsDaytime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.IsDaytime | IsDaytime]]
| <code>bool IsDaytime() </code>
| <code>bool IsDaytime() </code>
| Is it day time.
| Is it day time.
|-
|-
| GetDroppedItem
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetDroppedItem | GetDroppedItem]]
| <code>handle GetDroppedItem(int dropIndex) </code>
| <code>handle GetDroppedItem(int dropIndex) </code>
| Gets the Xth dropped item
| Gets the Xth dropped item
|-
|-
| SetTreeRegrowTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetTreeRegrowTime | SetTreeRegrowTime]]
| <code>void SetTreeRegrowTime(float time) </code>
| <code>void SetTreeRegrowTime(float time) </code>
| Sets the tree regrow time in seconds.
| Sets the tree regrow time in seconds.
|-
|-
| SetFirstBloodActive
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetFirstBloodActive | SetFirstBloodActive]]
| <code>void SetFirstBloodActive(bool ) </code>
| <code>void SetFirstBloodActive(bool ) </code>
| Sets whether First Blood has been triggered.
| Sets whether First Blood has been triggered.
|-
|-
| GetGameModeEntity
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetGameModeEntity | GetGameModeEntity]]
| <code>handle GetGameModeEntity() </code>
| <code>handle GetGameModeEntity() </code>
| Get the game mode entity
| Get the game mode entity
|-
|-
| DidMatchSignoutTimeOut
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.DidMatchSignoutTimeOut | DidMatchSignoutTimeOut]]
| <code>bool DidMatchSignoutTimeOut() </code>
| <code>bool DidMatchSignoutTimeOut() </code>
| true when we have waited some time after end of the game and not received signout
| true when we have waited some time after end of the game and not received signout
|-
|-
| SetTimeOfDay
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetTimeOfDay | SetTimeOfDay]]
| <code>void SetTimeOfDay(float time) </code>
| <code>void SetTimeOfDay(float time) </code>
| Set the time of day.
| Set the time of day.
|-
|-
| GetCustomGameDifficulty
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetCustomGameDifficulty | GetCustomGameDifficulty]]
| <code>int GetCustomGameDifficulty() </code>
| <code>int GetCustomGameDifficulty() </code>
| Returns the difficulty level of the custom game mode
| Returns the difficulty level of the custom game mode
|-
|-
| SetOverlayHealthBarUnit
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetOverlayHealthBarUnit | SetOverlayHealthBarUnit]]
| <code>void SetOverlayHealthBarUnit(handle unit, int style) </code>
| <code>void SetOverlayHealthBarUnit(handle unit, int style) </code>
| Show this unit's health on the overlay health bar
| Show this unit's health on the overlay health bar
|-
|-
| SetSameHeroSelectionEnabled
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetSameHeroSelectionEnabled | SetSameHeroSelectionEnabled]]
| <code>void SetSameHeroSelectionEnabled(bool enabled) </code>
| <code>void SetSameHeroSelectionEnabled(bool enabled) </code>
| When true, players can repeatedly pick the same hero.
| When true, players can repeatedly pick the same hero.
|-
|-
| SetGoldPerTick
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldPerTick | SetGoldPerTick]]
| <code>void SetGoldPerTick(int ) </code>
| <code>void SetGoldPerTick(int ) </code>
| Set the auto gold increase per timed ''int''erval.
| Set the auto gold increase per timed ''int''erval.
|-
|-
| SetPreGameTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetPreGameTime | SetPreGameTime]]
| <code>void SetPreGameTime(float time) </code>
| <code>void SetPreGameTime(float time) </code>
| Sets the amount of time players have between picking their hero and game start.
| Sets the amount of time players have between picking their hero and game start.
|-
|-
| GetGameTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetGameTime | GetGameTime]]
| <code>float GetGameTime() </code>
| <code>float GetGameTime() </code>
| Returns the number of seconds elapsed since map start. This time doesn't count up when the game is paused
| Returns the number of seconds elapsed since map start. This time doesn't count up when the game is paused
|-
|-
| SetUseBaseGoldBountyOnHeroes
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseBaseGoldBountyOnHeroes | SetUseBaseGoldBountyOnHeroes]]
| <code>void SetUseBaseGoldBountyOnHeroes(bool ) </code>
| <code>void SetUseBaseGoldBountyOnHeroes(bool ) </code>
| Heroes will use the basic NPC functionality for determining their bounty, rather than DOTA specific formulas.
| Heroes will use the basic NPC functionality for determining their bounty, rather than DOTA specific formulas.
|-
|-
| SetRuneSpawnTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetRuneSpawnTime | SetRuneSpawnTime]]
| <code>void SetRuneSpawnTime(float time) </code>
| <code>void SetRuneSpawnTime(float time) </code>
| Sets the amount of time between rune spawns.
| Sets the amount of time between rune spawns.
|-
|-
| SetNianFightStartTime
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetNianFightStartTime | SetNianFightStartTime]]
| <code>void SetNianFightStartTime(float ) </code>
| <code>void SetNianFightStartTime(float ) </code>
| Sets the start time for the Nian fight
| Sets the start time for the Nian fight
|-
|-
| SetHeroMinimapIconSize
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroMinimapIconSize | SetHeroMinimapIconSize]]
| <code>void SetHeroMinimapIconSize(int iconSize) </code>
| <code>void SetHeroMinimapIconSize(int iconSize) </code>
| (nMinimapHeroIconSize) - Set the hero minimap icon size.
| (nMinimapHeroIconSize) - Set the hero minimap icon size.
|-
|-
| SetSafeToLeave
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetSafeToLeave | SetSafeToLeave]]
| <code>void SetSafeToLeave(bool safeToLeave) </code>
| <code>void SetSafeToLeave(bool safeToLeave) </code>
| Mark this game as safe to leave.
| Mark this game as safe to leave.
|-
|-
| GetTimeOfDay
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetTimeOfDay | GetTimeOfDay]]
| <code>float GetTimeOfDay() </code>
| <code>float GetTimeOfDay() </code>
| Get the time of day
| Get the time of day
|-
|-
| SetRuneMinimapIconScale
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetRuneMinimapIconScale | SetRuneMinimapIconScale]]
| <code>void SetRuneMinimapIconScale(float scale) </code>
| <code>void SetRuneMinimapIconScale(float scale) </code>
| Scale the rune icons on the minimap.
| Scale the rune icons on the minimap.
Line 4,430: Line 4,429:
! Description  
! Description  
|-
|-
| GetMinExposure
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMinExposure | GetMinExposure]]
| <code>float GetMinExposure() </code>
| <code>float GetMinExposure() </code>
| Gets min exposure for this tonemap controller
| Gets min exposure for this tonemap controller
|-
|-
| GetMaxExposure
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMaxExposure | GetMaxExposure]]
| <code>float GetMaxExposure() </code>
| <code>float GetMaxExposure() </code>
| Gets max exposure for this tonemap controller
| Gets max exposure for this tonemap controller
|-
|-
| GetBloomScale
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetBloomScale | GetBloomScale]]
| <code>float GetBloomScale() </code>
| <code>float GetBloomScale() </code>
| Gets bloomscale for this tonemap controller
| Gets bloomscale for this tonemap controller
|-
|-
| SetMaxExposure
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetMaxExposure | SetMaxExposure]]
| <code>void SetMaxExposure(float ) </code>
| <code>void SetMaxExposure(float ) </code>
| Sets max exposure for this tonemap controller
| Sets max exposure for this tonemap controller
|-
|-
| SetMinExposure
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetMinExposure | SetMinExposure]]
| <code>void SetMinExposure(float ) </code>
| <code>void SetMinExposure(float ) </code>
| Sets min exposure for this tonemap controller
| Sets min exposure for this tonemap controller
|-
|-
| SetBloomScale
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetBloomScale | SetBloomScale]]
| <code>void SetBloomScale(float ) </code>
| <code>void SetBloomScale(float ) </code>
| Sets bloom scale for this tonemap controller
| Sets bloom scale for this tonemap controller
Line 4,463: Line 4,462:
! Description  
! Description  
|-
|-
| VertArrow
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VertArrow | VertArrow]]
| <code>void VertArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| <code>void VertArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| Draws a vertical arrow. Specify endpoint's in world space.
| Draws a vertical arrow. Specify endpoint's in world space.
|-
|-
| Sphere
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Sphere | Sphere]]
| <code>void Sphere(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void Sphere(Vector , float , int , int , int , int , bool , float ) </code>
| Draws a wireframe sphere. Specify center in world space.
| Draws a wireframe sphere. Specify center in world space.
|-
|-
| YawArrow
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.YawArrow | YawArrow]]
| <code>void YawArrow(Vector , float , float , float , int , int , int , int , bool , float ) </code>
| <code>void YawArrow(Vector , float , float , float , int , int , int , int , bool , float ) </code>
| Draws a arrow associated with a specific yaw. Specify endpoint's in world space.
| Draws a arrow associated with a specific yaw. Specify endpoint's in world space.
|-
|-
| Capsule
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Capsule | Capsule]]
| <code>void Capsule(Vector , Quaternion , float , float , int , int , int , int , bool , float ) </code>
| <code>void Capsule(Vector , Quaternion , float , float , int , int , int , int , bool , float ) </code>
| Draws a capsule. Specify base in world space.
| Draws a capsule. Specify base in world space.
|-
|-
| SweptBox
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SweptBox | SweptBox]]
| <code>void SweptBox(Vector , Vector , Vector , Vector , Quaternion , int , int , int , int , float ) </code>
| <code>void SweptBox(Vector , Vector , Vector , Vector , Quaternion , int , int , int , int , float ) </code>
| Draws a swept box. Specify endpoint's in world space and the bounds in local space.
| Draws a swept box. Specify endpoint's in world space and the bounds in local space.
|-
|-
| EntitySkeleton
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntitySkeleton | EntitySkeleton]]
| <code>void EntitySkeleton(ehandle , float ) </code>
| <code>void EntitySkeleton(ehandle , float ) </code>
| Draws the skeleton of the entity
| Draws the skeleton of the entity
|-
|-
| Line2D
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line2D | Line2D]]
| <code>void Line2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| <code>void Line2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| Draws a line between two point's in screenspace
| Draws a line between two point's in screenspace
|-
|-
| Texture
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Texture | Texture]]
| <code>void Texture(string , Vector2D , Vector2D , int , int , int , int , Vector2D , Vector2D , float ) </code>
| <code>void Texture(string , Vector2D , Vector2D , int , int , int , int , Vector2D , Vector2D , float ) </code>
| Draws a screen-space texture. Coordinates are in pixels.
| Draws a screen-space texture. Coordinates are in pixels.
|-
|-
| EntityAxis
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAxis | EntityAxis]]
| <code>void EntityAxis(ehandle , float , bool , float ) </code>
| <code>void EntityAxis(ehandle , float , bool , float ) </code>
| Draws the axis of the entity origin
| Draws the axis of the entity origin
|-
|-
| Cross3D
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3D | Cross3D]]
| <code>void Cross3D(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void Cross3D(Vector , float , int , int , int , int , bool , float ) </code>
| Draws a world-aligned cross. Specify origin in world space.
| Draws a world-aligned cross. Specify origin in world space.
|-
|-
| PushAndClearDebugOverlayScope
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushAndClearDebugOverlayScope | PushAndClearDebugOverlayScope]]
| <code>void PushAndClearDebugOverlayScope(utlstringtoken ) </code>
| <code>void PushAndClearDebugOverlayScope(utlstringtoken ) </code>
| Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id.
| Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id.
|-
|-
| Triangle
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Triangle | Triangle]]
| <code>void Triangle(Vector , Vector , Vector , int , int , int , int , bool , float ) </code>
| <code>void Triangle(Vector , Vector , Vector , int , int , int , int , bool , float ) </code>
| Draws a filled triangle. Specify vertices in world space.
| Draws a filled triangle. Specify vertices in world space.
|-
|-
| Line
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line | Line]]
| <code>void Line(Vector , Vector , int , int , int , int , bool , float ) </code>
| <code>void Line(Vector , Vector , int , int , int , int , bool , float ) </code>
| Draws a line between two point's
| Draws a line between two point's
|-
|-
| BoxAngles
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.BoxAngles | BoxAngles]]
| <code>void BoxAngles(Vector , Vector , Vector , Quaternion , int , int , int , int , bool , float ) </code>
| <code>void BoxAngles(Vector , Vector , Vector , Quaternion , int , int , int , int , bool , float ) </code>
| Draws an oriented box at the origin. Specify bounds in local space.
| Draws an oriented box at the origin. Specify bounds in local space.
|-
|-
| Axis
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Axis | Axis]]
| <code>void Axis(Vector , Quaternion , float , bool , float ) </code>
| <code>void Axis(Vector , Quaternion , float , bool , float ) </code>
| Draws an axis. Specify origin + orientation in world space.
| Draws an axis. Specify origin + orientation in world space.
|-
|-
| DrawTickMarkedLine
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.DrawTickMarkedLine | DrawTickMarkedLine]]
| <code>void DrawTickMarkedLine(Vector , Vector , float , int , int , int , int , int , bool , float ) </code>
| <code>void DrawTickMarkedLine(Vector , Vector , float , int , int , int , int , int , bool , float ) </code>
| Draws a dashed line. Specify endpoint's in world space.
| Draws a dashed line. Specify endpoint's in world space.
|-
|-
| CircleScreenOriented
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.CircleScreenOriented | CircleScreenOriented]]
| <code>void CircleScreenOriented(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void CircleScreenOriented(Vector , float , int , int , int , int , bool , float ) </code>
| Draws a circle oriented to the screen. Specify center in world space.
| Draws a circle oriented to the screen. Specify center in world space.
|-
|-
| Cross
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross | Cross]]
| <code>void Cross(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void Cross(Vector , float , int , int , int , int , bool , float ) </code>
| Draws a screen-aligned cross. Specify origin in world space.
| Draws a screen-aligned cross. Specify origin in world space.
|-
|-
| EntityText
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityText | EntityText]]
| <code>void EntityText(ehandle , int , string , int , int , int , int , float ) </code>
| <code>void EntityText(ehandle , int , string , int , int , int , int , float ) </code>
| Draws text on an entity
| Draws text on an entity
|-
|-
| Circle
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Circle | Circle]]
| <code>void Circle(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| <code>void Circle(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| Draws a circle. Specify center in world space.
| Draws a circle. Specify center in world space.
|-
|-
| EntityAttachments
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAttachments | EntityAttachments]]
| <code>void EntityAttachments(ehandle , float ) </code>
| <code>void EntityAttachments(ehandle , float ) </code>
| Draws the attachments of the entity
| Draws the attachments of the entity
|-
|-
| PopDebugOverlayScope
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PopDebugOverlayScope | PopDebugOverlayScope]]
| <code>void PopDebugOverlayScope() </code>
| <code>void PopDebugOverlayScope() </code>
| Pops the identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
| Pops the identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
|-
|-
| Cone
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cone | Cone]]
| <code>void Cone(Vector , Vector , float , float , int , int , int , int , bool , float ) </code>
| <code>void Cone(Vector , Vector , float , float , int , int , int , int , bool , float ) </code>
| Draws a wireframe cone. Specify endpoint and direction in world space.
| Draws a wireframe cone. Specify endpoint and direction in world space.
|-
|-
| Box
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Box | Box]]
| <code>void Box(Vector , Vector , int , int , int , int , bool , float ) </code>
| <code>void Box(Vector , Vector , int , int , int , int , bool , float ) </code>
| Draws a world-space axis-aligned box. Specify bounds in world space.
| Draws a world-space axis-aligned box. Specify bounds in world space.
|-
|-
| Cross3DOriented
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3DOriented | Cross3DOriented]]
| <code>void Cross3DOriented(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| <code>void Cross3DOriented(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| Draws an oriented cross. Specify origin in world space.
| Draws an oriented cross. Specify origin in world space.
|-
|-
| RemoveAllInScope
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.RemoveAllInScope | RemoveAllInScope]]
| <code>void RemoveAllInScope(utlstringtoken ) </code>
| <code>void RemoveAllInScope(utlstringtoken ) </code>
| Removes all overlays marked with a specific identifier, regardless of their lifetime.
| Removes all overlays marked with a specific identifier, regardless of their lifetime.
|-
|-
| EntityBounds
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityBounds | EntityBounds]]
| <code>void EntityBounds(ehandle , int , int , int , int , bool , float ) </code>
| <code>void EntityBounds(ehandle , int , int , int , int , bool , float ) </code>
| Draws bounds of an entity
| Draws bounds of an entity
|-
|-
| ''Vector''Text3D
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VectorText3D | VectorText3D]]
| <code>void ''Vector''Text3D(Vector , Quaternion , string , int , int , int , int , bool , float ) </code>
| <code>void VectorText3D(Vector , Quaternion , string , int , int , int , int , bool , float ) </code>
| Draws 3D text. Specify origin + orientation in world space.
| Draws 3D text. Specify origin + orientation in world space.
|-
|-
| FilledRect2D
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.FilledRect2D | FilledRect2D]]
| <code>void FilledRect2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| <code>void FilledRect2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| Draws a screen-space filled 2D rectangle. Coordinates are in pixels.
| Draws a screen-space filled 2D rectangle. Coordinates are in pixels.
|-
|-
| SolidCone
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SolidCone | SolidCone]]
| <code>void SolidCone(Vector , Vector , float , float , int , int , int , int , bool , float ) </code>
| <code>void SolidCone(Vector , Vector , float , float , int , int , int , int , bool , float ) </code>
| Draws a solid cone. Specify endpoint and direction in world space.
| Draws a solid cone. Specify endpoint and direction in world space.
|-
|-
| UnitTestCycleOverlayRenderType
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.UnitTestCycleOverlayRenderType | UnitTestCycleOverlayRenderType]]
| <code>void UnitTestCycleOverlayRenderType() </code>
| <code>void UnitTestCycleOverlayRenderType() </code>
| Toggles the overlay render type, for unit tests
| Toggles the overlay render type, for unit tests
|-
|-
| HorzArrow
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.HorzArrow | HorzArrow]]
| <code>void HorzArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| <code>void HorzArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| Draws a horizontal arrow. Specify endpoint's in world space.
| Draws a horizontal arrow. Specify endpoint's in world space.
|-
|-
| PushDebugOverlayScope
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushDebugOverlayScope | PushDebugOverlayScope]]
| <code>void PushDebugOverlayScope(utlstringtoken ) </code>
| <code>void PushDebugOverlayScope(utlstringtoken ) </code>
| Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
| Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
|-
|-
| Text
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Text | Text]]
| <code>void Text(Vector , int , string , float , int , int , int , int , float ) </code>
| <code>void Text(Vector , int , string , float , int , int , int , int , float ) </code>
| Draws 2D text. Specify origin in world space.
| Draws 2D text. Specify origin in world space.
Line 4,608: Line 4,607:
! Description  
! Description  
|-
|-
| GetCurrentScene
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetCurrentScene | GetCurrentScene]]
| <code>handle GetCurrentScene() </code>
| <code>handle GetCurrentScene() </code>
| Returns the instance of the oldest active scene entity '''(if any).
| Returns the instance of the oldest active scene entity '''(if any).
|-
|-
| GetSceneByIndex
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetSceneByIndex | GetSceneByIndex]]
| <code>handle GetSceneByIndex(int ) </code>
| <code>handle GetSceneByIndex(int ) </code>
| Returns the instance of the scene entity at the specified index.
| Returns the instance of the scene entity at the specified index.
Line 4,625: Line 4,624:
! Description  
! Description  
|-
|-
| IsPaused
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPaused | IsPaused]]
| <code>bool IsPaused() </code>
| <code>bool IsPaused() </code>
| If this scene is currently paused.
| If this scene is currently paused.
|-
|-
| EstimateLength
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.EstimateLength | EstimateLength]]
| <code>float EstimateLength() </code>
| <code>float EstimateLength() </code>
| Returns length of this scene in seconds.
| Returns length of this scene in seconds.
|-
|-
| LoadSceneFromString
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.LoadSceneFromString | LoadSceneFromString]]
| <code>bool LoadSceneFromString(string , string ) </code>
| <code>bool LoadSceneFromString(string , string ) </code>
| given a dummy scene name and a vcd ''string'', load the scene
| given a dummy scene name and a vcd ''string'', load the scene
|-
|-
| Start
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Start | Start]]
| <code>void Start(handle ) </code>
| <code>void Start(handle ) </code>
| Start scene playback, takes activatorEntity as param
| Start scene playback, takes activatorEntity as param
|-
|-
| FindCamera
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindCamera | FindCamera]]
| <code>handle FindCamera() </code>
| <code>handle FindCamera() </code>
| Get the camera
| Get the camera
|-
|-
| Cancel
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Cancel | Cancel]]
| <code>void Cancel() </code>
| <code>void Cancel() </code>
| Cancel scene playback
| Cancel scene playback
|-
|-
| IsPlayingBack
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPlayingBack | IsPlayingBack]]
| <code>bool IsPlayingBack() </code>
| <code>bool IsPlayingBack() </code>
| If this scene is currently playing.
| If this scene is currently playing.
|-
|-
| AddBroadcastTeamTarget
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.AddBroadcastTeamTarget | AddBroadcastTeamTarget]]
| <code>void AddBroadcastTeamTarget(int ) </code>
| <code>void AddBroadcastTeamTarget(int ) </code>
| Adds a team (by index) to the broadcast list
| Adds a team (by index) to the broadcast list
|-
|-
| RemoveBroadcastTeamTarget
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.RemoveBroadcastTeamTarget | RemoveBroadcastTeamTarget]]
| <code>void RemoveBroadcastTeamTarget(int ) </code>
| <code>void RemoveBroadcastTeamTarget(int ) </code>
| Removes a team (by index) from the broadcast list
| Removes a team (by index) from the broadcast list
|-
|-
| FindNamedEntity
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindNamedEntity | FindNamedEntity]]
| <code>handle FindNamedEntity(string ) </code>
| <code>handle FindNamedEntity(string ) </code>
| given an entity reference, such as !target, get actual entity from scene object
| given an entity reference, such as !target, get actual entity from scene object
Line 4,674: Line 4,673:
! Description  
! Description  
|-
|-
| IsTraversable
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsTraversable | IsTraversable]]
| <code>bool IsTraversable(Vector ) </code>
| <code>bool IsTraversable(Vector ) </code>
| Checks whether the given position is traversable
| Checks whether the given position is traversable
|-
|-
| IsNearbyTree
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsNearbyTree | IsNearbyTree]]
| <code>bool IsNearbyTree(Vector , float , bool ) </code>
| <code>bool IsNearbyTree(Vector , float , bool ) </code>
| (position, radius, checkFullTreeRadius?) Checks whether there are any trees overlapping the given point
| (position, radius, checkFullTreeRadius?) Checks whether there are any trees overlapping the given point
|-
|-
| IsBlocked
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsBlocked | IsBlocked]]
| <code>bool IsBlocked(Vector ) </code>
| <code>bool IsBlocked(Vector ) </code>
| Checks whether the given position is blocked
| Checks whether the given position is blocked
|-
|-
| WorldToGridPosX
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosX | WorldToGridPosX]]
| <code>int WorldToGridPosX(float ) </code>
| <code>int WorldToGridPosX(float ) </code>
| Get the X index of a given world X position
| Get the X index of a given world X position
|-
|-
| GridPosToWorldCenterX
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterX | GridPosToWorldCenterX]]
| <code>float GridPosToWorldCenterX(int ) </code>
| <code>float GridPosToWorldCenterX(int ) </code>
| Get the X position of the center of a given X index
| Get the X position of the center of a given X index
|-
|-
| WorldToGridPosY
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosY | WorldToGridPosY]]
| <code>int WorldToGridPosY(float ) </code>
| <code>int WorldToGridPosY(float ) </code>
| Get the Y index of a given world Y position
| Get the Y index of a given world Y position
|-
|-
| GridPosToWorldCenterY
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterY | GridPosToWorldCenterY]]
| <code>float GridPosToWorldCenterY(int ) </code>
| <code>float GridPosToWorldCenterY(int ) </code>
| Get the Y position of the center of a given Y index
| Get the Y position of the center of a given Y index
|-
|-
| RegrowAllTrees
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.RegrowAllTrees | RegrowAllTrees]]
| <code>void RegrowAllTrees() </code>
| <code>void RegrowAllTrees() </code>
| Causes all trees in the map to regrow
| Causes all trees in the map to regrow
Line 4,717: Line 4,716:
! Description  
! Description  
|-
|-
| GetFloat
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetFloat | GetFloat]]
| <code>table GetFloat(string name) </code>
| <code>table GetFloat(string name) </code>
| GetFloat(name) : returns the convar as a ''float''. May return ''nil'' if no such convar.
| GetFloat(name) : returns the convar as a ''float''. May return ''nil'' if no such convar.
|-
|-
| GetStr
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetStr | GetStr]]
| <code>table GetStr(string variableName) </code>
| <code>table GetStr(string variableName) </code>
| GetStr(name) : returns the convar as a ''string''. May return ''nil'' if no such convar.
| GetStr(name) : returns the convar as a ''string''. May return ''nil'' if no such convar.
|-
|-
| SetStr
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetStr | SetStr]]
| <code>void SetStr(string , string ) </code>
| <code>void SetStr(string , string ) </code>
| SetStr(name, val) : sets the value of the convar to the ''string''.
| SetStr(name, val) : sets the value of the convar to the ''string''.
|-
|-
| SetInt
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetInt | SetInt]]
| <code>void SetInt(string , int ) </code>
| <code>void SetInt(string , int ) </code>
| SetInt(name, val) : sets the value of the convar to the ''int''.
| SetInt(name, val) : sets the value of the convar to the ''int''.
|-
|-
| RegisterCommand
| [[Dota 2 Workshop Tools/Scripting/API/Convars.RegisterCommand | RegisterCommand]]
| <code>void RegisterCommand(string variableName, handle function, string helpText, int flags) </code>
| <code>void RegisterCommand(string variableName, handle function, string helpText, int flags) </code>
| RegisterCommand(name, fn, helpString, flags) : register a console command.
| RegisterCommand(name, fn, helpString, flags) : register a console command.
|-
|-
| GetDOTACommandClient
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetDOTACommandClient | GetDOTACommandClient]]
| <code>handle GetDOTACommandClient() </code>
| <code>handle GetDOTACommandClient() </code>
| GetDOTACommandClient() : returns the DOTA player who issued this console command.
| GetDOTACommandClient() : returns the DOTA player who issued this console command.
|-
|-
| GetCommandClient
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetCommandClient | GetCommandClient]]
| <code>handle GetCommandClient() </code>
| <code>handle GetCommandClient() </code>
| GetCommandClient() : returns the player who issued this console command.
| GetCommandClient() : returns the player who issued this console command.
|-
|-
| GetInt
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetInt | GetInt]]
| <code>table GetInt(string ) </code>
| <code>table GetInt(string ) </code>
| GetInt(name) : returns the convar as an ''int''. May return ''nil'' if no such convar.
| GetInt(name) : returns the convar as an ''int''. May return ''nil'' if no such convar.
|-
|-
| SetFloat
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetFloat | SetFloat]]
| <code>void SetFloat(string variableName, float value) </code>
| <code>void SetFloat(string variableName, float value) </code>
| SetFloat(name, val) : sets the value of the convar to the ''float''.
| SetFloat(name, val) : sets the value of the convar to the ''float''.
|-
|-
| RegisterConvar
| [[Dota 2 Workshop Tools/Scripting/API/Convars.RegisterConvar | RegisterConvar]]
| <code>void RegisterConvar(string name, string defaultValue, string helpText, int flags) </code>
| <code>void RegisterConvar(string name, string defaultValue, string helpText, int flags) </code>
| RegisterConvar(name, defaultValue, helpString, flags): register a new console variable.
| RegisterConvar(name, defaultValue, helpString, flags): register a new console variable.
|-
|-
| GetBool
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetBool | GetBool]]
| <code>table GetBool(string variableName) </code>
| <code>table GetBool(string variableName) </code>
| GetBool(name) : returns the convar as a boolean flag.
| GetBool(name) : returns the convar as a boolean flag.
|-
|-
| SetBool
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetBool | SetBool]]
| <code>void SetBool(string variableName, bool value) </code>
| <code>void SetBool(string variableName, bool value) </code>
| SetBool(name, val) : sets the value of the convar to the ''bool''.
| SetBool(name, val) : sets the value of the convar to the ''bool''.
|}
|}

Revision as of 22:33, 7 August 2014

Accessing the DOTA 2 Scripting API from Lua

While Lua is dynamically typed, the DOTA 2 engine is written primarily in C++, which is statically typed. Thus, you'll need to be conscious of your data types when calling the API. (If you try to pass the wrong type to an API function, you'll get an error message in Vconsole telling you what you passed and what it was expecting.)

Global

No Description Set

Function Signature Description
SpawnEntityGroupFromTable bool SpawnEntityGroupFromTable(handle , bool , handle ) ( groupSpawnTables, bAsync, hCallback )Hierarchically spawn an entity group from a set of spawn tables.
GetFrostyBoostAmount float GetFrostyBoostAmount(int , int ) No Description Set
EntIndexToHScript handle EntIndexToHScript(int ) Turn an entity index integer to an HScript representing that entity's script instance.
StopEffect void StopEffect(handle , string ) (hEntity, szEffectName)
Say void Say(handle entity, string message, bool teamOnly) Have Entity say string, and teamOnly or not
DebugDrawBoxDirection void DebugDrawBoxDirection(Vector , Vector , Vector , Vector , Vector , float , float ) Draw a debug forward box (cent, min, max, forward, vRgb, a, duration)
PrecacheItemByNameAsync void PrecacheItemByNameAsync(string , handle ) Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished.
GetGoldFrostyBoostAmount float GetGoldFrostyBoostAmount(int , int ) No Description Set
RandomInt int RandomInt(int , int ) Get a random int within a range
RollPercentage bool RollPercentage(int ) Rolls a number from 1 to 100 and returns true if the roll is less than or equal to the number specified
SendToConsole void SendToConsole(string ) Send a string to the console as a client command
VectorToAngles QAngle VectorToAngles(Vector ) Get Qangles (with no roll) for a Vector.
IsDedicatedServer bool IsDedicatedServer() Returns true if this server is a dedicated server.
SplineVectors Vector SplineVectors(Vector , Vector , float ) (vector,vector,float) very basic interpolation of v0 to v1 over t on [0,1]
Msg void Msg(string ) Print a message
rr_AddDecisionRule bool rr_AddDecisionRule(handle ) Add a rule to the decision database.
FindClearSpaceForUnit void FindClearSpaceForUnit(handle , Vector , bool ) Place a unit somewhere not already occupied.
LoadKeyValues table LoadKeyValues(string ) Creates a table from the specified keyvalues text file
TraceLine bool TraceLine(handle ) Pass table - Inputs: startpos, endpos, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
ListenToGameEvent int ListenToGameEvent(string , handle , handle ) Register as a listener for a game event from script. ( szEventName, hFunctionNameToCall, hContext )
Tip.pngTip:In addition to listening for standard engine events, you can also create your own events by placing them in /scripts/custom_events.txt.
GetWorldMinY float GetWorldMinY() Gets the world's minimum Y position.
CreateItemOnPositionSync handle CreateItemOnPositionSync(Vector , handle ) Create a physical item at a given location
ExponentialDecay float ExponentialDecay(float , float , float ) Smooth curve decreasing slower as it approaches zero
GetListenServerHost handle GetListenServerHost() Get the local player on a listen server.
StopListeningToGameEvent bool StopListeningToGameEvent(int ) Stop listening to a particular game event.
FireEntityIOInputVec void FireEntityIOInputVec(ehandle , string , Vector ) Fire Entity's Action Input with passed Vector ( hEntity, szActionName, vector )
DoEntFire void DoEntFire(string , string , string , float , handle , handle ) EntFire: Generate an entity i/o event ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
IsMarkedForDeletion bool IsMarkedForDeletion(handle ) Returns true if the entity is valid and marked for deletion.
RotatePosition Vector RotatePosition(Vector , QAngle , Vector ) Rotate a Vector around a point.
GetMapName string GetMapName() Get the name of the map.
PrintLinkedConsoleMessage void PrintLinkedConsoleMessage(string , string ) Print a console message with a linked console command
MakeStringToken int MakeStringToken(string ) Checks to see if the given hScript is a valid entity
RotateQuaternionByAxisAngle Quaternion RotateQuaternionByAxisAngle(Quaternion , Vector , float ) Rotates a quaternion by the specified angle around the specified vector axis
UTIL_Remove void UTIL_Remove(handle ) Removes the specified entity
DebugDrawText void DebugDrawText(Vector , string , bool , float ) Draw text in 3d (origin, text, bViewCheck, duration)
ReloadMOTD void ReloadMOTD() Reloads the MotD file
DebugDrawLine_vCol void DebugDrawLine_vCol(Vector , Vector , Vector , bool , float ) Draw a debug line using color vec (start, end, vRgb, a, ztest, duration)
PrecacheEntityFromTable void PrecacheEntityFromTable(string , handle , handle ) Precache an entity from KeyValues in table
UTIL_RemoveImmediate void UTIL_RemoveImmediate(handle ) Immediately removes the specified entity
SetQuestPhase void SetQuestPhase(int ) Set the current quest phase.
DebugDrawBox void DebugDrawBox(Vector , Vector , Vector , int , int , int , int , float ) Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration )
RandomVector Vector RandomVector(float ) Get a random 2D vector. Argument (float) is the minimum length of the returned vector.
FireEntityIOInputString void FireEntityIOInputString(ehandle , string , string ) Fire Entity's Action Input with passed String - you own the memory
GetGoldFrostyPointsForRound int GetGoldFrostyPointsForRound(int , int , int ) No Description Set
GetWorldMaxX float GetWorldMaxX() Gets the world's maximum X position.
UpdateEventPoints void UpdateEventPoints(handle ) No Description Set
CreateUnitByNameAsync int CreateUnitByNameAsync(string , Vector , bool , handle , handle , int , handle ) Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
CreateTriggerRadiusApproximate handle CreateTriggerRadiusApproximate(Vector , float ) CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided
GetPhysVelocity Vector GetPhysVelocity(handle ) Get Velocity for VPHYS or normal object
CreateEffect bool CreateEffect(handle ) Pass table - Inputs: entity, effect
PrecacheItemByNameSync void PrecacheItemByNameSync(string , handle ) Precaches a DOTA item by its dota_npc_items.txt name
RotationDelta QAngle RotationDelta(QAngle , QAngle ) Find the delta between two QAngles.
InitLogFile void InitLogFile(string , string ) If the given file doesn't exist, creates it with the given contents; does nothing if it exists
IsValidEntity bool IsValidEntity(handle ) Checks to see if the given hScript is a valid entity
PrecacheUnitByNameSync void PrecacheUnitByNameSync(string , handle ) Precaches a DOTA unit by its dota_npc_units.txt name
TraceHull bool TraceHull(handle ) Pass table - Inputs: start, end, min, max, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
SetOpvarFloatAll void SetOpvarFloatAll(string , string , string , float ) Sets an opvar value for all players
AxisAngleToQuaternion Quaternion AxisAngleToQuaternion(Vector , float ) (vector,float) constructs a quaternion representing a rotation by angle around the specified vector axis
DebugDrawSphere void DebugDrawSphere(Vector , Vector , float , float , bool , float ) Draw a debug sphere (center, vRgb, a, rad, ztest, duration)
Warning void Warning(string ) Print a warning
CreateItem handle CreateItem(string , handle , handle ) Create a DOTA item ( szScriptName, hParent, hOwner )
DebugDrawClear void DebugDrawClear() Try to clear all the debug overlay info
cvar_getf float cvar_getf(string ) Gets the value of the given cvar, as a float.
cvar_setf bool cvar_setf(string , float ) Sets the value of the given cvar, as a float.
EmitSoundOn void EmitSoundOn(string , handle ) Play named sound on Entity
SpawnEntityListFromTableAsynchronous int SpawnEntityListFromTableAsynchronous(handle , handle ) Asynchronously spawn an entity group from a list of spawn table's. A callback will be triggered when the spawning is complete
EmitGlobalSound void EmitGlobalSound(string ) Play named sound for all players
AngleDiff float AngleDiff(float , float ) Returns the number of degrees difference between two yaw angles
GetSystemDate string GetSystemDate() Get the current real world date
DebugBreak void DebugBreak() Breaks in the debugger
GetPhysAngularVelocity Vector GetPhysAngularVelocity(handle ) Get Angular Velocity for VPHYS or normal object
GetGroundPosition Vector GetGroundPosition(Vector , handle ) Returns the supplied position moved to the ground. Second parameter is an NPC for measuring movement collision hull offset.
SpawnEntityFromTableSynchronous handle SpawnEntityFromTableSynchronous(string , handle ) Synchronously spawns a single entity from a table
DoIncludeScript bool DoIncludeScript(string , handle ) Execute a script (internal)
SendToServerConsole void SendToServerConsole(string ) Send a string to the console as a server command
FindUnitsInRadius table FindUnitsInRadius(int , Vector , handle , float , int , int , int , int , bool ) Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
DebugDrawCircle void DebugDrawCircle(Vector , Vector , float , float , bool , float ) Draw a debug circle (center, vRgb, a, rad, ztest, duration)
SetQuestName void SetQuestName(string ) Set the current quest name.
SendFrostyPointsMessageToGC void SendFrostyPointsMessageToGC(handle ) No Description Set
FrameTime float FrameTime() Get the time spent on the server in the last frame
CreateUnitByName handle CreateUnitByName(string , Vector , bool , handle , handle , int ) Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
GetWorldMaxY float GetWorldMaxY() Gets the world's maximum Y position.
PrecacheEntityListFromTable void PrecacheEntityListFromTable(handle , handle ) Precache a list of entity KeyValues table's
CreateTrigger handle CreateTrigger(Vector , Vector , Vector ) CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger
GetFrameCount int GetFrameCount() Returns the engines current frame count
DoEntFireByInstanceHandle void DoEntFireByInstanceHandle(handle , string , string , float , handle , handle ) EntFireByHandle:Generate and entity i/o event
DoUniqueString string DoUniqueString(string ) 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 table's when not sure what keys are already in use in that table.
GetSystemTime string GetSystemTime() Get the current real world time
PlayerInstanceFromIndex handle PlayerInstanceFromIndex(int ) Get a script instance of a player by index.
StartSoundEvent void StartSoundEvent(string , handle ) Start a sound event
CreateHeroForPlayer handle CreateHeroForPlayer(string , handle ) Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero
GetFrostyPointsForRound int GetFrostyPointsForRound(int , int , int ) No Description Set
ShowGenericPopupToPlayer void ShowGenericPopupToPlayer(handle , string , string , string , string , int ) Show a generic popup dialog to a specific player.
ShowGenericPopup void ShowGenericPopup(string , string , string , string , int ) Show a generic popup dialog for all players.
DebugDrawLine void DebugDrawLine(Vector , Vector , int , int , int , bool , float ) Draw a debug overlay line (origin, target, r, g, b, ztest, duration)
FileToString string FileToString(string ) Reads a string from a file to send to script
FireGameEventLocal void FireGameEventLocal(string , handle ) Fire a game event without broadcasting to the client.
rr_GetResponseTargets handle rr_GetResponseTargets() Retrieve a table of all available expresser targets, in the form { name : handle, name: handle }.
SendFrostivusTimeElapsedToGC void SendFrostivusTimeElapsedToGC() No Description Set
RotateOrientation QAngle RotateOrientation(QAngle , QAngle ) Rotate a QAngle by another QAngle.
EmitSoundOnClient void EmitSoundOnClient(string , handle ) Play named sound only on the client for the passed in player
ScreenShake void ScreenShake(Vector , float , float , float , float , int , bool ) Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake
CancelEntityIOEvents void CancelEntityIOEvents(ehandle ) Create all I/O events for a particular entity
GetWorldMinX float GetWorldMinX() Gets the world's minimum X position.
AppendToLogFile void AppendToLogFile(string , string ) Appends a string to a log file on the server
FireGameEvent void FireGameEvent(string , handle ) Fire a game event.
FireEntityIOInputNameOnly void FireEntityIOInputNameOnly(ehandle , string ) Fire Entity's Action Input w/no data
Time float Time() Get the current server time
PrecacheResource void PrecacheResource(string , string , handle ) Manually precache a single resource
DoScriptAssert void DoScriptAssert(bool , string ) ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog.
PrecacheModel void PrecacheModel(string , handle ) ( modelName, context ) - Manually precache a single model
ShowMessage void ShowMessage(string ) Print a hud message on all clients
PauseGame void PauseGame(bool ) Pause or unpause the game.
SplineQuaternions Quaternion SplineQuaternions(Quaternion , Quaternion , float ) (quaternion,quaternion,float) very basic interpolation of v0 to v1 over t on [0,1]
StopSoundEvent void StopSoundEvent(string , handle ) Stops a sound event
GetMaxOutputDelay float GetMaxOutputDelay(ehandle , string ) Get the longest delay for all events attached to an output
RemoveSpawnGroupFilterProxy void RemoveSpawnGroupFilterProxy(string ) Remove the C proxy for a script-based spawn group filter
DebugDrawScreenTextLine void DebugDrawScreenTextLine(float , float , int , string , int , int , int , int , float ) Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration)
DebugScreenTextPretty void DebugScreenTextPretty(float , float , int , string , int , int , int , int , float , string , int , bool ) Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
SpawnEntityListFromTableSynchronous handle SpawnEntityListFromTableSynchronous(handle ) Synchronously spawn an entity group from a list of spawn table's.
SetOpvarFloatPlayer void SetOpvarFloatPlayer(string , string , string , float , handle ) Sets an opvar value for a single player ( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
PrecacheUnitByNameAsync void PrecacheUnitByNameAsync(string , handle ) Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished.
StringToFile bool StringToFile(string , string ) Store a string to a file for later reading
RegisterSpawnGroupFilterProxy void RegisterSpawnGroupFilterProxy(string ) Create a C proxy for a script-based spawn group filter
ExecuteOrderFromTable void ExecuteOrderFromTable(handle ) Issue an order from a script table
ApplyDamage float ApplyDamage(handle ) Pass table - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.
TraceCollideable bool TraceCollideable(handle ) Pass table - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
RandomFloat float RandomFloat(float , float ) Get a random float within a range
StopSoundOn void StopSoundOn(string soundName, handle playingEntity) Stop named sound on Entity
UnloadSpawnGroup void UnloadSpawnGroup(string ) Unload a spawn group by name
rr_QueryBestResponse bool rr_QueryBestResponse(handle , handle , handle ) Params: ( hEnt, hQuery, hResult ) // Static : tests 'query' against entity's response system and returns the best response found (or nil if none found).
UnloadSpawnGroupByHandle void UnloadSpawnGroupByHandle(int ) Unload a spawn group by handle
SetRenderingEnabled void SetRenderingEnabled(ehandle , bool ) Set rendering on/off for an ehandle
rr_CommitAIResponse bool rr_CommitAIResponse(handle , handle ) Commit the result of QueryBestResponse back to the given entity to play. Call with params (entity, airesponse)
StopListeningToAllGameEvents void StopListeningToAllGameEvents(handle ) Stop listening to all game events within a specific context.
LoadKeyValuesFromString table LoadKeyValuesFromString(string ) Creates a table from the specified keyvalues string


CBaseEntity

No Description Set

Function Signature Description
GetBaseVelocity Vector GetBaseVelocity() Get Base velocity
SetSize void SetSize(Vector , Vector ) No Description Set
SetRenderColor void SetRenderColor(int , int , int ) SetRenderColor( r, g, b ): Sets the render color of the entity.
GatherCriteria void GatherCriteria(handle ) Returns a table containing the criteria that would be used for response queries on this entity. This is the same as the table that is passed to response rule script function callbacks.
Trigger void Trigger() Fires off this entity's OnTrigger responses
SetOwner void SetOwner(handle owningEntity) Sets this entity's owner
SetAbsOrigin void SetAbsOrigin(Vector origin) SetAbsOrigin
SetAngularVelocity void SetAngularVelocity(float pitch, float yaw, float roll) Set the local angular velocity - takes float pitch,yaw,roll velocities
GetOwner handle GetOwner() Gets this entity's owner
GetOwnerEntity handle GetOwnerEntity() Get the owner entity, if there is one
GetChildren handle GetChildren() Get the entities parented to this entity.
SetMaxHealth void SetMaxHealth(int maxHP) No Description Set
GetCenter Vector GetCenter() Get vector to center of object - absolute coords
Kill void Kill() No Description Set
FirstMoveChild handle FirstMoveChild() No Description Set
GetMoveParent handle GetMoveParent() If in hierarchy, retrieves the entity's parent
SetForwardVector void SetForwardVector(Vector forwardVec) Set the orientation of the entity to have this forward forwardVec
SetContextNum void SetContextNum(string , float , float ) SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (int or float). Will last for duration (set 0 to mean 'forever').
GetAbsOrigin Vector GetAbsOrigin() No Description Set
GetAngularVelocity Vector GetAngularVelocity() Get the local angular velocity - returns a vector of pitch,yaw,roll
NextMovePeer handle NextMovePeer() No Description Set
ApplyLocalAngularVelocityImpulse void ApplyLocalAngularVelocityImpulse(Vector ) Apply an Ang Velocity Impulse
GetMaxHealth int GetMaxHealth() No Description Set
PrecacheScriptSound void PrecacheScriptSound(string ) Precache a sound for later playing.
SetContextThink void SetContextThink(string , handle , float ) Set a think function on this entity.
GetBounds table GetBounds() Get a table containing the 'Mins' & 'Maxs' vector bounds, centered on object
SetTeam void SetTeam(int team) No Description Set
GetHealth int GetHealth() No Description Set
GetForwardVector Vector GetForwardVector() Get the forward vector of the entity
GetBoundingMaxs Vector GetBoundingMaxs() Get a vector containing max bounds, centered on object
GetModelName string GetModelName() Returns the name of the model
SetContext void SetContext(string , string , float ) SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a string. Will last for duration (set 0 to mean 'forever').
EmitSoundParams void EmitSoundParams(string soundName, int pitch, float volume, float soundTime) Plays/modifies a sound from this entity. changes sound if Pitch and/or Volume or SoundTime is > 0.
SetVelocity void SetVelocity(Vector ) No Description Set
GetTeam int GetTeam() No Description Set
GetContext table GetContext(string ) GetContext( name ): looks up a context and returns it if available. May return string, float, or nil (if the context isn't found)
GetAngles QAngle GetAngles() No Description Set
SetHealth void SetHealth(int hp) No Description Set
IsAlive bool IsAlive() No Description Set.
SetParent void SetParent(handle , string ) Set the parent for this entity.
GetAnglesAsVector Vector GetAnglesAsVector() Get entity pitch, yaw, roll as a vector
EmitSound void EmitSound(string soundName) Plays a sound from this entity.
SetAngles void SetAngles(float pitch, float yaw, float roll) Set entity pitch, yaw, roll
EyeAngles QAngle EyeAngles() Get the qangles that this entity is looking at.
EyePosition Vector EyePosition() Get vector to eye position - absolute coords
ApplyAbsVelocityImpulse void ApplyAbsVelocityImpulse(Vector ) Apply a Velocity Impulse
GetRootMoveParent handle GetRootMoveParent() If in hierarchy, walks up the hierarchy to find the root parent
OverrideFriction void OverrideFriction(float , float ) Takes duration, value for a temporary override
SetFriction void SetFriction(float ) Set PLAYER friction, ignored for objects
SetModel void SetModel(string modelName) No Description Set
GetUpVector Vector GetUpVector() Get the up vector of the entity
SetGravity void SetGravity(float ) Set PLAYER gravity, ignored for objects
IsPlayer bool IsPlayer() Is this a player entity?
GetVelocity Vector GetVelocity() No Description Set
GetLocalVelocity Vector GetLocalVelocity() Get Entity relative velocity
StopSound void StopSound(string soundName) Stops a named sound playing from this entity.
SetOrigin void SetOrigin(Vector origin) No Description Set
GetSoundDuration float GetSoundDuration(string soundName, string actormodelname) Returns float duration of the sound. Takes soundname and optional actormodelname.
GetLocalAngularVelocity QAngle GetLocalAngularVelocity() Maybe local angvel
GetOrigin Vector GetOrigin() No Description Set
GetBoundingMins Vector GetBoundingMins() Get a vector containing min bounds, centered on object
GetRightVector Vector GetRightVector() Get the right vector of the entity


CEntities

No Description Set

Global accessor variable: Entities

Function Signature Description
First handle First() Begin an iteration over the list of entities
FindAllByModel table FindAllByModel(string modelName) Find entities by model name.
FindByName handle FindByName(handle lastEnt, string searchString) Find entities by name. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByNameWithin handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) Find entities by name within a radius. 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.
FindByClassname handle FindByClassname(handle 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
FindAllByName table FindAllByName(string name) Find all entities by name. Returns an array containing all the found entities in it.
FindAllByClassnameWithin table FindAllByClassnameWithin(string , Vector , float ) Find entities by class name within a radius.
FindByModel handle FindByModel(handle 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
FindAllByNameWithin table FindAllByNameWithin(string name, Vector origin, float maxRadius) Find entities by name within a radius.
FindByClassnameWithin handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) 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
FindByClassnameNearest handle FindByClassnameNearest(string className, Vector origin, float maxRadius) Find entities by class name nearest to a point.
FindAllByClassname table FindAllByClassname(string ) Finds all entities by class name. Returns an array containing all the found entities.
FindByTarget handle FindByTarget(handle startFrom, string targetName) Find entities by targetname. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByNameNearest handle FindByNameNearest(string name, Vector origin, float maxRadius) Find entities by name nearest to a point.
CreateByClassname handle CreateByClassname(string className) Creates an entity by classname
FindAllInSphere table FindAllInSphere(Vector origin, float maxRadius) Find entities within a radius.
Next handle Next(handle startFrom) Continue an iteration over the list of entities, providing reference to a previously found entity
FindInSphere handle FindInSphere(handle startFrom, Vector origin, float maxRadius) Find entities within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByModelWithin handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) Find entities by model name within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search


CEntityInstance

No Description Set

Function Signature Description
GetEntityIndex int GetEntityIndex() No Description Set
DisconnectRedirectedOutput void DisconnectRedirectedOutput(string , string , handle ) Removes a connected script function from an I/O event on the passed entity.
GetOrCreatePublicScriptScope handle GetOrCreatePublicScriptScope() Retrieve, creating if necessary, the public script-side data associated with an entity
GetOrCreatePrivateScriptScope handle GetOrCreatePrivateScriptScope() Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
GetPrivateScriptScope handle GetPrivateScriptScope() Retrieve the private per-instance script-side data associated with an entity
RedirectOutput void RedirectOutput(string , string , handle ) Adds an I/O connection that will call the named function on the passed entity when the specified output fires.
GetIntAttr int GetIntAttr(string ) Get Integer Attribute
FireOutput void FireOutput(string , handle , handle , table , float ) Fire an entity output
GetDebugName string GetDebugName() Get the entity name w/help if not defined (i.e. classname/etc)
DisconnectOutput void DisconnectOutput(string , string ) Removes a connected script function from an I/O event on this entity.
Destroy void Destroy() No Description Set
GetClassname string GetClassname() No Description Set
GetName string GetName() No Description Set
ConnectOutput void ConnectOutput(string , string ) Adds an I/O connection that will call the named function on this entity when the specified output fires.
entindex int entindex() No Description Set
GetEntityHandle ehandle GetEntityHandle() Get the entity as an EHANDLE
RemoveSelf void RemoveSelf() Delete this entity
SetIntAttr void SetIntAttr(string , int ) Set Integer Attribute
GetPublicScriptScope handle GetPublicScriptScope() Retrieve the public script-side data associated with an entity


CDOTABaseAbility

extends CBaseEntity

No Description Set

Function Signature Description
GetAnimationIgnoresModelScale bool GetAnimationIgnoresModelScale() No Description Set
IsSharedWithTeammates bool IsSharedWithTeammates() No Description Set
OnHeroLevelUp void OnHeroLevelUp() No Description Set
OnChannelFinish void OnChannelFinish(bool ) No Description Set
ToggleAutoCast void ToggleAutoCast() No Description Set
GetDuration float GetDuration() No Description Set
IsChanneling bool IsChanneling() Returns whether the ability is currently channeling.
GetAbilityTargetType int GetAbilityTargetType() No Description Set
GetAbilityName string GetAbilityName() No Description Set
PlaysDefaultAnimWhenStolen bool PlaysDefaultAnimWhenStolen() No Description Set
IsActivated bool IsActivated() No Description Set
OnAbilityPhaseInterrupted void OnAbilityPhaseInterrupted() No Description Set
SetHidden void SetHidden(bool ) No Description Set
IsPassive bool IsPassive() No Description Set
GetCastRange int GetCastRange() No Description Set
GetBackswingTime float GetBackswingTime() No Description Set
GetCooldownTime float GetCooldownTime() No Description Set
PayManaCost void PayManaCost() No Description Set
GetAssociatedSecondaryAbilities string GetAssociatedSecondaryAbilities() No Description Set
GetStolenActivityModifier string GetStolenActivityModifier() No Description Set
SpeakTrigger bool SpeakTrigger() No Description Set
PayGoldCostForUpgrade void PayGoldCostForUpgrade() No Description Set
GetModifierValue float GetModifierValue() No Description Set
GetCursorTargetingNothing bool GetCursorTargetingNothing() No Description Set
GetCooldownTimeRemaining float GetCooldownTimeRemaining() No Description Set
GetChannelStartTime float GetChannelStartTime() No Description Set
GetCursorPosition Vector GetCursorPosition() No Description Set
GetToggleState bool GetToggleState() No Description Set
IsInAbilityPhase bool IsInAbilityPhase() Returns whether the ability is currently casting.
ProcsMagicStick bool ProcsMagicStick() No Description Set
GetCooldown float GetCooldown(int ) Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
ToggleAbility void ToggleAbility() No Description Set
IsHiddenWhenStolen bool IsHiddenWhenStolen() No Description Set
OnSpellStart void OnSpellStart() No Description Set
CastAbility void CastAbility() No Description Set
GetChannelledManaCostPerSecond int GetChannelledManaCostPerSecond(int ) No Description Set
GetIntrinsicModifierName string GetIntrinsicModifierName() No Description Set
IsOwnersGoldEnough bool IsOwnersGoldEnough(int ) No Description Set
IsHidden bool IsHidden() No Description Set
GetLevelSpecialValueFor table GetLevelSpecialValueFor(string , int ) No Description Set
GetGoldCost int GetGoldCost(int ) No Description Set
SetChanneling void SetChanneling(bool ) No Description Set
SetInAbilityPhase void SetInAbilityPhase(bool ) No Description Set
SetAbilityIndex void SetAbilityIndex(int ) No Description Set
GetAbilityTargetTeam int GetAbilityTargetTeam() No Description Set
SpeakAbilityConcept void SpeakAbilityConcept(int ) No Description Set
IsCooldownReady bool IsCooldownReady() No Description Set
IsToggle bool IsToggle() No Description Set
GetCastPoint float GetCastPoint() No Description Set
OnUpgrade void OnUpgrade() No Description Set
GetLevel int GetLevel() Get the current level of the ability
GetSpecialValueFor table GetSpecialValueFor(string ) No Description Set
DecrementModifierRefCount void DecrementModifierRefCount() No Description Set
GetAbilityType int GetAbilityType() No Description Set
UseResources void UseResources(bool , bool , bool ) No Description Set
IsAttributeBonus bool IsAttributeBonus() No Description Set
MarkAbilityButtonDirty void MarkAbilityButtonDirty() Mark the ability button for this ability as needing a refresh
OnChannelThink void OnChannelThink(float ) No Description Set
HeroXPChange bool HeroXPChange(float ) No Description Set
GetAbilityTargetFlags int GetAbilityTargetFlags() No Description Set
OnHeroCalculateStatBonus void OnHeroCalculateStatBonus() No Description Set
SetOverrideCastPoint void SetOverrideCastPoint(float ) No Description Set
GetAbilityDamageType int GetAbilityDamageType() No Description Set
RefCountsModifiers bool RefCountsModifiers() No Description Set
CreateVisibilityNode void CreateVisibilityNode(Vector , float , float ) No Description Set
ResetToggleOnRespawn bool ResetToggleOnRespawn() No Description Set
GetPlaybackRateOverride float GetPlaybackRateOverride() No Description Set
IsStealable bool IsStealable() No Description Set
EndChannel void EndChannel(bool ) Param: bool bInterrupted
GetGoldCostForUpgrade int GetGoldCostForUpgrade(int ) No Description Set
SetRefCountsModifiers void SetRefCountsModifiers(bool ) No Description Set
OnAbilityPhaseStart bool OnAbilityPhaseStart() No Description Set
UpgradeAbility void UpgradeAbility() No Description Set
SetActivated void SetActivated(bool ) No Description Set
ShouldUseResources bool ShouldUseResources() No Description Set
GetAssociatedPrimaryAbilities string GetAssociatedPrimaryAbilities() No Description Set
IsOwnersGoldEnoughForUpgrade bool IsOwnersGoldEnoughForUpgrade() No Description Set
GetManaCost int GetManaCost(int ) No Description Set
GetModifierValueBonus float GetModifierValueBonus() No Description Set
OnOwnerDied void OnOwnerDied() No Description Set
IsFullyCastable bool IsFullyCastable() Returns whether the ability can be cast.
GetMaxLevel int GetMaxLevel() No Description Set
PayGoldCost void PayGoldCost() No Description Set
OnOwnerSpawned void OnOwnerSpawned() No Description Set
OnInventoryContentsChanged void OnInventoryContentsChanged() No Description Set
GetConceptRecipientType int GetConceptRecipientType() No Description Set
GetBehavior int GetBehavior() No Description Set
GetCloneSource handle GetCloneSource() No Description Set
GetSharedCooldownName string GetSharedCooldownName() No Description Set
ContinueCasting bool ContinueCasting() No Description Set
GetAbilityDamage int GetAbilityDamage() No Description Set
IsStolen bool IsStolen() No Description Set
IsOwnersManaEnough bool IsOwnersManaEnough() No Description Set
SetLevel void SetLevel(int ) Sets the level of this ability.
GetAbilityIndex int GetAbilityIndex() No Description Set
NumModifiersUsingAbility int NumModifiersUsingAbility() No Description Set
IsCosmetic bool IsCosmetic() No Description Set
IsItem bool IsItem() No Description Set
EndCooldown void EndCooldown() Clear the cooldown remaining on this ability.
GetHeroLevelRequiredToUpgrade int GetHeroLevelRequiredToUpgrade() No Description Set
OnAbilityPinged void OnAbilityPinged() No Description Set
SetStolen void SetStolen(bool ) No Description Set
GetAutoCastState bool GetAutoCastState() No Description Set
GetChannelTime float GetChannelTime() No Description Set
GetCaster handle GetCaster() No Description Set
StartCooldown void StartCooldown(float ) param: flCooldown
RefundManaCost void RefundManaCost() No Description Set
IncrementModifierRefCount void IncrementModifierRefCount() No Description Set
IsTrained bool IsTrained() No Description Set
GetCursorTarget handle GetCursorTarget() No Description Set
OnToggle void OnToggle() No Description Set


CDOTA_Ability_Animation_Attack

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float ) Override playbackrate


CDOTA_Ability_Animation_TailSpin

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float ) Override playbackrate


CDOTA_Ability_Nian_Leap

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float ) Override playbackrate


CDOTA_Ability_Nian_Dive

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float ) Override playbackrate


CDOTA_Ability_Nian_Roar

extends CDOTABaseAbility

No Description Set

Function Signature Description
GetCastCount int GetCastCount() Number of times Nian has used the roar


CDOTA_Item

No Description Set

Function Signature Description
GetPurchaseTime float GetPurchaseTime() Get the purchase time of this item
GetInitialCharges int GetInitialCharges() Get the initial number of charges this item has.
GetContainer handle GetContainer() Get the container for this item.
SetPurchaseTime void SetPurchaseTime(float ) Set the purchase time of this item
Think void Think() Think this item
LaunchLoot void LaunchLoot(bool , float , float , Vector ) No Description Set
SetPurchaser void SetPurchaser(handle ) Set the purchaser of record for this item.
GetCurrentCharges int GetCurrentCharges() Get the number of charges this item currently has.
GetPurchaser handle GetPurchaser() Get the purchaser for this item.
GetShareability int GetShareability() No Description Set
GetCost int GetCost() No Description Set
SetCurrentCharges void SetCurrentCharges(int ) Set the number of charges on this item
IsPermanent bool IsPermanent() Is this a permanent item?
StacksWithOtherOwners bool StacksWithOtherOwners() No Description Set
SetStacksWithOtherOwners void SetStacksWithOtherOwners(bool ) No Description Set


CDOTA_Item_Physical

No Description Set

Function Signature Description
GetCreationTime float GetCreationTime() Returns the game time when this item was created in the world
SetContainedItem void SetContainedItem(handle ) Set the contained item.
GetContainedItem handle GetContainedItem() Returned the contained item.


CDOTA_Item_DataDriven

No Description Set

Function Signature Description
ApplyDataDrivenModifier void ApplyDataDrivenModifier(handle , handle , string , handle ) Applies a data driven modifier to the target


CDOTA_Unit_Nian

No Description Set

Function Signature Description
GetTail handle GetTail() Is the Nian's tail broken?
IsTailAlive bool IsTailAlive() Is the Nian's tail broken?
IsHornAlive bool IsHornAlive() Is the Nian's horn broken?
GetHorn handle GetHorn() Is the Nian horn?


CBasePlayer

No Description Set

Function Signature Description
IsNoclipping bool IsNoclipping() Returns true if the player is in noclip mode.


CDOTAPlayer

No Description Set

Function Signature Description
GetControlledRPGUnit handle GetControlledRPGUnit() Get the RPG unit this player controls.
GetAssignedHero handle GetAssignedHero() Get the player's hero.
GetPlayerID int GetPlayerID() Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
SetKillCamUnit void SetKillCamUnit(handle ) Set the kill cam unit for this 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.
MakeRandomHeroSelection void MakeRandomHeroSelection() Randoms this player's hero.


CDOTA_PlayerResource

No Description Set

Global accessor variable: PlayerResource

Function Signature Description
GetDenies int GetDenies(int ) No Description Set
GetGoldSpentOnConsumables int GetGoldSpentOnConsumables(int ) No Description Set
GetPlayerReservedState bool GetPlayerReservedState(int ) No Description Set
GetEventPremiumPointsGranted int GetEventPremiumPointsGranted(int ) No Description Set
IsValidPlayerID bool IsValidPlayerID(int playerID) No Description Set
GetTeam int GetTeam(int ) No Description Set
GetNthPlayerIDOnTeam int GetNthPlayerIDOnTeam(int , int ) No Description Set
GetCustomBuybackCost int GetCustomBuybackCost(int ) No Description Set
IsValidTeamPlayer bool IsValidTeamPlayer(int playerID) No Description Set
GetPlayerName string GetPlayerName(int ) No Description Set
GetEventPointsForPlayerID int GetEventPointsForPlayerID(int ) No Description Set
SetCustomBuybackCooldown void SetCustomBuybackCooldown(int , float ) Set the buyback cooldown for this player.
GetTowerDamageTaken int GetTowerDamageTaken(int ) No Description Set
GetAegisPickups int GetAegisPickups(int ) No Description Set
SetHasRandomed void SetHasRandomed(int playerID) No Description Set
SetCameraTarget void SetCameraTarget(int , handle ) (playerID, entity) - force the given player's camera to follow the given entity
IncrementLastHitMultikill void IncrementLastHitMultikill(int ) No Description Set
GetEventRankGranted int GetEventRankGranted(int ) No Description Set
IsDisableHelpSetForPlayerID bool IsDisableHelpSetForPlayerID(int , int ) No Description Set
GetRoshanKills int GetRoshanKills(int ) No Description Set
GetMisses int GetMisses(int ) No Description Set
SetCustomBuybackCost void SetCustomBuybackCost(int , int ) Set the buyback cost for this player.
ReplaceHeroWith handle 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
GetClaimedDenies int GetClaimedDenies(int ) No Description Set
IncrementTotalEarnedXP void IncrementTotalEarnedXP(int , int ) No Description Set
GetLastHits int GetLastHits(int ) No Description Set
IsValidPlayer bool IsValidPlayer(int playerID) No Description Set
SetBuybackGoldLimitTime void SetBuybackGoldLimitTime(int , float ) No Description Set
SetBuybackCooldownTime void SetBuybackCooldownTime(int , float ) No Description Set
ClearLastHitMultikill void ClearLastHitMultikill(int ) No Description Set
ModifyGold int ModifyGold(int playerID, int goldAmmt, bool reliable, int ) No Description Set
GetNthCourierForTeam handle GetNthCourierForTeam(int , int ) No Description Set
GetGoldSpentOnSupport int GetGoldSpentOnSupport(int ) No Description Set
GetNumCouriersForTeam int GetNumCouriersForTeam(int ) No Description Set
AddRunePickup void AddRunePickup(int ) No Description Set
AreUnitsSharedWithPlayerID bool AreUnitsSharedWithPlayerID(int , int ) No Description Set
SetUnitShareMaskForPlayer void SetUnitShareMaskForPlayer(int , int , int , bool ) No Description Set
IsHeroSharedWithPlayerID bool IsHeroSharedWithPlayerID(int , int ) No Description Set
GetUnitShareMaskForPlayer int GetUnitShareMaskForPlayer(int , int ) No Description Set
GetSteamAccountID <> GetSteamAccountID(int ) No Description Set
GetCreepDamageTaken int GetCreepDamageTaken(int ) No Description Set
SetLastBuybackTime void SetLastBuybackTime(int , int ) No Description Set
GetTimeOfLastConsumablePurchase float GetTimeOfLastConsumablePurchase(int ) No Description Set
GetTimeOfLastItemPurchase float GetTimeOfLastItemPurchase(int ) No Description Set
GetGold int GetGold(int ) No Description Set
HeroLevelUp void HeroLevelUp(int ) No Description Set
GetConnectionState <> GetConnectionState(int ) No Description Set
GetCustomBuybackCooldown float GetCustomBuybackCooldown(int ) No Description Set
SetPlayerReservedState void SetPlayerReservedState(int , bool ) No Description Set
GetRawPlayerDamage int GetRawPlayerDamage(int ) No Description Set
IncrementStreak void IncrementStreak(int ) No Description Set
IncrementClaimedMisses void IncrementClaimedMisses(int ) No Description Set
GetTotalEarnedXP int GetTotalEarnedXP(int ) No Description Set
GetGoldSpentOnItems int GetGoldSpentOnItems(int ) No Description Set
GetSelectedHeroName string GetSelectedHeroName(int ) No Description Set
GetRespawnSeconds int GetRespawnSeconds(int ) No Description Set
GetPlayerLoadedCompletely bool GetPlayerLoadedCompletely(int ) No Description Set
HaveAllPlayersJoined bool HaveAllPlayersJoined() No Description Set
IsFakeClient bool IsFakeClient(int ) No Description Set
GetDamageDoneToHero int GetDamageDoneToHero(int , int ) No Description Set
IsHeroSelected bool IsHeroSelected(string ) No Description Set
GetBroadcasterChannelSlot <> GetBroadcasterChannelSlot(int ) No Description Set
GetBroadcasterChannel <> GetBroadcasterChannel(int ) No Description Set
GetLevel int GetLevel(int playerID) No Description Set
HasRandomed bool HasRandomed(int ) No Description Set
GetTeamKills int GetTeamKills(int ) No Description Set
IsBroadcaster bool IsBroadcaster(int ) No Description Set
IsValidTeamPlayerID bool IsValidTeamPlayerID(int playerID) No Description Set
SpendGold void SpendGold(int , int , int ) No Description Set
GetHealing float GetHealing(int ) No Description Set
IncrementLastHits void IncrementLastHits(int ) No Description Set
IncrementMisses void IncrementMisses(int ) No Description Set
GetTotalGoldSpent int GetTotalGoldSpent(int ) No Description Set
IncrementClaimedDenies void IncrementClaimedDenies(int ) No Description Set
GetPlayer handle GetPlayer(int ) No Description Set
IncrementDenies void IncrementDenies(int ) No Description Set
SetGold void SetGold(int , int , bool ) No Description Set
GetXPPerMin float GetXPPerMin(int ) No Description Set
GetTimeOfLastDeath float GetTimeOfLastDeath(int ) No Description Set
GetGoldBagsCollected int GetGoldBagsCollected(int ) No Description Set
GetUnreliableGold int GetUnreliableGold(int ) No Description Set
GetAssists int GetAssists(int ) No Description Set
GetGoldPerMin float GetGoldPerMin(int ) No Description Set
GetDeaths int GetDeaths(int ) No Description Set
WhoSelectedHero int WhoSelectedHero(string ) No Description Set
GetLastHitMultikill int GetLastHitMultikill(int ) No Description Set
IncrementKills void IncrementKills(int playerID, int kills) No Description Set
GetLastHitStreak int GetLastHitStreak(int ) No Description Set
IncrementAssists void IncrementAssists(int playerID) No Description Set
IncrementLastHitStreak void IncrementLastHitStreak(int ) No Description Set
ClearLastHitStreak void ClearLastHitStreak(int ) No Description Set
GetKills int GetKills(int ) No Description Set
IncrementNearbyCreepDeaths void IncrementNearbyCreepDeaths(int ) No Description Set
GetTotalEarnedGold int GetTotalEarnedGold(int ) No Description Set
IncrementGoldBagsCollected void IncrementGoldBagsCollected(int ) No Description Set
ResetBuybackCostTime void ResetBuybackCostTime(int ) No Description Set
UpdateTeamSlot void UpdateTeamSlot(int , int ) No Description Set
GetGoldSpentOnBuybacks int GetGoldSpentOnBuybacks(int ) No Description Set
GetStuns float GetStuns(int ) No Description Set
GetSelectedHeroEntity handle GetSelectedHeroEntity(int ) No Description Set
GetClaimedMisses int GetClaimedMisses(int ) No Description Set
HasSelectedHero bool HasSelectedHero(int ) No Description Set
GetNearbyCreepDeaths int GetNearbyCreepDeaths(int ) No Description Set
GetNumConsumablesPurchased int GetNumConsumablesPurchased(int ) No Description Set
ClearRawPlayerDamageMatrix void ClearRawPlayerDamageMatrix(int ) No Description Set
GetStreak int GetStreak(int ) No Description Set
GetKillsDoneToHero int GetKillsDoneToHero(int , int ) No Description Set
GetTowerKills int GetTowerKills(int ) No Description Set
AddAegisPickup void AddAegisPickup(int ) No Description Set
AddClaimedFarm void AddClaimedFarm(int , float ) No Description Set
ResetTotalEarnedGold void ResetTotalEarnedGold(int ) No Description Set
GetHeroDamageTaken int GetHeroDamageTaken(int ) No Description Set
IncrementDeaths void IncrementDeaths(int playerID) No Description Set
AddGoldSpentOnSupport void AddGoldSpentOnSupport(int , int ) No Description Set
GetSelectedHeroID int GetSelectedHeroID(int ) No Description Set
GetRunePickups int GetRunePickups(int ) No Description Set
GetNumItemsPurchased int GetNumItemsPurchased(int ) No Description Set
GetClaimedFarm float GetClaimedFarm(int ) No Description Set
GetReliableGold int GetReliableGold(int ) No Description Set
HasRepicked bool HasRepicked(int playerID) No Description Set
SetHasRepicked void SetHasRepicked(int playerID) No Description Set
ClearStreak void ClearStreak(int ) No Description Set
GetGoldLostToDeath int GetGoldLostToDeath(int ) No Description Set
ClearKillsMatrix void ClearKillsMatrix(int ) No Description Set


CDOTA_BaseNPC

No Description Set

Function Signature Description
ForceKill void ForceKill(bool ) Kill this unit immediately.
GetAbilityCount int GetAbilityCount() No Description Set
GetAdditionalBattleMusicWeight float GetAdditionalBattleMusicWeight() Combat involving this creature will have this weight added to the music calcuations
GetPlayerOwnerID int GetPlayerOwnerID() Get the owner player ID for this unit.
EjectItemFromStash void EjectItemFromStash(handle ) Drops the selected item out of this unit's stash.
GetBaseDayTimeVisionRange int GetBaseDayTimeVisionRange() Returns the vision range before modifiers.
IsMuted bool IsMuted() No Description Set
IsAttackingEntity bool IsAttackingEntity(handle ) No Description Set
IsMechanical bool IsMechanical() Is the unit mechanical?
IsRealHero bool IsRealHero() Returns true if the hero is a true Hero, not a creep or an Illusion of a hero
SetDayTimeVisionRange void SetDayTimeVisionRange(int ) Set the base vision range.
GetModelRadius float GetModelRadius() No Description Set
GetAverageTrueAttackDamage int GetAverageTrueAttackDamage() Returns the average value of the minimum and maximum damage values.
RemoveModifierByName void RemoveModifierByName(string ) Removes a modifier
DropItemAtPositionImmediate void DropItemAtPositionImmediate(handle , Vector ) Immediately drop a carried item at a given position.
GetPaddedCollisionRadius float GetPaddedCollisionRadius() Get the collision hull radius (including padding) of this NPC
GetAttackSpeed float GetAttackSpeed() No Description Set
GetManaRegen float GetManaRegen() No Description Set
MoveToTargetToAttack void MoveToTargetToAttack(handle ) Move to a target to attack.
IsDeniable bool IsDeniable() No Description Set
SetHullRadius void SetHullRadius(float ) Set the collision hull radius of this NPC
GetAttackRange float GetAttackRange() Gets this unit's attack range after all modifiers.
SetMana void SetMana(float ) Set the mana on this unit.
GetInitialGoalEntity handle GetInitialGoalEntity() Returns the initial waypoint goal for this NPC
GetUnitName string GetUnitName() No Description Set
RespawnUnit void RespawnUnit() Respawns the target unit if it can be respawned.
GetRangeToUnit float GetRangeToUnit(handle ) No Description Set
CastAbilityImmediately void CastAbilityImmediately(handle , int ) Cast an ability immediately.
SetNightTimeVisionRange void SetNightTimeVisionRange(int ) Set the base vision range.
RemoveAbility void RemoveAbility(string ) Remove an ability from this unit by name.
IsAncient bool IsAncient() Is this creature an Ancient?
SetStolenScepter void SetStolenScepter(bool ) No Description Set
GetHealthRegen float GetHealthRegen() No Description Set
GetAttackDamage int GetAttackDamage() Returns a random integer between the minimum and maximum base damage of the unit.
Stop void Stop() Stop the current order.
GetAbilityByIndex handle GetAbilityByIndex(int ) Retrieve an ability by index from the unit.
SetInitialGoalEntity void SetInitialGoalEntity(handle ) Sets the initial waypoint goal for this NPC
SetOriginalModel void SetOriginalModel(string originalModel) Sets the original model of this entity, which it will tend to fall back to anytime its state changes
IsOutOfGame bool IsOutOfGame() No Description Set
GetCreationTime float GetCreationTime() No Description Set
RemoveItem void RemoveItem(handle ) Removes the passed item from this unit's inventory.
GetNightTimeVisionRange int GetNightTimeVisionRange() Returns the vision range after modifiers.
AngerNearbyUnits void AngerNearbyUnits() No Description Set
InterruptChannel void InterruptChannel() No Description Set
UnitCanRespawn bool UnitCanRespawn() No Description Set
NotOnMinimapForEnemies bool NotOnMinimapForEnemies() No Description Set
GetHealthPercent int GetHealthPercent() Get the current health percent of the unit.
IsPhantomBlocker bool IsPhantomBlocker() No Description Set
MakePhantomBlocker void MakePhantomBlocker() No Description Set
FindAbilityByName handle FindAbilityByName(string ) Retrieve an ability by name from the unit.
HasAbility bool HasAbility(string ) See whether this unit has an ability by name.
MakeVisibleDueToAttack void MakeVisibleDueToAttack(int ) No Description Set
IsInvulnerable bool IsInvulnerable() No Description Set
GetAttackRangeBuffer float GetAttackRangeBuffer() Gets the attack range buffer.
SetBaseDamageMin void SetBaseDamageMin(int ) Sets the minimum base damage.
IsFrozen bool IsFrozen() No Description Set
GetBaseNightTimeVisionRange int GetBaseNightTimeVisionRange() Returns the vision range before modifiers.
DropItemAtPosition void DropItemAtPosition(Vector , handle ) Drop an item at a given point.
MakeVisibleToTeam void MakeVisibleToTeam(int , float ) No Description Set
GetOpposingTeamNumber int GetOpposingTeamNumber() No Description Set
GetModifierCount int GetModifierCount() How many modifiers does this unit have?
SetCursorPosition void SetCursorPosition(Vector ) No Description Set
GetHullRadius float GetHullRadius() Get the collision hull radius of this NPC
IsOpposingTeam bool IsOpposingTeam(int ) No Description Set
SetIdleAcquire void SetIdleAcquire(bool ) No Description Set
ShouldIdleAcquire bool ShouldIdleAcquire() No Description Set
IsPositionInRange bool IsPositionInRange(Vector , float ) No Description Set
InterruptMotionControllers void InterruptMotionControllers(bool ) Parameter boolean determines finding clear space.
SetControllableByPlayer void SetControllableByPlayer(int , bool ) Set this unit controllable by the player with the passed ID.
RemoveNoDraw void RemoveNoDraw() Remove the no draw flag.
ReduceMana void ReduceMana(float ) Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
SetBaseManaRegen void SetBaseManaRegen(float ) No Description Set
Interrupt void Interrupt() No Description Set
GetCursorPosition Vector GetCursorPosition() No Description Set
GetBaseAttackTime float GetBaseAttackTime() No Description Set
GetDayTimeVisionRange int GetDayTimeVisionRange() Returns the vision range after modifiers.
MoveToNPC void MoveToNPC(handle ) Move to follow a unit.
IsUnableToMiss bool IsUnableToMiss() No Description Set
RemoveModifierByNameAndCaster void RemoveModifierByNameAndCaster(string , handle ) Removes a modifier that was cast by the given caster
SetForceAttackTarget void SetForceAttackTarget(handle ) No Description Set
HasAttackCapability bool HasAttackCapability() No Description Set
GetAttacksPerSecond float GetAttacksPerSecond() No Description Set
GetBaseDamageMin int GetBaseDamageMin() Gets the minimum base damage.
GetForceAttackTarget handle GetForceAttackTarget() No Description Set
AlertNearbyUnits void AlertNearbyUnits(handle , handle ) No Description Set
IsCreature bool IsCreature() Is this a Creature type NPC
GetAttackTarget handle GetAttackTarget() No Description Set
PerformAttack void PerformAttack(handle , bool , bool , bool , bool ) Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
GetDeathXP int GetDeathXP() Get the XP bounty on this unit
SetAttacking void SetAttacking(handle ) No Description Set
SetHasInventory void SetHasInventory(bool ) No Description Set
ModifyHealth void ModifyHealth(int , handle , bool , int ) Sets the health to a specific value, with optional flags or inflictors.
IsMagicImmune bool IsMagicImmune() No Description Set
GetAttackAnimationPoint float GetAttackAnimationPoint() No Description Set
TimeUntilNextAttack float TimeUntilNextAttack() No Description Set
AttackNoEarlierThan void AttackNoEarlierThan(float ) No Description Set
SetBaseMagicalResistanceValue void SetBaseMagicalResistanceValue(float ) Sets base magical armor value.
AddAbility void AddAbility(string ) Add an ability to this unit by name.
HasItemInInventory bool HasItemInInventory(string ) See whether this unit has an item by name.
AttackReady bool AttackReady() No Description Set
SetDeathXP void SetDeathXP(int ) Set the XP bounty on this unit
GetBaseHealthRegen float GetBaseHealthRegen() No Description Set
GetTeamNumber int GetTeamNumber() Get the team number of this unit.
GetStatsBasedManaRegen float GetStatsBasedManaRegen() Returns mana regen rate per intelligence.
GetUnitLabel string GetUnitLabel() No Description Set
IsHardDisarmed bool IsHardDisarmed() No Description Set
GetMoveSpeedModifier float GetMoveSpeedModifier(float ) No Description Set
GetMana float GetMana() Get the mana on this unit.
AddNewModifier void AddNewModifier(handle , handle , string , handle ) Add a modifier to this unit
SwapAbilities void SwapAbilities(string , string , bool , bool ) Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, bool bEnable1, bool bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.
SetUnitName void SetUnitName(string ) No Description Set
IsPhased bool IsPhased() No Description Set
SetRangedProjectileName void SetRangedProjectileName(string ) No Description Set
SpendMana void SpendMana(float , handle ) Spend mana from this unit, this can be used for spending mana from abilities or item usage.
GetProjectileSpeed int GetProjectileSpeed() No Description Set
HasFlyingVision bool HasFlyingVision() No Description Set
HasMovementCapability bool HasMovementCapability() No Description Set
IsCommandRestricted bool IsCommandRestricted() No Description Set
HasGroundMovementCapability bool HasGroundMovementCapability() No Description Set
SetMoveCapability void SetMoveCapability(int ) No Description Set
SellItem void SellItem(handle ) Sells the passed item in this unit's inventory.
IsSoftDisarmed bool IsSoftDisarmed() No Description Set
GetMagicalArmorValue float GetMagicalArmorValue() Returns current magical armor value.
SetMinimumGoldBounty void SetMinimumGoldBounty(int ) Set the minimum gold bounty for this unit.
SetAttackCapability void SetAttackCapability(int ) No Description Set
HasScepter bool HasScepter() No Description Set
IsMovementImpaired bool IsMovementImpaired() No Description Set
IsIdle bool IsIdle() Is this creature currently idle?
IsRangedAttacker bool IsRangedAttacker() Is this unit a ranged attacker?
SetBaseHealthRegen void SetBaseHealthRegen(float ) No Description Set
SetBaseMoveSpeed void SetBaseMoveSpeed(int ) No Description Set
SetMaximumGoldBounty void SetMaximumGoldBounty(int ) Set the maximum gold bounty for this unit.
GetPercentageBasedManaRegen float GetPercentageBasedManaRegen() This Mana regen is derived from % bonuses (from items like Void Stone).
GetItemInSlot handle GetItemInSlot(int ) Returns nth item in inventory slot (index is zero based)
NoTeamMoveTo bool NoTeamMoveTo() No Description Set
GetBaseDamageMax int GetBaseDamageMax() Gets the minimum base damage.
GetTotalPurchasedUpgradeGoldCost int GetTotalPurchasedUpgradeGoldCost() Get how much gold has been spent on ability upgrades.
IsBlind bool IsBlind() No Description Set
GiveMana void GiveMana(float ) Give mana to this unit, this can be used for mana gained by abilities or item usage.
IsDominated bool IsDominated() No Description Set
GetMustReachEachGoalEntity bool GetMustReachEachGoalEntity() Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
PassivesDisabled bool PassivesDisabled() No Description Set
PickupRune void PickupRune(handle ) Pick up a rune.
GetManaPercent int GetManaPercent() Get the percent of mana remaining.
IsStunned bool IsStunned() No Description Set
HasInventory bool HasInventory() No Description Set
MoveToNPCToGiveItem void MoveToNPCToGiveItem(handle , handle ) Give an item to another unit.
NoHealthBar bool NoHealthBar() No Description Set
IsLowAttackPriority bool IsLowAttackPriority() No Description Set
NotOnMinimap bool NotOnMinimap() No Description Set
GetCursorCastTarget handle GetCursorCastTarget() No Description Set
IsInvisible bool IsInvisible() No Description Set
HasFlyMovementCapability bool HasFlyMovementCapability() No Description Set
IsSpeciallyDeniable bool IsSpeciallyDeniable() No Description Set
GetGoldBounty int GetGoldBounty() Get the gold bounty on this unit
AddNoDraw void AddNoDraw() Adds the no draw flag.
AddItem void AddItem(handle ) Add an item to this unit's inventory.
IsUnselectable bool IsUnselectable() No Description Set
SetBaseAttackTime void SetBaseAttackTime(float ) No Description Set
GetBaseMoveSpeed float GetBaseMoveSpeed() No Description Set
IsBlockDisabled bool IsBlockDisabled() No Description Set
IsNightmared bool IsNightmared() No Description Set
GetCursorTargetingNothing bool GetCursorTargetingNothing() No Description Set
HasModifier bool HasModifier(string ) Sees if this unit has a given modifier
GetHasteFactor float GetHasteFactor() No Description Set
NoUnitCollision bool NoUnitCollision() No Description Set
IsHexed bool IsHexed() No Description Set
GetCastPoint float GetCastPoint(bool ) Parameter: bAttack
GetConstantBasedManaRegen float GetConstantBasedManaRegen() This Mana regen is derived from constant bonuses like Basilius.
GetLevel int GetLevel() Returns the level of this unit.
SetCursorTargetingNothing void SetCursorTargetingNothing(bool ) No Description Set
IsHero bool IsHero() Is this a hero or hero illusion?
GetModifierNameByIndex string GetModifierNameByIndex(int ) Get a modifier name by index.
IsSilenced bool IsSilenced() No Description Set
IsAttackImmune bool IsAttackImmune() No Description Set
IsDisarmed bool IsDisarmed() No Description Set
IsAttacking bool IsAttacking() No Description Set
MoveToPosition void MoveToPosition(Vector ) Issue a Move-To command
ProvidesVision bool ProvidesVision() No Description Set
MoveToPositionAggressive void MoveToPositionAggressive(Vector ) Issue an Attack-Move-To command
SetCursorCastTarget void SetCursorCastTarget(handle ) No Description Set
SetPhysicalArmorBaseValue void SetPhysicalArmorBaseValue(float ) Sets base physical armor value.
IsRooted bool IsRooted() No Description Set
TriggerModifierDodge bool TriggerModifierDodge() No Description Set
TriggerSpellAbsorb bool TriggerSpellAbsorb(handle ) Query whether the passed ability will trigger spell absorb on this unit.
GetIdealSpeed float GetIdealSpeed() Returns speed after all modifiers.
MakeIllusion void MakeIllusion() No Description Set
IsIllusion bool IsIllusion() No Description Set
GetSecondsPerAttack float GetSecondsPerAttack() No Description Set
SetMustReachEachGoalEntity void SetMustReachEachGoalEntity(bool ) Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
GetMaxHealth int GetMaxHealth() Get the maximum health of this unit.
GetBaseAttackRange int GetBaseAttackRange() Gets this unit's attack range before modifiers.
IsEvadeDisabled bool IsEvadeDisabled() No Description Set
GetMaxMana float GetMaxMana() Get the maximum mana of this unit.
SetBaseDamageMax void SetBaseDamageMax(int ) Sets the minimum base damage.
GetHealth int GetHealth() Get the health of this unit.
GetMainControllingPlayer int GetMainControllingPlayer() Returns the player ID of the controlling player.
Heal void Heal(float , handle ) Heal this unit.
GetIncreasedAttackSpeed float GetIncreasedAttackSpeed() No Description Set
PickupDroppedItem void PickupDroppedItem(handle ) Pick up a dropped item.
IsPhantom bool IsPhantom() Is this a phantom unit?
Hold void Hold() Hold position.
IsNeutralUnitType bool IsNeutralUnitType() Is this a neutral?
DisassembleItem void DisassembleItem(handle ) Disassemble the passed item in this unit's inventory.
GetBaseMagicalResistanceValue float GetBaseMagicalResistanceValue() Returns base magical armor value.
GetCollisionPadding float GetCollisionPadding() Returns the size of the collision padding around the hull.
IsAlive bool IsAlive() Is this unit alive?
NoTeamSelect bool NoTeamSelect() No Description Set
CastAbilityOnTarget void CastAbilityOnTarget(handle target, handle ability, int playerIndex) Cast an ability on a target entity.
CastAbilityOnPosition void CastAbilityOnPosition(Vector , handle , int ) Cast an ability on a position.
GetPlayerOwner handle GetPlayerOwner() Returns the player that owns this unit
IsSummoned bool IsSummoned() Is this unit summoned?
IsTower bool IsTower() Is this a tower?
SetNeverMoveToClearSpace void SetNeverMoveToClearSpace(bool ) If set to true, we will never attempt to move this unit to clear space, even when it unphases.
SetAdditionalBattleMusicWeight void SetAdditionalBattleMusicWeight(float ) Combat involving this creature will have this weight added to the music calcuations
GetBaseMaxHealth float GetBaseMaxHealth() Gets the base max health value.
GetHealthDeficit int GetHealthDeficit() Returns integer amount of health missing from max.
GetAcquisitionRange float GetAcquisitionRange() Gets the range at which this unit will auto-acquire.
GetLastIdleChangeTime float GetLastIdleChangeTime() Get the last game time that this unit switched to/from idle state.
SetBaseMaxHealth void SetBaseMaxHealth(float ) Set a new base max health value.
Kill void Kill(handle , handle ) Kills this NPC, with the params Ability and Attacker
CastAbilityNoTarget void CastAbilityNoTarget(handle ability, int playerIndex) Cast an ability with no target. ( hAbility, iPlayerIndex )
GetCurrentVisionRange int GetCurrentVisionRange() Gets the current vision range.
CastAbilityToggle void CastAbilityToggle(handle , int ) Toggle an ability. ( hAbility, iPlayerIndex )
IsOwnedByAnyPlayer bool IsOwnedByAnyPlayer() Is this unit owned by any non-bot player?
GetPhysicalArmorBaseValue float GetPhysicalArmorBaseValue() Returns base physical armor value.
GetCurrentActiveAbility handle GetCurrentActiveAbility() Get the ability this unit is currently casting.
IsControllableByAnyPlayer bool IsControllableByAnyPlayer() Is this unit controlled by any non-bot player?
GetPhysicalArmorValue float GetPhysicalArmorValue() Returns current physical armor value.
BoundingRadius2D float BoundingRadius2D() No Description Set


CDOTA_BaseNPC_Hero

No Description Set

Function Signature Description
GetPhysicalArmorValue float GetPhysicalArmorValue() Hero armor is affected by attributes.
GetDenies int GetDenies() Value is stored in PlayerResource.
GetIntellect float GetIntellect() No Description Set
ShouldDoFlyHeightVisual bool ShouldDoFlyHeightVisual() No Description Set
GetPlayerID int GetPlayerID() Returns player ID of the player owning this hero
GetLastHits int GetLastHits() Value is stored in PlayerResource.
GetBaseAgility float GetBaseAgility() No Description Set
IsReincarnating bool IsReincarnating() No Description Set
SetBaseAgility void SetBaseAgility(float ) No Description Set
IncrementLastHitMultikill void IncrementLastHitMultikill() Value is stored in PlayerResource.
RespawnHero void RespawnHero(bool , bool , bool ) Respawn this hero.
GetBaseStrength float GetBaseStrength() No Description Set
GetDeathGoldCost int GetDeathGoldCost() No Description Set
GetManaRegen float GetManaRegen() Hero mana regen is affected by attributes.
ClearLastHitMultikill void ClearLastHitMultikill() Value is stored in PlayerResource.
ModifyGold int ModifyGold(int goldAmmt, bool reliable, int reason) Gives this hero some gold. Args: int nGoldChange, bool bReliable, int reason
GetPrimaryStatValue float GetPrimaryStatValue() No Description Set
ClearStreak void ClearStreak() Value is stored in PlayerResource.
GetAgility float GetAgility() No Description Set
SetBuybackGoldLimitTime void SetBuybackGoldLimitTime(float ) Set the amount of time gold gain is limited after buying back.
CalculateStatBonus void CalculateStatBonus() Recalculate all stats after the hero gains stats.
GetBuybackCooldownTime float GetBuybackCooldownTime() Return float value for the amount of time left on cooldown for this hero's buyback.
GetGoldBounty int GetGoldBounty() No Description Set
GetHealthRegen float GetHealthRegen() Hero health regen is affected by attributes.
IncrementStreak void IncrementStreak() Value is stored in PlayerResource.
IsBuybackDisabledByReapersScythe bool IsBuybackDisabledByReapersScythe() No Description Set
GetBuybackCost int GetBuybackCost() Return integer value for the gold cost of a buyback.
CanEarnGold bool CanEarnGold() Returns boolean value result of buyback gold limit time less than game time.
GetStrength float GetStrength() No Description Set
GetAgilityGain float GetAgilityGain() No Description Set
GetNumAttackers int GetNumAttackers() No Description Set
GetCurrentXP int GetCurrentXP() Returns the amount of XP
SetAbilityPoints void SetAbilityPoints(int ) Sets the current unspent ability point's.
SetRespawnPosition void SetRespawnPosition(Vector ) No Description Set
ModifyIntellect void ModifyIntellect(float ) Adds passed value to base attribute value, then calls CalculateStatBonus.
SpendGold void SpendGold(int , int ) Args: int nGold, int nReason
UnitCanRespawn bool UnitCanRespawn() No Description Set
GetGold int GetGold() Returns gold amount for the player owning this hero
PerformTaunt void PerformTaunt() No Description Set
HeroLevelUp void HeroLevelUp(bool ) Levels up the hero, true or false to play effects.
SetGold void SetGold(int , bool ) Sets the gold amount for the player owning this hero
HasAnyAvailableInventorySpace bool HasAnyAvailableInventorySpace() No Description Set
KilledHero void KilledHero(handle , handle ) Args: Hero, Inflictor
GetAbilityPoints int GetAbilityPoints() Gets the current unspent ability point's.
HasRoomForItem int HasRoomForItem(string , bool , bool ) Args: const char* pItemName, bool bIncludeStashCombines, bool bAllowSelling
GetAssists int GetAssists() Value is stored in PlayerResource.
SetTimeUntilRespawn void SetTimeUntilRespawn(float ) No Description Set
GetDeaths int GetDeaths() Value is stored in PlayerResource.
GetTimeUntilRespawn float GetTimeUntilRespawn() No Description Set
UpgradeAbility void UpgradeAbility(handle ) This upgrades the passed ability if it exists and the hero has enough ability point's.
IncrementKills void IncrementKills(int kills) Passed ID is for the victim, killer ID is ID of the current hero. Value is stored in PlayerResource.
GetPrimaryAttribute int GetPrimaryAttribute() 0 = strength, 1 = agility, 2 = intelligence.
IncrementAssists void IncrementAssists() Value is stored in PlayerResource.
HasFlyingVision bool HasFlyingVision() No Description Set
GetAttacker int GetAttacker(int ) No Description Set
GetKills int GetKills() Value is stored in PlayerResource.
GetIncreasedAttackSpeed float GetIncreasedAttackSpeed() Hero attack speed is also affected by agility.
IncrementLastHitStreak void IncrementLastHitStreak() Value is stored in PlayerResource.
HasOwnerAbandoned bool HasOwnerAbandoned() No Description Set
WillReincarnate bool WillReincarnate() No Description Set
AddExperience bool AddExperience(float , bool ) Params: Float XP, Bool applyBotDifficultyScaling
GetMultipleKillCount int GetMultipleKillCount() No Description Set
RecordLastHit void RecordLastHit() No Description Set
IncrementLastHits void IncrementLastHits() Value is stored in PlayerResource.
GetStatsBasedManaRegen float GetStatsBasedManaRegen() Returns only the regen based on Intelligence.
GetBuybackGoldLimitTime float GetBuybackGoldLimitTime() Returns the amount of time gold gain is limited after buying back.
SetCustomDeathXP void SetCustomDeathXP(int ) Sets a custom experience value for this hero.
Tip.pngTip:GameRules boolean must be set for this to work!
GetBaseDamageMax int GetBaseDamageMax() Hero damage is also affected by attributes.
GetBaseDamageMin int GetBaseDamageMin() Hero damage is also affected by attributes.
GetStreak int GetStreak() Value is stored in PlayerResource.
GetMostRecentDamageTime float GetMostRecentDamageTime() No Description Set
SetBuyBackDisabledByReapersScythe void SetBuyBackDisabledByReapersScythe(bool ) No Description Set
Buyback void Buyback() Spend the gold and buyback with this hero.
SetBaseStrength void SetBaseStrength(float ) No Description Set
SetBaseIntellect void SetBaseIntellect(float ) No Description Set
GetStrengthGain float GetStrengthGain() No Description Set
IncrementDeaths void IncrementDeaths() Value is stored in PlayerResource.
GetRespawnTime float GetRespawnTime() No Description Set
ModifyAgility void ModifyAgility(float ) Adds passed value to base attribute value, then calls CalculateStatBonus.
GetIntellectGain float GetIntellectGain() No Description Set
ClearLastHitStreak void ClearLastHitStreak() Value is stored in PlayerResource.
IncrementNearbyCreepDeaths void IncrementNearbyCreepDeaths() Value is stored in PlayerResource.
GetBaseIntellect float GetBaseIntellect() No Description Set
SetPlayerID void SetPlayerID(int ) No Description Set
SetBuybackCooldownTime void SetBuybackCooldownTime(float ) Sets the buyback cooldown time.
GetBonusDamageFromPrimaryStat int GetBonusDamageFromPrimaryStat() No Description Set
IncrementDenies void IncrementDenies() Value is stored in PlayerResource.
ModifyStrength void ModifyStrength(float ) Adds passed value to base attribute value, then calls CalculateStatBonus.


CDOTA_BaseNPC_Creature

No Description Set

Function Signature Description
SetHPRegenGain void SetHPRegenGain(float ) Set the hit point's regen gained per level on this creature.
SetDisableResistanceGain void SetDisableResistanceGain(float ) Set the disable resistance gained per level on this creature.
SetAttackTimeGain void SetAttackTimeGain(float ) Set the attack time gained per level on this creature.
SetMoveSpeedGain void SetMoveSpeedGain(int ) Set the move speed gained per level on this creature.
CreatureLevelUp void CreatureLevelUp(int ) Level the creature up by the specified number of levels
SetBountyGain void SetBountyGain(int ) Set the bounty gold gained per level on this creature.
SetXPGain void SetXPGain(int ) Set the xp reward gained per level on this creature.
SetChampion void SetChampion(bool ) Flag this unit as a champion creature.
AddItemDrop void AddItemDrop(handle ) Add the specified item drop to this creature
SetManaRegenGain void SetManaRegenGain(float ) Set the mana point's regen gained per level on this creature.
SetDamageGain void SetDamageGain(int ) Set the damage gained per level on this creature.
SetMagicResistanceGain void SetMagicResistanceGain(float ) Set the magic resistance gained per level on this creature.
SetHPGain void SetHPGain(int ) Set the hit point's gained per level on this creature.
IsChampion bool IsChampion() Is this unit a champion?
SetManaGain void SetManaGain(int ) Set the mana point's gained per level on this creature.
SetArmorGain void SetArmorGain(float ) Set the armor gained per level on this creature.


CDOTA_BaseNPC_Building

No Description Set

Function Signature Description
SetInvulnCount void SetInvulnCount(int ) Set the invulnerability counter of this building.
GetInvulnCount int GetInvulnCount() Get the invulnerability count for a building.


CRPG_Unit

No Description Set

Function Signature Description
IsFacing bool IsFacing(Vector , float ) ( vecTargetPosition, flAngleTolerance ) - returns true if the unit is within flAngleTolerance degrees of the target position
SetSightConeAngle void SetSightConeAngle(float ) ( flAngleDegrees ) - sets angle in which the unit can see things up to sight range
ActionState handle ActionState() return the ActionState object for this unit.
FindSensedEnemies table FindSensedEnemies() returns list of all enemy units within this unit's sight cone or sensing sphere
GetUnitName string GetUnitName() get the unit name for this unit.
GetMaxStamina float GetMaxStamina() returns maximum stamina amount.
SetBlocking void SetBlocking(bool ) ( bShouldBlock ) - Set the blocking state of this unit.
GetStamina float GetStamina() returns current stamina amount.
GetMovementTargetEntity handle GetMovementTargetEntity() Returs the movement target entity, if set.
IsBlocking bool IsBlocking() is this unit blocking?
GetSensingSphereRange float GetSensingSphereRange() returns range of unit's 360 degree sensing sphere
SetMovementTargetEntity void SetMovementTargetEntity(handle , float ) ( hTargetEntity, flTargetRange ) - Try to move this unit to the given range from the target entity.
SetTurnRate void SetTurnRate(float ) ( flTurnRate ) - sets unit's turn rate in degrees per second
GetSightConeAngle float GetSightConeAngle() returns angle in which the unit can see things up to sight range
GetMaxSpeed float GetMaxSpeed() returns unit's max speed
GrantItem void GrantItem(string , bool ) ( sItemName ) - grant an item to the unit by name.
SetMovementTargetPosition void SetMovementTargetPosition(Vector , float ) ( vecTargetPosition, flTargetRange ) - Try to move this unit to the given range from the target point.
ClearMovementTarget void ClearMovementTarget() Clear any movement target entity/position.
SetSightConeRange void SetSightConeRange(float ) ( fRange ) - set range of unit's sight cone
SetMaxSpeed void SetMaxSpeed(float ) ( flMaxSpeed ) - sets unit's max speed
GetSightConeRange float GetSightConeRange() returns range of unit's sight cone
GetTurnRate float GetTurnRate() returns unit's turn rate in degrees per second
SetSensingSphereRange void SetSensingSphereRange(float ) ( flSightRange ) - set range of unit's 360 degree sensing sphere


CDOTABaseGameMode

No Description Set

Function Signature Description
SetCustomHeroMaxLevel void SetCustomHeroMaxLevel(int maxLevel) Allows definition of the max level heroes can achieve (default is 25).
SetUseCustomHeroLevels void SetUseCustomHeroLevels(bool ) Turn on custom-defined XP values for hero level ups. The table should be defined before switching this on.
SetBuybackEnabled void SetBuybackEnabled(bool ) Enables or disables buyback completely
SetCustomXPRequiredToReachNextLevel void SetCustomXPRequiredToReachNextLevel(handle ) Allows definition of a table of hero XP values.
SetBotThinkingEnabled void SetBotThinkingEnabled(bool ) Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc.
SetCustomBuybackCostEnabled void SetCustomBuybackCostEnabled(bool ) Turns on capability to define custom buyback costs.
SetTopBarTeamValuesVisible void SetTopBarTeamValuesVisible(bool ) Turning on/off the team values on the top game bar.
SetTopBarTeamValuesOverride void SetTopBarTeamValuesOverride(bool ) Override the values of the team values on the top game bar.
SetAlwaysShowPlayerInventory void SetAlwaysShowPlayerInventory(bool ) Show the player hero's inventory in the HUD, regardless of what unit is selected.
SetRemoveIllusionsOnDeath void SetRemoveIllusionsOnDeath(bool ) 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.
SetRecommendedItemsDisabled void SetRecommendedItemsDisabled(bool ) Turn the panel for showing recommended items at the shop off/on. Takes a bool.
SetGoldSoundDisabled void SetGoldSoundDisabled(bool ) Turn the sound when gold is acquired off/on. Takes a bool.
SetTowerBackdoorProtectionEnabled void SetTowerBackdoorProtectionEnabled(bool ) Enables/Disables tower backdoor protection
SetTopBarTeamValue void SetTopBarTeamValue(int , int ) Set the team values on the top game bar.
SetCustomBuybackCooldownEnabled void SetCustomBuybackCooldownEnabled(bool ) Turns on capability to define custom buyback cooldowns.
SetOverrideSelectionEntity void SetOverrideSelectionEntity(handle unit) Set an override for the default selection entity, instead of each player's hero.
SetCameraDistanceOverride void SetCameraDistanceOverride(float ) Set a different camera distance; dota default is 1134.


CDotaQuest

No Description Set

Function Signature Description
SetTextReplaceString void SetTextReplaceString(string ) Set the text replace string for this quest
CompleteQuest void CompleteQuest() Mark this quest complete
RemoveSubquest void RemoveSubquest(handle ) Remove a subquest from this quest
SetTextReplaceValue void SetTextReplaceValue(int , int ) Set a quest value
GetSubquest handle GetSubquest(int ) Finds a subquest from this quest by index
GetSubquestByName handle GetSubquestByName(string ) Finds a subquest from this quest by name
AddSubquest void AddSubquest(handle ) Add a subquest to this quest


CDotaSubquestBase

No Description Set

Function Signature Description
SetTextReplaceString void SetTextReplaceString(string ) Set the text replace string for this subquest
CompleteSubquest void CompleteSubquest() Mark this subquest complete
SetTextReplaceValue void SetTextReplaceValue(int , int ) Set a subquest value


CPhysicsComponent

No Description Set

Function Signature Description
ExpensiveInstantRayCast bool ExpensiveInstantRayCast(Vector , Vector , handle ) Do an instant (i.e. blocking) Ray Cast. Will do a handle/queue version later. Don't plan to use this for real!


CPointTemplate

No Description Set

Function Signature Description
ForceSpawn void ForceSpawn() ForceSpawn() : Spawns all of the entities the point_template is pointing at.
GetSpawnedEntities handle GetSpawnedEntities() GetSpawnedEntities() : Get the list of the most recent spawned entities
SetSpawnCallback void SetSpawnCallback(handle , handle ) SetSpawnCallback( hCallbackFunc, hCallbackScope, hCallbackData ) : Set a callback for when the template spawns entities. The spawned entities will be passed in as an array.
DeleteCreatedSpawnGroups void DeleteCreatedSpawnGroups() DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this.


CBodyComponent

No Description Set

Function Signature Description
SetAnimation void SetAnimation(string ) Pass string for the animation to play on this model
SetVelocity void SetVelocity(Vector velocity) No Description Set
SetBodyGroup void SetBodyGroup(string ) No Description Set
AddImpulseAtPosition void AddImpulseAtPosition(Vector , Vector ) Apply an impulse at a worldspace position to the physics
SetMaterialGroup void SetMaterialGroup(utlstringtoken ) No Description Set
SetAngularVelocity void SetAngularVelocity(Vector ) No Description Set
LookupSequence <> LookupSequence(string ) Returns a sequence id given a name
SequenceDuration float SequenceDuration(string ) Returns the duration in seconds of the specified sequence
AddVelocity void AddVelocity(Vector , Vector ) Add linear and angular velocity to the physics object
IsAttachedToParent bool IsAttachedToParent() Is attached to parent
DetachFromParent void DetachFromParent() Detach from its parent
GetSequence <> GetSequence() Returns the active sequence


CBaseAnimating

No Description Set

Function Signature Description
IsSequenceFinished bool IsSequenceFinished() Ask whether the main sequence is done playing
ScriptLookupAttachment int ScriptLookupAttachment(string ) Get the named attachment id
SetModelScale void SetModelScale(float modelScale) ( flScale ) - set scale of entity's model
GetAttachmentAngles Vector GetAttachmentAngles(int ) Get the attachement id's angles as a p,y,r vector
SetPoseParameter float SetPoseParameter(string , float ) Set the specified pose parameter to the specified value
GetAttachmentOrigin Vector GetAttachmentOrigin(int ) Get the attachement id's origin vector
SetBodygroup void SetBodygroup(int , int ) Sets a bodygroup


CBaseCombatCharacter

No Description Set

Function Signature Description
GetEquippedWeapons table GetEquippedWeapons() GetEquippedWeapons() : Returns an array of all the equipped weapons
GetWeaponCount int GetWeaponCount() GetWeaponCount() : Gets the number of weapons currently equipped


ProjectileManager

No Description Set

Function Signature Description
ProjectileDodge void ProjectileDodge(handle ) Makes the specified unit dodge projectiles
CreateLinearProjectile int CreateLinearProjectile(handle ) Creates a linear projectile and returns the projectile ID
DestroyLinearProjectile void DestroyLinearProjectile(int ) Destroys the linear projectile matching the argument ID
CreateTrackingProjectile void CreateTrackingProjectile(handle ) Creates a tracking projectile


CBaseTrigger

No Description Set

Function Signature Description
Enable void Enable() Enable the trigger
IsTouching bool IsTouching(handle ) Checks whether the passed entity is touching the trigger.
Disable void Disable() Disable the trigger


CEnvEntityMaker

No Description Set

Function Signature Description
SpawnEntityAtEntityOrigin void SpawnEntityAtEntityOrigin(handle ) Create an entity at the location of a specified entity instance
SpawnEntityAtNamedEntityOrigin void SpawnEntityAtNamedEntityOrigin(string ) Create an entity at the location of a named entity
SpawnEntityAtLocation void SpawnEntityAtLocation(Vector , Vector ) Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll)
SpawnEntity void SpawnEntity() Create an entity at the location of the maker


CDOTAVoteSystem

No Description Set

Function Signature Description
StartVote void StartVote(handle ) Starts a vote, based upon a table of parameters


CMarkupVolumeTagged

No Description Set

Function Signature Description
HasTag bool HasTag(string ) Does this volume have the given tag.


CScriptPrecacheContext

No Description Set

Function Signature Description
GetValue table GetValue(string ) Reads a spawn key
AddResource void AddResource(string ) Precaches a specific resource


CScriptKeyValues

No Description Set

Function Signature Description
GetValue table GetValue(string ) Reads a spawn key


CScriptParticleManager

No Description Set

Global accessor variable: ParticleManager

Function Signature Description
SetParticleAlwaysSimulate void SetParticleAlwaysSimulate(int ) No Description Set
SetParticleControl void SetParticleControl(int particleId, int controlIndex, Vector controlData) Set the control point data for a control on a particle effect
CreateParticleForPlayer int CreateParticleForPlayer(string particleName, int particleAttach, handle owningEntity, handle owningPlayer) Creates a new particle effect that only plays for the specified player
ReleaseParticleIndex void ReleaseParticleIndex(int particleId) Frees the specified particle index
GetParticleReplacement string GetParticleReplacement(string , handle ) No Description Set
SetParticleControlEnt void SetParticleControlEnt(int , int , handle , int , string , Vector , bool ) No Description Set
CreateParticle int CreateParticle(string particleName, int particleAttach, handle owningEntity) Creates a new particle effect


CScriptHeroList

No Description Set

Function Signature Description
GetHero handle GetHero(int heroId) Get the Nth hero in the Hero List
GetAllHeroes table GetAllHeroes() Returns all the heroes in the world
GetHeroCount int GetHeroCount() Returns the number of heroes in the world


CNativeOutputs

No Description Set

Function Signature Description
Init void Init(int ) Initialize with number of outputs
AddOutput void AddOutput(string , string ) Add an output


CEnvProjectedTexture

No Description Set

Function Signature Description
SetVolumetrics void SetVolumetrics(bool , float , float , int , float ) Turn on/off light volumetrics: bool bOn, float flIntensity, float flNoise, int nPlanes, float flPlaneOffset
SetFarRange void SetFarRange(float ) Set light maximum range
SetQuadraticAttenuation void SetQuadraticAttenuation(float ) Set light quadratic attenuation value
SetNearRange void SetNearRange(float ) Set light minimum range
SetLinearAttenuation void SetLinearAttenuation(float ) Set light linear attenuation value


CInfoData

No Description Set

Function Signature Description
QueryString string QueryString(utlstringtoken , string ) Query string data for this key
QueryNumber float QueryNumber(utlstringtoken , float ) Query number data for this key
QueryInt int QueryInt(utlstringtoken , int ) Query int data for this key
QueryColor Vector QueryColor(utlstringtoken , Vector ) Query color data for this key
QueryVector Vector QueryVector(utlstringtoken , Vector ) Query vector data for this key
QueryFloat float QueryFloat(utlstringtoken , float ) Query float data for this key


CPhysicsProp

No Description Set

Function Signature Description
DisableMotion void DisableMotion() Enable motion for the prop
EnableMotion void EnableMotion() Enable motion for the prop


CDOTAGamerules

No Description Set

Function Signature Description
SetPostGameTime void SetPostGameTime(float time) Sets the amount of time players have between the game ending and the server disconnecting them.
State_Get <> State_Get() Get the current Gamerules state
MakeTeamLose void MakeTeamLose(int team) Makes ths specified team lose
Defeated void Defeated() Kills the ancient, etc.
ResetToHeroSelection void ResetToHeroSelection() Restart the game at hero selection
SendCustomMessage void SendCustomMessage(string , int , int ) Sends a string to the defined team.
SetCreepMinimapIconScale void SetCreepMinimapIconScale(float scale) Scale the creep icons on the minimap.
GetNianFightStartTime float GetNianFightStartTime() Gets the start time for the Nian fight
NumDroppedItems int NumDroppedItems() Returns the number of items currently dropped on the ground
SetGoldTickTime void SetGoldTickTime(float ) Set the time interval between auto gold increases.
GetMatchSignoutComplete bool GetMatchSignoutComplete() Have we received the post match signout message that includes reward information
GetDifficulty int GetDifficulty() Returns difficulty level of the custom game mode
ResetDefeated void ResetDefeated() Restart after killing the ancient, etc.
GetNianTotalDamageTaken int GetNianTotalDamageTaken() For New Bloom, get total damage taken by the Nian / Year Beast
SetHeroRespawnEnabled void SetHeroRespawnEnabled(bool canRespawn) Control if the normal DOTA hero respawn rules apply.
SetGameWinner void SetGameWinner(int team) Makes ths specified team win
SetHeroSelectionTime void SetHeroSelectionTime(float time) Sets the amount of time players have to pick their hero.
SetUseUniversalShopMode void SetUseUniversalShopMode(bool enabled) When true, all items are available at as long as any shop is in range, including Secret Shop items
SetCustomGameDifficulty void SetCustomGameDifficulty(int ) Set the difficulty level of the custom game mode
SetUseCustomHeroXPValues void SetUseCustomHeroXPValues(bool ) Allows heroes in the map to give a specific amount of XP (this value must be set).
Playtesting_UpdateAddOnKeyValues void Playtesting_UpdateAddOnKeyValues() Updates custom hero, unit and ability KeyValues in memory with the latest values from disk
IsDaytime bool IsDaytime() Is it day time.
GetDroppedItem handle GetDroppedItem(int dropIndex) Gets the Xth dropped item
SetTreeRegrowTime void SetTreeRegrowTime(float time) Sets the tree regrow time in seconds.
SetFirstBloodActive void SetFirstBloodActive(bool ) Sets whether First Blood has been triggered.
GetGameModeEntity handle GetGameModeEntity() Get the game mode entity
DidMatchSignoutTimeOut bool DidMatchSignoutTimeOut() true when we have waited some time after end of the game and not received signout
SetTimeOfDay void SetTimeOfDay(float time) Set the time of day.
GetCustomGameDifficulty int GetCustomGameDifficulty() Returns the difficulty level of the custom game mode
SetOverlayHealthBarUnit void SetOverlayHealthBarUnit(handle unit, int style) Show this unit's health on the overlay health bar
SetSameHeroSelectionEnabled void SetSameHeroSelectionEnabled(bool enabled) When true, players can repeatedly pick the same hero.
SetGoldPerTick void SetGoldPerTick(int ) Set the auto gold increase per timed interval.
SetPreGameTime void SetPreGameTime(float time) Sets the amount of time players have between picking their hero and game start.
GetGameTime float GetGameTime() Returns the number of seconds elapsed since map start. This time doesn't count up when the game is paused
SetUseBaseGoldBountyOnHeroes void SetUseBaseGoldBountyOnHeroes(bool ) Heroes will use the basic NPC functionality for determining their bounty, rather than DOTA specific formulas.
SetRuneSpawnTime void SetRuneSpawnTime(float time) Sets the amount of time between rune spawns.
SetNianFightStartTime void SetNianFightStartTime(float ) Sets the start time for the Nian fight
SetHeroMinimapIconSize void SetHeroMinimapIconSize(int iconSize) (nMinimapHeroIconSize) - Set the hero minimap icon size.
SetSafeToLeave void SetSafeToLeave(bool safeToLeave) Mark this game as safe to leave.
GetTimeOfDay float GetTimeOfDay() Get the time of day
SetRuneMinimapIconScale void SetRuneMinimapIconScale(float scale) Scale the rune icons on the minimap.


CToneMapControllerComponent

No Description Set

Function Signature Description
GetMinExposure float GetMinExposure() Gets min exposure for this tonemap controller
GetMaxExposure float GetMaxExposure() Gets max exposure for this tonemap controller
GetBloomScale float GetBloomScale() Gets bloomscale for this tonemap controller
SetMaxExposure void SetMaxExposure(float ) Sets max exposure for this tonemap controller
SetMinExposure void SetMinExposure(float ) Sets min exposure for this tonemap controller
SetBloomScale void SetBloomScale(float ) Sets bloom scale for this tonemap controller


CDebugOverlayScriptHelper

No Description Set

Function Signature Description
VertArrow void VertArrow(Vector , Vector , float , int , int , int , int , bool , float ) Draws a vertical arrow. Specify endpoint's in world space.
Sphere void Sphere(Vector , float , int , int , int , int , bool , float ) Draws a wireframe sphere. Specify center in world space.
YawArrow void YawArrow(Vector , float , float , float , int , int , int , int , bool , float ) Draws a arrow associated with a specific yaw. Specify endpoint's in world space.
Capsule void Capsule(Vector , Quaternion , float , float , int , int , int , int , bool , float ) Draws a capsule. Specify base in world space.
SweptBox void SweptBox(Vector , Vector , Vector , Vector , Quaternion , int , int , int , int , float ) Draws a swept box. Specify endpoint's in world space and the bounds in local space.
EntitySkeleton void EntitySkeleton(ehandle , float ) Draws the skeleton of the entity
Line2D void Line2D(Vector2D , Vector2D , int , int , int , int , float ) Draws a line between two point's in screenspace
Texture void Texture(string , Vector2D , Vector2D , int , int , int , int , Vector2D , Vector2D , float ) Draws a screen-space texture. Coordinates are in pixels.
EntityAxis void EntityAxis(ehandle , float , bool , float ) Draws the axis of the entity origin
Cross3D void Cross3D(Vector , float , int , int , int , int , bool , float ) Draws a world-aligned cross. Specify origin in world space.
PushAndClearDebugOverlayScope void PushAndClearDebugOverlayScope(utlstringtoken ) Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id.
Triangle void Triangle(Vector , Vector , Vector , int , int , int , int , bool , float ) Draws a filled triangle. Specify vertices in world space.
Line void Line(Vector , Vector , int , int , int , int , bool , float ) Draws a line between two point's
BoxAngles void BoxAngles(Vector , Vector , Vector , Quaternion , int , int , int , int , bool , float ) Draws an oriented box at the origin. Specify bounds in local space.
Axis void Axis(Vector , Quaternion , float , bool , float ) Draws an axis. Specify origin + orientation in world space.
DrawTickMarkedLine void DrawTickMarkedLine(Vector , Vector , float , int , int , int , int , int , bool , float ) Draws a dashed line. Specify endpoint's in world space.
CircleScreenOriented void CircleScreenOriented(Vector , float , int , int , int , int , bool , float ) Draws a circle oriented to the screen. Specify center in world space.
Cross void Cross(Vector , float , int , int , int , int , bool , float ) Draws a screen-aligned cross. Specify origin in world space.
EntityText void EntityText(ehandle , int , string , int , int , int , int , float ) Draws text on an entity
Circle void Circle(Vector , Quaternion , float , int , int , int , int , bool , float ) Draws a circle. Specify center in world space.
EntityAttachments void EntityAttachments(ehandle , float ) Draws the attachments of the entity
PopDebugOverlayScope void PopDebugOverlayScope() Pops the identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
Cone void Cone(Vector , Vector , float , float , int , int , int , int , bool , float ) Draws a wireframe cone. Specify endpoint and direction in world space.
Box void Box(Vector , Vector , int , int , int , int , bool , float ) Draws a world-space axis-aligned box. Specify bounds in world space.
Cross3DOriented void Cross3DOriented(Vector , Quaternion , float , int , int , int , int , bool , float ) Draws an oriented cross. Specify origin in world space.
RemoveAllInScope void RemoveAllInScope(utlstringtoken ) Removes all overlays marked with a specific identifier, regardless of their lifetime.
EntityBounds void EntityBounds(ehandle , int , int , int , int , bool , float ) Draws bounds of an entity
VectorText3D void VectorText3D(Vector , Quaternion , string , int , int , int , int , bool , float ) Draws 3D text. Specify origin + orientation in world space.
FilledRect2D void FilledRect2D(Vector2D , Vector2D , int , int , int , int , float ) Draws a screen-space filled 2D rectangle. Coordinates are in pixels.
SolidCone void SolidCone(Vector , Vector , float , float , int , int , int , int , bool , float ) Draws a solid cone. Specify endpoint and direction in world space.
UnitTestCycleOverlayRenderType void UnitTestCycleOverlayRenderType() Toggles the overlay render type, for unit tests
HorzArrow void HorzArrow(Vector , Vector , float , int , int , int , int , bool , float ) Draws a horizontal arrow. Specify endpoint's in world space.
PushDebugOverlayScope void PushDebugOverlayScope(utlstringtoken ) Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
Text void Text(Vector , int , string , float , int , int , int , int , float ) Draws 2D text. Specify origin in world space.


CBaseFlex

No Description Set

Function Signature Description
GetCurrentScene handle GetCurrentScene() Returns the instance of the oldest active scene entity (if any).
GetSceneByIndex handle GetSceneByIndex(int ) Returns the instance of the scene entity at the specified index.


CSceneEntity

No Description Set

Function Signature Description
IsPaused bool IsPaused() If this scene is currently paused.
EstimateLength float EstimateLength() Returns length of this scene in seconds.
LoadSceneFromString bool LoadSceneFromString(string , string ) given a dummy scene name and a vcd string, load the scene
Start void Start(handle ) Start scene playback, takes activatorEntity as param
FindCamera handle FindCamera() Get the camera
Cancel void Cancel() Cancel scene playback
IsPlayingBack bool IsPlayingBack() If this scene is currently playing.
AddBroadcastTeamTarget void AddBroadcastTeamTarget(int ) Adds a team (by index) to the broadcast list
RemoveBroadcastTeamTarget void RemoveBroadcastTeamTarget(int ) Removes a team (by index) from the broadcast list
FindNamedEntity handle FindNamedEntity(string ) given an entity reference, such as !target, get actual entity from scene object


GridNav

No Description Set

Function Signature Description
IsTraversable bool IsTraversable(Vector ) Checks whether the given position is traversable
IsNearbyTree bool IsNearbyTree(Vector , float , bool ) (position, radius, checkFullTreeRadius?) Checks whether there are any trees overlapping the given point
IsBlocked bool IsBlocked(Vector ) Checks whether the given position is blocked
WorldToGridPosX int WorldToGridPosX(float ) Get the X index of a given world X position
GridPosToWorldCenterX float GridPosToWorldCenterX(int ) Get the X position of the center of a given X index
WorldToGridPosY int WorldToGridPosY(float ) Get the Y index of a given world Y position
GridPosToWorldCenterY float GridPosToWorldCenterY(int ) Get the Y position of the center of a given Y index
RegrowAllTrees void RegrowAllTrees() Causes all trees in the map to regrow


Convars

No Description Set

Global accessor variable: ConVars

Function Signature Description
GetFloat table GetFloat(string name) GetFloat(name) : returns the convar as a float. May return nil if no such convar.
GetStr table GetStr(string variableName) GetStr(name) : returns the convar as a string. May return nil if no such convar.
SetStr void SetStr(string , string ) SetStr(name, val) : sets the value of the convar to the string.
SetInt void SetInt(string , int ) SetInt(name, val) : sets the value of the convar to the int.
RegisterCommand void RegisterCommand(string variableName, handle function, string helpText, int flags) RegisterCommand(name, fn, helpString, flags) : register a console command.
GetDOTACommandClient handle GetDOTACommandClient() GetDOTACommandClient() : returns the DOTA player who issued this console command.
GetCommandClient handle GetCommandClient() GetCommandClient() : returns the player who issued this console command.
GetInt table GetInt(string ) GetInt(name) : returns the convar as an int. May return nil if no such convar.
SetFloat void SetFloat(string variableName, float value) SetFloat(name, val) : sets the value of the convar to the float.
RegisterConvar void RegisterConvar(string name, string defaultValue, string helpText, int flags) RegisterConvar(name, defaultValue, helpString, flags): register a new console variable.
GetBool table GetBool(string variableName) GetBool(name) : returns the convar as a boolean flag.
SetBool void SetBool(string variableName, bool value) SetBool(name, val) : sets the value of the convar to the bool.