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

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


Line 562: Line 559:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBaseVelocity | GetBaseVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse | ApplyAbsVelocityImpulse]]
| <code>Vector GetBaseVelocity() </code>
| <code>void ApplyAbsVelocityImpulse(Vector ) </code>
| Get Base velocity
| Apply a Velocity Impulse
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse | ApplyLocalAngularVelocityImpulse]]
| <code>void ApplyLocalAngularVelocityImpulse(Vector ) </code>
| Apply an Ang Velocity Impulse
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSound | EmitSound]]
| <code>void EmitSound(string soundName) </code>
| Plays a sound from this entity.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams | EmitSoundParams]]
| <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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyeAngles | EyeAngles]]
| <code>QAngle EyeAngles() </code>
| Get the qangles that this entity is looking at.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyePosition | EyePosition]]
| <code>Vector EyePosition() </code>
| Get ''vector'' to eye position - absolute coords
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetSize | SetSize]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.FirstMoveChild | FirstMoveChild]]
| <code>void SetSize(Vector , Vector ) </code>
| <code>handle FirstMoveChild() </code>
| No Description Set
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetRenderColor | SetRenderColor]]
| <code>void SetRenderColor(int , int , int ) </code>
| SetRenderColor( r, g, b ): Sets the render color of the entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria | GatherCriteria]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria | GatherCriteria]]
Line 578: Line 591:
| 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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Trigger | Trigger]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAbsOrigin | GetAbsOrigin]]
| <code>void Trigger() </code>
| <code>Vector GetAbsOrigin() </code>
| Fires off this entity's OnTrigger responses
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOwner | SetOwner]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngles | GetAngles]]
| <code>void SetOwner(handle owningEntity) </code>
| <code>QAngle GetAngles() </code>
| Sets this entity's owner
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAbsOrigin | SetAbsOrigin]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAnglesAsVector | GetAnglesAsVector]]
| <code>void SetAbsOrigin(Vector origin) </code>
| <code>Vector GetAnglesAsVector() </code>
| SetAbsOrigin
| Get entity pitch, yaw, roll as a ''vector''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngularVelocity | SetAngularVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngularVelocity | GetAngularVelocity]]
| <code>void SetAngularVelocity(float pitch, float yaw, float roll) </code>
| <code>Vector GetAngularVelocity() </code>
| Set the local angular velocity - takes ''float'' pitch,yaw,roll velocities
| Get the local angular velocity - returns a ''vector'' of pitch,yaw,roll
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwner | GetOwner]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBaseVelocity | GetBaseVelocity]]
| <code>handle GetOwner() </code>
| <code>Vector GetBaseVelocity() </code>
| Gets this entity's owner
| Get Base velocity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwnerEntity | GetOwnerEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMaxs | GetBoundingMaxs]]
| <code>handle GetOwnerEntity() </code>
| <code>Vector GetBoundingMaxs() </code>
| Get the owner entity, if there is one
| Get a ''vector'' containing max bounds, centered on object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetChildren | GetChildren]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMins | GetBoundingMins]]
| <code>handle GetChildren() </code>
| <code>Vector GetBoundingMins() </code>
| Get the entities parented to this entity.
| Get a ''vector'' containing min bounds, centered on object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetMaxHealth | SetMaxHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBounds | GetBounds]]
| <code>void SetMaxHealth(int maxHP) </code>
| <code>table GetBounds() </code>
| No Description Set
| Get a ''table'' containing the 'Mins' & 'Maxs' ''vector'' bounds, centered on object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetCenter | GetCenter]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetCenter | GetCenter]]
Line 614: Line 627:
| Get ''vector'' to center of object - absolute coords
| Get ''vector'' to center of object - absolute coords
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Kill | Kill]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetChildren | GetChildren]]
| <code>void Kill() </code>
| <code>handle GetChildren() </code>
| No Description Set
| Get the entities parented to this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.FirstMoveChild | FirstMoveChild]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext | GetContext]]
| <code>handle FirstMoveChild() </code>
| <code>table GetContext(string ) </code>
| No Description Set
| GetContext( name ): looks up a context and returns it if available. May return ''string'', ''float'', or ''nil'' (if the context isn't found)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMoveParent | GetMoveParent]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetForwardVector | GetForwardVector]]
| <code>handle GetMoveParent() </code>
| <code>Vector GetForwardVector() </code>
| If in hierarchy, retrieves the entity's parent
| Get the forward ''vector'' of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetForwardVector | SetForwardVector]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetHealth | GetHealth]]
| <code>void SetForwardVector(Vector forwardVec) </code>
| <code>int GetHealth() </code>
| Set the orientation of the entity to have this forward ''forwardVec''
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextNum | SetContextNum]]
| <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').
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAbsOrigin | GetAbsOrigin]]
| <code>Vector GetAbsOrigin() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngularVelocity | GetAngularVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalAngularVelocity | GetLocalAngularVelocity]]
| <code>Vector GetAngularVelocity() </code>
| <code>QAngle GetLocalAngularVelocity() </code>
| Get the local angular velocity - returns a ''vector'' of pitch,yaw,roll
| Maybe local angvel
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.NextMovePeer | NextMovePeer]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalVelocity | GetLocalVelocity]]
| <code>handle NextMovePeer() </code>
| <code>Vector GetLocalVelocity() </code>
| No Description Set
| Get Entity relative velocity
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse | ApplyLocalAngularVelocityImpulse]]
| <code>void ApplyLocalAngularVelocityImpulse(Vector ) </code>
| Apply an Ang Velocity Impulse
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMaxHealth | GetMaxHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMaxHealth | GetMaxHealth]]
Line 654: Line 655:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.PrecacheScriptSound | PrecacheScriptSound]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetModelName | GetModelName]]
| <code>void PrecacheScriptSound(string ) </code>
| <code>string GetModelName() </code>
| Precache a sound for later playing.
| Returns the name of the model
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextThink | SetContextThink]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMoveParent | GetMoveParent]]
| <code>void SetContextThink(string , handle , float ) </code>
| <code>handle GetMoveParent() </code>
| Set a think function on this entity.
| If in hierarchy, retrieves the entity's parent
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBounds | GetBounds]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOrigin | GetOrigin]]
| <code>table GetBounds() </code>
| <code>Vector GetOrigin() </code>
| Get a ''table'' containing the 'Mins' & 'Maxs' ''vector'' bounds, centered on object
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetTeam | SetTeam]]
| <code>void SetTeam(int team) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetHealth | GetHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwner | GetOwner]]
| <code>int GetHealth() </code>
| <code>handle GetOwner() </code>
| No Description Set
| Gets this entity's owner
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetForwardVector | GetForwardVector]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwnerEntity | GetOwnerEntity]]
| <code>Vector GetForwardVector() </code>
| <code>handle GetOwnerEntity() </code>
| Get the forward ''vector'' of the entity
| Get the owner entity, if there is one
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMaxs | GetBoundingMaxs]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRightVector | GetRightVector]]
| <code>Vector GetBoundingMaxs() </code>
| <code>Vector GetRightVector() </code>
| Get a ''vector'' containing max bounds, centered on object
| Get the right ''vector'' of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetModelName | GetModelName]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRootMoveParent | GetRootMoveParent]]
| <code>string GetModelName() </code>
| <code>handle GetRootMoveParent() </code>
| Returns the name of the model
| If in hierarchy, walks up the hierarchy to find the root parent
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext | SetContext]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetSoundDuration | GetSoundDuration]]
| <code>void SetContext(string , string , float ) </code>
| <code>float GetSoundDuration(string soundName, string actormodelname) </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').
| Returns ''float'' duration of the sound. Takes soundname and optional actormodelname.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams | EmitSoundParams]]
| <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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity | SetVelocity]]
| <code>void SetVelocity(Vector ) </code>
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetTeam | GetTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetTeam | GetTeam]]
Line 702: Line 691:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext | GetContext]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetUpVector | GetUpVector]]
| <code>table GetContext(string ) </code>
| <code>Vector GetUpVector() </code>
| GetContext( name ): looks up a context and returns it if available. May return ''string'', ''float'', or ''nil'' (if the context isn't found)
| Get the up ''vector'' of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngles | GetAngles]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetVelocity | GetVelocity]]
| <code>QAngle GetAngles() </code>
| <code>Vector GetVelocity() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetHealth | SetHealth]]
| <code>void SetHealth(int hp) </code>
| No Description Set
| No Description Set
|-
|-
Line 718: Line 703:
| No Description Set.
| No Description Set.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent | SetParent]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsPlayer | IsPlayer]]
| <code>void SetParent(handle , string ) </code>
| <code>bool IsPlayer() </code>
| Set the parent for this entity.
| Is this a player entity?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAnglesAsVector | GetAnglesAsVector]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Kill | Kill]]
| <code>Vector GetAnglesAsVector() </code>
| <code>void Kill() </code>
| Get entity pitch, yaw, roll as a ''vector''
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSound | EmitSound]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.NextMovePeer | NextMovePeer]]
| <code>void EmitSound(string soundName) </code>
| <code>handle NextMovePeer() </code>
| Plays a sound from this entity.
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction | OverrideFriction]]
| <code>void OverrideFriction(float , float ) </code>
| Takes duration, value for a temporary override
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.PrecacheScriptSound | PrecacheScriptSound]]
| <code>void PrecacheScriptSound(string ) </code>
| Precache a sound for later playing.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAbsOrigin | SetAbsOrigin]]
| <code>void SetAbsOrigin(Vector origin) </code>
| SetAbsOrigin
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngles | SetAngles]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngles | SetAngles]]
Line 734: Line 731:
| Set entity pitch, yaw, roll
| Set entity pitch, yaw, roll
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyeAngles | EyeAngles]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngularVelocity | SetAngularVelocity]]
| <code>QAngle EyeAngles() </code>
| <code>void SetAngularVelocity(float pitch, float yaw, float roll) </code>
| Get the qangles that this entity is looking at.
| Set the local angular velocity - takes ''float'' pitch,yaw,roll velocities
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyePosition | EyePosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext | SetContext]]
| <code>Vector EyePosition() </code>
| <code>void SetContext(string , string , float ) </code>
| Get ''vector'' to eye position - absolute coords
| 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').
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse | ApplyAbsVelocityImpulse]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextNum | SetContextNum]]
| <code>void ApplyAbsVelocityImpulse(Vector ) </code>
| <code>void SetContextNum(string , float , float ) </code>
| Apply a Velocity Impulse
| 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').
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRootMoveParent | GetRootMoveParent]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextThink | SetContextThink]]
| <code>handle GetRootMoveParent() </code>
| <code>void SetContextThink(string , handle , float ) </code>
| If in hierarchy, walks up the hierarchy to find the root parent
| Set a think function on this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction | OverrideFriction]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetForwardVector | SetForwardVector]]
| <code>void OverrideFriction(float , float ) </code>
| <code>void SetForwardVector(Vector forwardVec) </code>
| Takes duration, value for a temporary override
| Set the orientation of the entity to have this forward ''forwardVec''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction | SetFriction]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction | SetFriction]]
Line 758: Line 755:
| Set PLAYER friction, ignored for objects
| Set PLAYER friction, ignored for objects
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetModel | SetModel]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetGravity | SetGravity]]
| <code>void SetModel(string modelName) </code>
| <code>void SetGravity(float ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetUpVector | GetUpVector]]
| <code>Vector GetUpVector() </code>
| Get the up ''vector'' of the entity
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetGravity | SetGravity]]
| <code>void SetGravity(float ) </code>
| Set PLAYER gravity, ignored for objects
| Set PLAYER gravity, ignored for objects
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsPlayer | IsPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetHealth | SetHealth]]
| <code>bool IsPlayer() </code>
| <code>void SetHealth(int hp) </code>
| Is this a player entity?
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetVelocity | GetVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetMaxHealth | SetMaxHealth]]
| <code>Vector GetVelocity() </code>
| <code>void SetMaxHealth(int maxHP) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalVelocity | GetLocalVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetModel | SetModel]]
| <code>Vector GetLocalVelocity() </code>
| <code>void SetModel(string modelName) </code>
| Get Entity relative velocity
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.StopSound | StopSound]]
| <code>void StopSound(string soundName) </code>
| Stops a named sound playing from this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOrigin | SetOrigin]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOrigin | SetOrigin]]
Line 790: Line 775:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetSoundDuration | GetSoundDuration]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOwner | SetOwner]]
| <code>float GetSoundDuration(string soundName, string actormodelname) </code>
| <code>void SetOwner(handle owningEntity) </code>
| Returns ''float'' duration of the sound. Takes soundname and optional actormodelname.
| Sets this entity's owner
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalAngularVelocity | GetLocalAngularVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent | SetParent]]
| <code>QAngle GetLocalAngularVelocity() </code>
| <code>void SetParent(handle , string ) </code>
| Maybe local angvel
| Set the parent for this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOrigin | GetOrigin]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetRenderColor | SetRenderColor]]
| <code>Vector GetOrigin() </code>
| <code>void SetRenderColor(int , int , int ) </code>
| SetRenderColor( r, g, b ): Sets the render color of the entity.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetSize | SetSize]]
| <code>void SetSize(Vector , Vector ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetTeam | SetTeam]]
| <code>void SetTeam(int team) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity | SetVelocity]]
| <code>void SetVelocity(Vector ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMins | GetBoundingMins]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.StopSound | StopSound]]
| <code>Vector GetBoundingMins() </code>
| <code>void StopSound(string soundName) </code>
| Get a ''vector'' containing min bounds, centered on object
| Stops a named sound playing from this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRightVector | GetRightVector]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Trigger | Trigger]]
| <code>Vector GetRightVector() </code>
| <code>void Trigger() </code>
| Get the right ''vector'' of the entity
| Fires off this entity's OnTrigger responses
|}
|}


Line 821: Line 818:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.First | First]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.CreateByClassname | CreateByClassname]]
| <code>handle First() </code>
| <code>handle CreateByClassname(string className) </code>
| Begin an iteration over the list of entities
| Creates an entity by classname
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname | FindAllByClassname]]
| <code>table FindAllByClassname(string ) </code>
| Finds all entities by class name. Returns an array containing all the found entities.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassnameWithin | FindAllByClassnameWithin]]
| <code>table FindAllByClassnameWithin(string , Vector , float ) </code>
| Find entities by class name within a radius.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByModel | FindAllByModel]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByModel | FindAllByModel]]
Line 829: Line 834:
| Find entities by model name.
| Find entities by model name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByName | FindByName]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByName | FindAllByName]]
| <code>handle FindByName(handle lastEnt, string searchString) </code>
| <code>table FindAllByName(string name) </code>
| Find entities by name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find all entities by name. Returns an array containing all the found entities in it.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameWithin | FindByNameWithin]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByNameWithin | FindAllByNameWithin]]
| <code>handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) </code>
| <code>table FindAllByNameWithin(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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByTarget | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllInSphere | FindAllInSphere]]
| <code>table FindAllInSphere(Vector origin, float maxRadius) </code>
| Find entities within a radius.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassname | FindByClassname]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassname | FindByClassname]]
Line 845: Line 854:
| 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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByName | FindAllByName]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameNearest | FindByClassnameNearest]]
| <code>table FindAllByName(string name) </code>
| <code>handle FindByClassnameNearest(string className, Vector origin, float maxRadius) </code>
| Find all entities by name. Returns an array containing all the found entities in it.
| Find entities by class name nearest to a point.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassnameWithin | FindAllByClassnameWithin]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameWithin | FindByClassnameWithin]]
| <code>table FindAllByClassnameWithin(string , Vector , float ) </code>
| <code>handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) </code>
| Find entities by class name within a radius.
| Find entities by class name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModel | FindByModel]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModel | FindByModel]]
Line 857: Line 866:
| 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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByNameWithin | FindAllByNameWithin]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModelWithin | FindByModelWithin]]
| <code>table FindAllByNameWithin(string name, Vector origin, float maxRadius) </code>
| <code>handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) </code>
| Find entities by name within a radius.
| 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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameWithin | FindByClassnameWithin]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByName | FindByName]]
| <code>handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) </code>
| <code>handle FindByName(handle lastEnt, string searchString) </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 name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameNearest | FindByClassnameNearest]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameNearest | FindByNameNearest]]
| <code>handle FindByClassnameNearest(string className, Vector origin, float maxRadius) </code>
| <code>handle FindByNameNearest(string name, Vector origin, float maxRadius) </code>
| Find entities by class name nearest to a point.
| Find entities by name nearest to a point.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname | FindAllByClassname]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameWithin | FindByNameWithin]]
| <code>table FindAllByClassname(string ) </code>
| <code>handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) </code>
| Finds all entities by class name. Returns an array containing all the found entities.
| Find entities by name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByTarget | FindByTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByTarget | FindByTarget]]
Line 877: Line 886:
| 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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameNearest | FindByNameNearest]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindInSphere | FindInSphere]]
| <code>handle FindByNameNearest(string name, Vector origin, float maxRadius) </code>
| <code>handle FindInSphere(handle startFrom, Vector origin, float maxRadius) </code>
| Find entities by name nearest to a point.
| Find entities within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.CreateByClassname | CreateByClassname]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.First | First]]
| <code>handle CreateByClassname(string className) </code>
| <code>handle First() </code>
| Creates an entity by classname
| Begin an iteration over the list of entities
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllInSphere | FindAllInSphere]]
| <code>table FindAllInSphere(Vector origin, float maxRadius) </code>
| Find entities within a radius.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.Next | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindInSphere | FindInSphere]]
| <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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModelWithin | FindByModelWithin]]
| <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
|}
|}


Line 910: Line 907:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityIndex | GetEntityIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput | ConnectOutput]]
| <code>int GetEntityIndex() </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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.Destroy | Destroy]]
| <code>void Destroy() </code>
| No Description Set
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput | DisconnectOutput]]
| <code>void DisconnectOutput(string , string ) </code>
| Removes a connected script function from an I/O event on this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectRedirectedOutput | DisconnectRedirectedOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectRedirectedOutput | DisconnectRedirectedOutput]]
Line 918: Line 923:
| 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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePublicScriptScope | GetOrCreatePublicScriptScope]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.entindex | entindex]]
| <code>handle GetOrCreatePublicScriptScope() </code>
| <code>int entindex() </code>
| Retrieve, creating if necessary, the public script-side data associated with an entity
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePrivateScriptScope | GetOrCreatePrivateScriptScope]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput | FireOutput]]
| <code>handle GetOrCreatePrivateScriptScope() </code>
| <code>void FireOutput(string , handle , handle , table , float ) </code>
| Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
| Fire an entity output
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPrivateScriptScope | GetPrivateScriptScope]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetClassname | GetClassname]]
| <code>handle GetPrivateScriptScope() </code>
| <code>string GetClassname() </code>
| Retrieve the private per-instance script-side data associated with an entity
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput | RedirectOutput]]
| <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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr | GetIntAttr]]
| <code>int GetIntAttr(string ) </code>
| Get Integer Attribute
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput | FireOutput]]
| <code>void FireOutput(string , handle , handle , table , float ) </code>
| Fire an entity output
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetDebugName | GetDebugName]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetDebugName | GetDebugName]]
Line 946: Line 939:
| 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)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput | DisconnectOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityHandle | GetEntityHandle]]
| <code>void DisconnectOutput(string , string ) </code>
| <code>ehandle GetEntityHandle() </code>
| Removes a connected script function from an I/O event on this entity.
| Get the entity as an EHANDLE
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.Destroy | Destroy]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityIndex | GetEntityIndex]]
| <code>void Destroy() </code>
| <code>int GetEntityIndex() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetClassname | GetClassname]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr | GetIntAttr]]
| <code>string GetClassname() </code>
| <code>int GetIntAttr(string ) </code>
| No Description Set
| Get Integer Attribute
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetName | GetName]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetName | GetName]]
Line 962: Line 955:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput | ConnectOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePrivateScriptScope | GetOrCreatePrivateScriptScope]]
| <code>void ConnectOutput(string , string ) </code>
| <code>handle GetOrCreatePrivateScriptScope() </code>
| Adds an I/O connection that will call the named function on this entity when the specified output fires.
| Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.entindex | entindex]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePublicScriptScope | GetOrCreatePublicScriptScope]]
| <code>int entindex() </code>
| <code>handle GetOrCreatePublicScriptScope() </code>
| No Description Set
| Retrieve, creating if necessary, the public script-side data associated with an entity
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPrivateScriptScope | GetPrivateScriptScope]]
| <code>handle GetPrivateScriptScope() </code>
| Retrieve the private per-instance script-side data associated with an entity
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPublicScriptScope | GetPublicScriptScope]]
| <code>handle GetPublicScriptScope() </code>
| Retrieve the public script-side data associated with an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityHandle | GetEntityHandle]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput | RedirectOutput]]
| <code>ehandle GetEntityHandle() </code>
| <code>void RedirectOutput(string , string , handle ) </code>
| Get the entity as an EHANDLE
| Adds an I/O connection that will call the named function on the passed entity when the specified output fires.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RemoveSelf | RemoveSelf]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RemoveSelf | RemoveSelf]]
Line 981: Line 982:
| <code>void SetIntAttr(string , int ) </code>
| <code>void SetIntAttr(string , int ) </code>
| Set Integer Attribute
| Set Integer Attribute
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPublicScriptScope | GetPublicScriptScope]]
| <code>handle GetPublicScriptScope() </code>
| Retrieve the public script-side data associated with an entity
|}
|}


Line 996: Line 993:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAnimationIgnoresModelScale | GetAnimationIgnoresModelScale]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CastAbility | CastAbility]]
| <code>bool GetAnimationIgnoresModelScale() </code>
| <code>void CastAbility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsSharedWithTeammates | IsSharedWithTeammates]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ContinueCasting | ContinueCasting]]
| <code>bool IsSharedWithTeammates() </code>
| <code>bool ContinueCasting() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroLevelUp | OnHeroLevelUp]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]]
| <code>void OnHeroLevelUp() </code>
| <code>void CreateVisibilityNode(Vector , float , float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.DecrementModifierRefCount | DecrementModifierRefCount]]
| <code>void OnChannelFinish(bool ) </code>
| <code>void DecrementModifierRefCount() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAutoCast | ToggleAutoCast]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]]
| <code>void ToggleAutoCast() </code>
| <code>void EndChannel(bool ) </code>
| No Description Set
| Param: ''bool'' bInterrupted
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetDuration | GetDuration]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndCooldown | EndCooldown]]
| <code>float GetDuration() </code>
| <code>void EndCooldown() </code>
| Clear the cooldown remaining on this ability.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamage | GetAbilityDamage]]
| <code>int GetAbilityDamage() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsChanneling | IsChanneling]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamageType | GetAbilityDamageType]]
| <code>bool IsChanneling() </code>
| <code>int GetAbilityDamageType() </code>
| Returns whether the ability is currently channeling.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetType | GetAbilityTargetType]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityIndex | GetAbilityIndex]]
| <code>int GetAbilityTargetType() </code>
| <code>int GetAbilityIndex() </code>
| No Description Set
| No Description Set
|-
|-
Line 1,032: Line 1,033:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PlaysDefaultAnimWhenStolen | PlaysDefaultAnimWhenStolen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetFlags | GetAbilityTargetFlags]]
| <code>bool PlaysDefaultAnimWhenStolen() </code>
| <code>int GetAbilityTargetFlags() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsActivated | IsActivated]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetTeam | GetAbilityTargetTeam]]
| <code>bool IsActivated() </code>
| <code>int GetAbilityTargetTeam() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseInterrupted | OnAbilityPhaseInterrupted]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetType | GetAbilityTargetType]]
| <code>void OnAbilityPhaseInterrupted() </code>
| <code>int GetAbilityTargetType() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityType | GetAbilityType]]
| <code>void SetHidden(bool ) </code>
| <code>int GetAbilityType() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsPassive | IsPassive]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAnimationIgnoresModelScale | GetAnimationIgnoresModelScale]]
| <code>bool IsPassive() </code>
| <code>bool GetAnimationIgnoresModelScale() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastRange | GetCastRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedPrimaryAbilities | GetAssociatedPrimaryAbilities]]
| <code>int GetCastRange() </code>
| <code>string GetAssociatedPrimaryAbilities() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBackswingTime | GetBackswingTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedSecondaryAbilities | GetAssociatedSecondaryAbilities]]
| <code>float GetBackswingTime() </code>
| <code>string GetAssociatedSecondaryAbilities() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTime | GetCooldownTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAutoCastState | GetAutoCastState]]
| <code>float GetCooldownTime() </code>
| <code>bool GetAutoCastState() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayManaCost | PayManaCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBackswingTime | GetBackswingTime]]
| <code>void PayManaCost() </code>
| <code>float GetBackswingTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedSecondaryAbilities | GetAssociatedSecondaryAbilities]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBehavior | GetBehavior]]
| <code>string GetAssociatedSecondaryAbilities() </code>
| <code>int GetBehavior() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetStolenActivityModifier | GetStolenActivityModifier]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCaster | GetCaster]]
| <code>string GetStolenActivityModifier() </code>
| <code>handle GetCaster() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakTrigger | SpeakTrigger]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastPoint | GetCastPoint]]
| <code>bool SpeakTrigger() </code>
| <code>float GetCastPoint() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCostForUpgrade | PayGoldCostForUpgrade]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastRange | GetCastRange]]
| <code>void PayGoldCostForUpgrade() </code>
| <code>int GetCastRange() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValue | GetModifierValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]]
| <code>float GetModifierValue() </code>
| <code>int GetChannelledManaCostPerSecond(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTargetingNothing | GetCursorTargetingNothing]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelStartTime | GetChannelStartTime]]
| <code>bool GetCursorTargetingNothing() </code>
| <code>float GetChannelStartTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTimeRemaining | GetCooldownTimeRemaining]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelTime | GetChannelTime]]
| <code>float GetCooldownTimeRemaining() </code>
| <code>float GetChannelTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelStartTime | GetChannelStartTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCloneSource | GetCloneSource]]
| <code>float GetChannelStartTime() </code>
| <code>handle GetCloneSource() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorPosition | GetCursorPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetConceptRecipientType | GetConceptRecipientType]]
| <code>Vector GetCursorPosition() </code>
| <code>int GetConceptRecipientType() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetToggleState | GetToggleState]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]]
| <code>bool GetToggleState() </code>
| <code>float GetCooldown(int ) </code>
| Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTime | GetCooldownTime]]
| <code>float GetCooldownTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsInAbilityPhase | IsInAbilityPhase]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTimeRemaining | GetCooldownTimeRemaining]]
| <code>bool IsInAbilityPhase() </code>
| <code>float GetCooldownTimeRemaining() </code>
| Returns whether the ability is currently casting.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ProcsMagicStick | ProcsMagicStick]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorPosition | GetCursorPosition]]
| <code>bool ProcsMagicStick() </code>
| <code>Vector GetCursorPosition() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTarget | GetCursorTarget]]
| <code>float GetCooldown(int ) </code>
| <code>handle GetCursorTarget() </code>
| Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAbility | ToggleAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTargetingNothing | GetCursorTargetingNothing]]
| <code>void ToggleAbility() </code>
| <code>bool GetCursorTargetingNothing() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenWhenStolen | IsHiddenWhenStolen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetDuration | GetDuration]]
| <code>bool IsHiddenWhenStolen() </code>
| <code>float GetDuration() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnSpellStart | OnSpellStart]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]]
| <code>void OnSpellStart() </code>
| <code>int GetGoldCost(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CastAbility | CastAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]]
| <code>void CastAbility() </code>
| <code>int GetGoldCostForUpgrade(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetHeroLevelRequiredToUpgrade | GetHeroLevelRequiredToUpgrade]]
| <code>int GetChannelledManaCostPerSecond(int ) </code>
| <code>int GetHeroLevelRequiredToUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
Line 1,144: Line 1,149:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevel | GetLevel]]
| <code>bool IsOwnersGoldEnough(int ) </code>
| <code>int GetLevel() </code>
| No Description Set
| Get the current level of the ability
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHidden | IsHidden]]
| <code>bool IsHidden() </code>
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]]
Line 1,156: Line 1,157:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]]
| <code>int GetGoldCost(int ) </code>
| <code>int GetManaCost(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetMaxLevel | GetMaxLevel]]
| <code>void SetChanneling(bool ) </code>
| <code>int GetMaxLevel() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValue | GetModifierValue]]
| <code>void SetInAbilityPhase(bool ) </code>
| <code>float GetModifierValue() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValueBonus | GetModifierValueBonus]]
| <code>void SetAbilityIndex(int ) </code>
| <code>float GetModifierValueBonus() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetTeam | GetAbilityTargetTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetPlaybackRateOverride | GetPlaybackRateOverride]]
| <code>int GetAbilityTargetTeam() </code>
| <code>float GetPlaybackRateOverride() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSharedCooldownName | GetSharedCooldownName]]
| <code>void SpeakAbilityConcept(int ) </code>
| <code>string GetSharedCooldownName() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCooldownReady | IsCooldownReady]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]]
| <code>bool IsCooldownReady() </code>
| <code>table GetSpecialValueFor(string ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsToggle | IsToggle]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetStolenActivityModifier | GetStolenActivityModifier]]
| <code>bool IsToggle() </code>
| <code>string GetStolenActivityModifier() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastPoint | GetCastPoint]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetToggleState | GetToggleState]]
| <code>float GetCastPoint() </code>
| <code>bool GetToggleState() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnUpgrade | OnUpgrade]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]]
| <code>void OnUpgrade() </code>
| <code>bool HeroXPChange(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevel | GetLevel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IncrementModifierRefCount | IncrementModifierRefCount]]
| <code>int GetLevel() </code>
| <code>void IncrementModifierRefCount() </code>
| Get the current level of the ability
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsActivated | IsActivated]]
| <code>table GetSpecialValueFor(string ) </code>
| <code>bool IsActivated() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.DecrementModifierRefCount | DecrementModifierRefCount]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsAttributeBonus | IsAttributeBonus]]
| <code>void DecrementModifierRefCount() </code>
| <code>bool IsAttributeBonus() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityType | GetAbilityType]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsChanneling | IsChanneling]]
| <code>int GetAbilityType() </code>
| <code>bool IsChanneling() </code>
| No Description Set
| Returns whether the ability is currently channeling.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCooldownReady | IsCooldownReady]]
| <code>void UseResources(bool , bool , bool ) </code>
| <code>bool IsCooldownReady() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsAttributeBonus | IsAttributeBonus]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCosmetic | IsCosmetic]]
| <code>bool IsAttributeBonus() </code>
| <code>bool IsCosmetic() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.MarkAbilityButtonDirty | MarkAbilityButtonDirty]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsFullyCastable | IsFullyCastable]]
| <code>void MarkAbilityButtonDirty() </code>
| <code>bool IsFullyCastable() </code>
| Mark the ability button for this ability as needing a refresh
| Returns whether the ability can be cast.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHidden | IsHidden]]
| <code>void OnChannelThink(float ) </code>
| <code>bool IsHidden() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenWhenStolen | IsHiddenWhenStolen]]
| <code>bool HeroXPChange(float ) </code>
| <code>bool IsHiddenWhenStolen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetFlags | GetAbilityTargetFlags]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsInAbilityPhase | IsInAbilityPhase]]
| <code>int GetAbilityTargetFlags() </code>
| <code>bool IsInAbilityPhase() </code>
| No Description Set
| Returns whether the ability is currently casting.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroCalculateStatBonus | OnHeroCalculateStatBonus]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsItem | IsItem]]
| <code>void OnHeroCalculateStatBonus() </code>
| <code>bool IsItem() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint | SetOverrideCastPoint]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]]
| <code>void SetOverrideCastPoint(float ) </code>
| <code>bool IsOwnersGoldEnough(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamageType | GetAbilityDamageType]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnoughForUpgrade | IsOwnersGoldEnoughForUpgrade]]
| <code>int GetAbilityDamageType() </code>
| <code>bool IsOwnersGoldEnoughForUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefCountsModifiers | RefCountsModifiers]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersManaEnough | IsOwnersManaEnough]]
| <code>bool RefCountsModifiers() </code>
| <code>bool IsOwnersManaEnough() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsPassive | IsPassive]]
| <code>void CreateVisibilityNode(Vector , float , float ) </code>
| <code>bool IsPassive() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ResetToggleOnRespawn | ResetToggleOnRespawn]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsSharedWithTeammates | IsSharedWithTeammates]]
| <code>bool ResetToggleOnRespawn() </code>
| <code>bool IsSharedWithTeammates() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetPlaybackRateOverride | GetPlaybackRateOverride]]
| <code>float GetPlaybackRateOverride() </code>
| No Description Set
| No Description Set
|-
|-
Line 1,268: Line 1,265:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStolen | IsStolen]]
| <code>void EndChannel(bool ) </code>
| <code>bool IsStolen() </code>
| Param: ''bool'' bInterrupted
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]]
| <code>int GetGoldCostForUpgrade(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsToggle | IsToggle]]
| <code>void SetRefCountsModifiers(bool ) </code>
| <code>bool IsToggle() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsTrained | IsTrained]]
| <code>bool IsTrained() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.MarkAbilityButtonDirty | MarkAbilityButtonDirty]]
| <code>void MarkAbilityButtonDirty() </code>
| Mark the ability button for this ability as needing a refresh
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.NumModifiersUsingAbility | NumModifiersUsingAbility]]
| <code>int NumModifiersUsingAbility() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseInterrupted | OnAbilityPhaseInterrupted]]
| <code>void OnAbilityPhaseInterrupted() </code>
| No Description Set
| No Description Set
|-
|-
Line 1,284: Line 1,293:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UpgradeAbility | UpgradeAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPinged | OnAbilityPinged]]
| <code>void UpgradeAbility() </code>
| <code>void OnAbilityPinged() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]]
| <code>void SetActivated(bool ) </code>
| <code>void OnChannelFinish(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ShouldUseResources | ShouldUseResources]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]]
| <code>bool ShouldUseResources() </code>
| <code>void OnChannelThink(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedPrimaryAbilities | GetAssociatedPrimaryAbilities]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroCalculateStatBonus | OnHeroCalculateStatBonus]]
| <code>string GetAssociatedPrimaryAbilities() </code>
| <code>void OnHeroCalculateStatBonus() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnoughForUpgrade | IsOwnersGoldEnoughForUpgrade]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroLevelUp | OnHeroLevelUp]]
| <code>bool IsOwnersGoldEnoughForUpgrade() </code>
| <code>void OnHeroLevelUp() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnInventoryContentsChanged | OnInventoryContentsChanged]]
| <code>int GetManaCost(int ) </code>
| <code>void OnInventoryContentsChanged() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValueBonus | GetModifierValueBonus]]
| <code>float GetModifierValueBonus() </code>
| No Description Set
| No Description Set
|-
|-
Line 1,316: Line 1,321:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsFullyCastable | IsFullyCastable]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerSpawned | OnOwnerSpawned]]
| <code>bool IsFullyCastable() </code>
| <code>void OnOwnerSpawned() </code>
| Returns whether the ability can be cast.
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnSpellStart | OnSpellStart]]
| <code>void OnSpellStart() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnToggle | OnToggle]]
| <code>void OnToggle() </code>
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetMaxLevel | GetMaxLevel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnUpgrade | OnUpgrade]]
| <code>int GetMaxLevel() </code>
| <code>void OnUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
Line 1,328: Line 1,341:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerSpawned | OnOwnerSpawned]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCostForUpgrade | PayGoldCostForUpgrade]]
| <code>void OnOwnerSpawned() </code>
| <code>void PayGoldCostForUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnInventoryContentsChanged | OnInventoryContentsChanged]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayManaCost | PayManaCost]]
| <code>void OnInventoryContentsChanged() </code>
| <code>void PayManaCost() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetConceptRecipientType | GetConceptRecipientType]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PlaysDefaultAnimWhenStolen | PlaysDefaultAnimWhenStolen]]
| <code>int GetConceptRecipientType() </code>
| <code>bool PlaysDefaultAnimWhenStolen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBehavior | GetBehavior]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ProcsMagicStick | ProcsMagicStick]]
| <code>int GetBehavior() </code>
| <code>bool ProcsMagicStick() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCloneSource | GetCloneSource]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefCountsModifiers | RefCountsModifiers]]
| <code>handle GetCloneSource() </code>
| <code>bool RefCountsModifiers() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSharedCooldownName | GetSharedCooldownName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefundManaCost | RefundManaCost]]
| <code>string GetSharedCooldownName() </code>
| <code>void RefundManaCost() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ContinueCasting | ContinueCasting]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ResetToggleOnRespawn | ResetToggleOnRespawn]]
| <code>bool ContinueCasting() </code>
| <code>bool ResetToggleOnRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamage | GetAbilityDamage]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]]
| <code>int GetAbilityDamage() </code>
| <code>void SetAbilityIndex(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]]
| <code>void SetActivated(bool ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]]
| <code>void SetChanneling(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStolen | IsStolen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]]
| <code>bool IsStolen() </code>
| <code>void SetHidden(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersManaEnough | IsOwnersManaEnough]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]]
| <code>bool IsOwnersManaEnough() </code>
| <code>void SetInAbilityPhase(bool ) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,372: Line 1,393:
| Sets the level of this ability.
| Sets the level of this ability.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityIndex | GetAbilityIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint | SetOverrideCastPoint]]
| <code>int GetAbilityIndex() </code>
| <code>void SetOverrideCastPoint(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.NumModifiersUsingAbility | NumModifiersUsingAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]]
| <code>int NumModifiersUsingAbility() </code>
| <code>void SetRefCountsModifiers(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCosmetic | IsCosmetic]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]]
| <code>bool IsCosmetic() </code>
| <code>void SetStolen(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsItem | IsItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ShouldUseResources | ShouldUseResources]]
| <code>bool IsItem() </code>
| <code>bool ShouldUseResources() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndCooldown | EndCooldown]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]]
| <code>void EndCooldown() </code>
| <code>void SpeakAbilityConcept(int ) </code>
| Clear the cooldown remaining on this ability.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetHeroLevelRequiredToUpgrade | GetHeroLevelRequiredToUpgrade]]
| <code>int GetHeroLevelRequiredToUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPinged | OnAbilityPinged]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakTrigger | SpeakTrigger]]
| <code>void OnAbilityPinged() </code>
| <code>bool SpeakTrigger() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]]
| <code>void SetStolen(bool ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAutoCastState | GetAutoCastState]]
| <code>bool GetAutoCastState() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelTime | GetChannelTime]]
| <code>float GetChannelTime() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCaster | GetCaster]]
| <code>handle GetCaster() </code>
| No Description Set
| No Description Set
|-
|-
Line 1,420: Line 1,421:
| param: flCooldown
| param: flCooldown
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefundManaCost | RefundManaCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAbility | ToggleAbility]]
| <code>void RefundManaCost() </code>
| <code>void ToggleAbility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IncrementModifierRefCount | IncrementModifierRefCount]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAutoCast | ToggleAutoCast]]
| <code>void IncrementModifierRefCount() </code>
| <code>void ToggleAutoCast() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsTrained | IsTrained]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UpgradeAbility | UpgradeAbility]]
| <code>bool IsTrained() </code>
| <code>void UpgradeAbility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTarget | GetCursorTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]]
| <code>handle GetCursorTarget() </code>
| <code>void UseResources(bool , bool , bool ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnToggle | OnToggle]]
| <code>void OnToggle() </code>
| No Description Set
| No Description Set
|}
|}
Line 1,519: Line 1,516:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaseTime | GetPurchaseTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetContainer | GetContainer]]
| <code>float GetPurchaseTime() </code>
| <code>handle GetContainer() </code>
| Get the purchase time of this item
| Get the container for this item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetInitialCharges | GetInitialCharges]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCost | GetCost]]
| <code>int GetInitialCharges() </code>
| <code>int GetCost() </code>
| Get the initial number of charges this item has.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetContainer | GetContainer]]
| <code>handle GetContainer() </code>
| Get the container for this item.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaseTime | SetPurchaseTime]]
| <code>void SetPurchaseTime(float ) </code>
| Set the purchase time of this item
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.Think | Think]]
| <code>void Think() </code>
| Think this item
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot | LaunchLoot]]
| <code>void LaunchLoot(bool , float , float , Vector ) </code>
| No Description Set
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaser | SetPurchaser]]
| <code>void SetPurchaser(handle ) </code>
| Set the purchaser of record for this item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCurrentCharges | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetInitialCharges | GetInitialCharges]]
| <code>int GetInitialCharges() </code>
| Get the initial number of charges this item has.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaser | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaseTime | GetPurchaseTime]]
| <code>float GetPurchaseTime() </code>
| Get the purchase time of this item
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetShareability | GetShareability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetShareability | GetShareability]]
Line 1,559: Line 1,544:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCost | GetCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.IsPermanent | IsPermanent]]
| <code>int GetCost() </code>
| <code>bool IsPermanent() </code>
| Is this a permanent item?
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot | LaunchLoot]]
| <code>void LaunchLoot(bool , float , float , Vector ) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,567: Line 1,556:
| Set the number of charges on this item
| Set the number of charges on this item
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.IsPermanent | IsPermanent]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaser | SetPurchaser]]
| <code>bool IsPermanent() </code>
| <code>void SetPurchaser(handle ) </code>
| Is this a permanent item?
| Set the purchaser of record for this item.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaseTime | SetPurchaseTime]]
| <code>void SetPurchaseTime(float ) </code>
| Set the purchase time of this item
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetStacksWithOtherOwners | SetStacksWithOtherOwners]]
| <code>void SetStacksWithOtherOwners(bool ) </code>
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.StacksWithOtherOwners | StacksWithOtherOwners]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.StacksWithOtherOwners | StacksWithOtherOwners]]
Line 1,575: Line 1,572:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetStacksWithOtherOwners | SetStacksWithOtherOwners]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.Think | Think]]
| <code>void SetStacksWithOtherOwners(bool ) </code>
| <code>void Think() </code>
| No Description Set
| Think this item
|}
|}


Line 1,587: Line 1,584:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetContainedItem | GetContainedItem]]
| <code>handle GetContainedItem() </code>
| Returned the contained item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetCreationTime | GetCreationTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetCreationTime | GetCreationTime]]
Line 1,595: Line 1,596:
| <code>void SetContainedItem(handle ) </code>
| <code>void SetContainedItem(handle ) </code>
| Set the contained item.
| Set the contained item.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetContainedItem | GetContainedItem]]
| <code>handle GetContainedItem() </code>
| Returned the contained item.
|}
|}


Line 1,621: Line 1,618:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetHorn | GetHorn]]
| <code>handle GetHorn() </code>
| Is the Nian horn?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetTail | 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?
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsTailAlive | IsTailAlive]]
| <code>bool IsTailAlive() </code>
| Is the Nian's tail broken?
| Is the Nian's tail broken?
|-
|-
Line 1,634: Line 1,631:
| Is the Nian's horn broken?
| Is the Nian's horn broken?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetHorn | GetHorn]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsTailAlive | IsTailAlive]]
| <code>handle GetHorn() </code>
| <code>bool IsTailAlive() </code>
| Is the Nian horn?
| Is the Nian's tail broken?
|}
|}


Line 1,659: Line 1,656:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetAssignedHero | GetAssignedHero]]
| <code>handle GetAssignedHero() </code>
| Get the player's hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetControlledRPGUnit | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetAssignedHero | GetAssignedHero]]
| <code>handle GetAssignedHero() </code>
| Get the player's hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetPlayerID | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.MakeRandomHeroSelection | MakeRandomHeroSelection]]
| <code>void MakeRandomHeroSelection() </code>
| Randoms this player's hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit | SetKillCamUnit]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit | SetKillCamUnit]]
Line 1,677: Line 1,678:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetMusicStatus | SetMusicStatus]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetMusicStatus | SetMusicStatus]]
| <code>void SetMusicStatus(int , float ) </code>
| <code>void SetMusicStatus(int nMusicStatus, float flIntensity) </code>
| (nMusicStatus, flIntensity) - Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.
| Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.MakeRandomHeroSelection | MakeRandomHeroSelection]]
| <code>void MakeRandomHeroSelection() </code>
| Randoms this player's hero.
|}
|}


Line 1,695: Line 1,692:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies | GetDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup | AddAegisPickup]]
| <code>int GetDenies(int ) </code>
| <code>void AddAegisPickup(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnConsumables | GetGoldSpentOnConsumables]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddClaimedFarm | AddClaimedFarm]]
| <code>int GetGoldSpentOnConsumables(int ) </code>
| <code>void AddClaimedFarm(int , float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerReservedState | GetPlayerReservedState]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddGoldSpentOnSupport | AddGoldSpentOnSupport]]
| <code>bool GetPlayerReservedState(int ) </code>
| <code>void AddGoldSpentOnSupport(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPremiumPointsGranted | GetEventPremiumPointsGranted]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddRunePickup | AddRunePickup]]
| <code>int GetEventPremiumPointsGranted(int ) </code>
| <code>void AddRunePickup(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayerID | IsValidPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AreUnitsSharedWithPlayerID | AreUnitsSharedWithPlayerID]]
| <code>bool IsValidPlayerID(int playerID) </code>
| <code>bool AreUnitsSharedWithPlayerID(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeam | GetTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearKillsMatrix | ClearKillsMatrix]]
| <code>int GetTeam(int ) </code>
| <code>void ClearKillsMatrix(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthPlayerIDOnTeam | GetNthPlayerIDOnTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitMultikill | ClearLastHitMultikill]]
| <code>int GetNthPlayerIDOnTeam(int , int ) </code>
| <code>void ClearLastHitMultikill(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCost | GetCustomBuybackCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak | ClearLastHitStreak]]
| <code>int GetCustomBuybackCost(int ) </code>
| <code>void ClearLastHitStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayer | IsValidTeamPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearRawPlayerDamageMatrix | ClearRawPlayerDamageMatrix]]
| <code>bool IsValidTeamPlayer(int playerID) </code>
| <code>void ClearRawPlayerDamageMatrix(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerName | GetPlayerName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak | ClearStreak]]
| <code>string GetPlayerName(int ) </code>
| <code>void ClearStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPointsForPlayerID | GetEventPointsForPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAegisPickups | GetAegisPickups]]
| <code>int GetEventPointsForPlayerID(int ) </code>
| <code>int GetAegisPickups(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCooldown | SetCustomBuybackCooldown]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAssists | GetAssists]]
| <code>void SetCustomBuybackCooldown(int , float ) </code>
| <code>int GetAssists(int ) </code>
| Set the buyback cooldown for this player.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken | GetTowerDamageTaken]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannel | GetBroadcasterChannel]]
| <code>int GetTowerDamageTaken(int ) </code>
| <code><> GetBroadcasterChannel(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAegisPickups | GetAegisPickups]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannelSlot | GetBroadcasterChannelSlot]]
| <code>int GetAegisPickups(int ) </code>
| <code><> GetBroadcasterChannelSlot(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRandomed | SetHasRandomed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies | GetClaimedDenies]]
| <code>void SetHasRandomed(int playerID) </code>
| <code>int GetClaimedDenies(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCameraTarget | SetCameraTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedFarm | GetClaimedFarm]]
| <code>void SetCameraTarget(int , handle ) </code>
| <code>float GetClaimedFarm(int ) </code>
| (playerID, entity) - force the given player's camera to follow the given entity
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| <code>void IncrementLastHitMultikill(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventRankGranted | GetEventRankGranted]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedMisses | GetClaimedMisses]]
| <code>int GetEventRankGranted(int ) </code>
| <code>int GetClaimedMisses(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsDisableHelpSetForPlayerID | IsDisableHelpSetForPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetConnectionState | GetConnectionState]]
| <code>bool IsDisableHelpSetForPlayerID(int , int ) </code>
| <code><> GetConnectionState(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRoshanKills | GetRoshanKills]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCreepDamageTaken | GetCreepDamageTaken]]
| <code>int GetRoshanKills(int ) </code>
| <code>int GetCreepDamageTaken(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses | GetMisses]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCooldown | GetCustomBuybackCooldown]]
| <code>int GetMisses(int ) </code>
| <code>float GetCustomBuybackCooldown(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCost | SetCustomBuybackCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCost | GetCustomBuybackCost]]
| <code>void SetCustomBuybackCost(int , int ) </code>
| <code>int GetCustomBuybackCost(int ) </code>
| Set the buyback cost for this player.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ReplaceHeroWith | ReplaceHeroWith]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDamageDoneToHero | GetDamageDoneToHero]]
| <code>handle ReplaceHeroWith(int , string , int , int ) </code>
| <code>int GetDamageDoneToHero(int , int ) </code>
| (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies | GetClaimedDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDeaths | GetDeaths]]
| <code>int GetClaimedDenies(int ) </code>
| <code>int GetDeaths(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementTotalEarnedXP | IncrementTotalEarnedXP]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies | GetDenies]]
| <code>void IncrementTotalEarnedXP(int , int ) </code>
| <code>int GetDenies(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHits | GetLastHits]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPointsForPlayerID | GetEventPointsForPlayerID]]
| <code>int GetLastHits(int ) </code>
| <code>int GetEventPointsForPlayerID(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayer | IsValidPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPremiumPointsGranted | GetEventPremiumPointsGranted]]
| <code>bool IsValidPlayer(int playerID) </code>
| <code>int GetEventPremiumPointsGranted(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventRankGranted | GetEventRankGranted]]
| <code>void SetBuybackGoldLimitTime(int , float ) </code>
| <code>int GetEventRankGranted(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGold | GetGold]]
| <code>void SetBuybackCooldownTime(int , float ) </code>
| <code>int GetGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitMultikill | ClearLastHitMultikill]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldBagsCollected | GetGoldBagsCollected]]
| <code>void ClearLastHitMultikill(int ) </code>
| <code>int GetGoldBagsCollected(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold | ModifyGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath | GetGoldLostToDeath]]
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int ) </code>
| <code>int GetGoldLostToDeath(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthCourierForTeam | GetNthCourierForTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldPerMin | GetGoldPerMin]]
| <code>handle GetNthCourierForTeam(int , int ) </code>
| <code>float GetGoldPerMin(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnSupport | GetGoldSpentOnSupport]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnBuybacks | GetGoldSpentOnBuybacks]]
| <code>int GetGoldSpentOnSupport(int ) </code>
| <code>int GetGoldSpentOnBuybacks(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumCouriersForTeam | GetNumCouriersForTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnConsumables | GetGoldSpentOnConsumables]]
| <code>int GetNumCouriersForTeam(int ) </code>
| <code>int GetGoldSpentOnConsumables(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddRunePickup | AddRunePickup]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnItems | GetGoldSpentOnItems]]
| <code>void AddRunePickup(int ) </code>
| <code>int GetGoldSpentOnItems(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AreUnitsSharedWithPlayerID | AreUnitsSharedWithPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnSupport | GetGoldSpentOnSupport]]
| <code>bool AreUnitsSharedWithPlayerID(int , int ) </code>
| <code>int GetGoldSpentOnSupport(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetUnitShareMaskForPlayer | SetUnitShareMaskForPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHealing | GetHealing]]
| <code>void SetUnitShareMaskForPlayer(int , int , int , bool ) </code>
| <code>float GetHealing(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSharedWithPlayerID | IsHeroSharedWithPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHeroDamageTaken | GetHeroDamageTaken]]
| <code>bool IsHeroSharedWithPlayerID(int , int ) </code>
| <code>int GetHeroDamageTaken(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnitShareMaskForPlayer | GetUnitShareMaskForPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills | GetKills]]
| <code>int GetUnitShareMaskForPlayer(int , int ) </code>
| <code>int GetKills(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSteamAccountID | GetSteamAccountID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero | GetKillsDoneToHero]]
| <code><> GetSteamAccountID(int ) </code>
| <code>int GetKillsDoneToHero(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCreepDamageTaken | GetCreepDamageTaken]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitMultikill | GetLastHitMultikill]]
| <code>int GetCreepDamageTaken(int ) </code>
| <code>int GetLastHitMultikill(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime | SetLastBuybackTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHits | GetLastHits]]
| <code>void SetLastBuybackTime(int , int ) </code>
| <code>int GetLastHits(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastConsumablePurchase | GetTimeOfLastConsumablePurchase]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitStreak | GetLastHitStreak]]
| <code>float GetTimeOfLastConsumablePurchase(int ) </code>
| <code>int GetLastHitStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastItemPurchase | GetTimeOfLastItemPurchase]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLevel | GetLevel]]
| <code>float GetTimeOfLastItemPurchase(int ) </code>
| <code>int GetLevel(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGold | GetGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses | GetMisses]]
| <code>int GetGold(int ) </code>
| <code>int GetMisses(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp | HeroLevelUp]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNearbyCreepDeaths | GetNearbyCreepDeaths]]
| <code>void HeroLevelUp(int ) </code>
| <code>int GetNearbyCreepDeaths(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetConnectionState | GetConnectionState]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthCourierForTeam | GetNthCourierForTeam]]
| <code><> GetConnectionState(int ) </code>
| <code>handle GetNthCourierForTeam(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCooldown | GetCustomBuybackCooldown]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthPlayerIDOnTeam | GetNthPlayerIDOnTeam]]
| <code>float GetCustomBuybackCooldown(int ) </code>
| <code>int GetNthPlayerIDOnTeam(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetPlayerReservedState | SetPlayerReservedState]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumConsumablesPurchased | GetNumConsumablesPurchased]]
| <code>void SetPlayerReservedState(int , bool ) </code>
| <code>int GetNumConsumablesPurchased(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRawPlayerDamage | GetRawPlayerDamage]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumCouriersForTeam | GetNumCouriersForTeam]]
| <code>int GetRawPlayerDamage(int ) </code>
| <code>int GetNumCouriersForTeam(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementStreak | IncrementStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumItemsPurchased | GetNumItemsPurchased]]
| <code>void IncrementStreak(int ) </code>
| <code>int GetNumItemsPurchased(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedMisses | IncrementClaimedMisses]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayer | GetPlayer]]
| <code>void IncrementClaimedMisses(int ) </code>
| <code>handle GetPlayer(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedXP | GetTotalEarnedXP]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely | GetPlayerLoadedCompletely]]
| <code>int GetTotalEarnedXP(int ) </code>
| <code>bool GetPlayerLoadedCompletely(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerName | GetPlayerName]]
| <code>string GetPlayerName(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerReservedState | GetPlayerReservedState]]
| <code>bool GetPlayerReservedState(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnItems | GetGoldSpentOnItems]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRawPlayerDamage | GetRawPlayerDamage]]
| <code>int GetGoldSpentOnItems(int ) </code>
| <code>int GetRawPlayerDamage(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroName | GetSelectedHeroName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetReliableGold | GetReliableGold]]
| <code>string GetSelectedHeroName(int ) </code>
| <code>int GetReliableGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,919: Line 1,920:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely | GetPlayerLoadedCompletely]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRoshanKills | GetRoshanKills]]
| <code>bool GetPlayerLoadedCompletely(int ) </code>
| <code>int GetRoshanKills(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HaveAllPlayersJoined | HaveAllPlayersJoined]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRunePickups | GetRunePickups]]
| <code>bool HaveAllPlayersJoined() </code>
| <code>int GetRunePickups(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsFakeClient | IsFakeClient]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroEntity | GetSelectedHeroEntity]]
| <code>bool IsFakeClient(int ) </code>
| <code>handle GetSelectedHeroEntity(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDamageDoneToHero | GetDamageDoneToHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroID | GetSelectedHeroID]]
| <code>int GetDamageDoneToHero(int , int ) </code>
| <code>int GetSelectedHeroID(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSelected | IsHeroSelected]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroName | GetSelectedHeroName]]
| <code>bool IsHeroSelected(string ) </code>
| <code>string GetSelectedHeroName(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannelSlot | GetBroadcasterChannelSlot]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSteamAccountID | GetSteamAccountID]]
| <code><> GetBroadcasterChannelSlot(int ) </code>
| <code><> GetSteamAccountID(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannel | GetBroadcasterChannel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStreak | GetStreak]]
| <code><> GetBroadcasterChannel(int ) </code>
| <code>int GetStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLevel | GetLevel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStuns | GetStuns]]
| <code>int GetLevel(int playerID) </code>
| <code>float GetStuns(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRandomed | HasRandomed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeam | GetTeam]]
| <code>bool HasRandomed(int ) </code>
| <code>int GetTeam(int ) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,959: Line 1,960:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsBroadcaster | IsBroadcaster]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastConsumablePurchase | GetTimeOfLastConsumablePurchase]]
| <code>bool IsBroadcaster(int ) </code>
| <code>float GetTimeOfLastConsumablePurchase(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayerID | IsValidTeamPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath | GetTimeOfLastDeath]]
| <code>bool IsValidTeamPlayerID(int playerID) </code>
| <code>float GetTimeOfLastDeath(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SpendGold | SpendGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastItemPurchase | GetTimeOfLastItemPurchase]]
| <code>void SpendGold(int , int , int ) </code>
| <code>float GetTimeOfLastItemPurchase(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHealing | GetHealing]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold | GetTotalEarnedGold]]
| <code>float GetHealing(int ) </code>
| <code>int GetTotalEarnedGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHits | IncrementLastHits]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedXP | GetTotalEarnedXP]]
| <code>void IncrementLastHits(int ) </code>
| <code>int GetTotalEarnedXP(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses | IncrementMisses]]
| <code>void IncrementMisses(int ) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,987: Line 1,984:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies | IncrementClaimedDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken | GetTowerDamageTaken]]
| <code>void IncrementClaimedDenies(int ) </code>
| <code>int GetTowerDamageTaken(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayer | GetPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerKills | GetTowerKills]]
| <code>handle GetPlayer(int ) </code>
| <code>int GetTowerKills(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies | IncrementDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnitShareMaskForPlayer | GetUnitShareMaskForPlayer]]
| <code>void IncrementDenies(int ) </code>
| <code>int GetUnitShareMaskForPlayer(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetGold | SetGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnreliableGold | GetUnreliableGold]]
| <code>void SetGold(int , int , bool ) </code>
| <code>int GetUnreliableGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,007: Line 2,004:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath | GetTimeOfLastDeath]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRandomed | HasRandomed]]
| <code>float GetTimeOfLastDeath(int ) </code>
| <code>bool HasRandomed(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldBagsCollected | GetGoldBagsCollected]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRepicked | HasRepicked]]
| <code>int GetGoldBagsCollected(int ) </code>
| <code>bool HasRepicked(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnreliableGold | GetUnreliableGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero | HasSelectedHero]]
| <code>int GetUnreliableGold(int ) </code>
| <code>bool HasSelectedHero(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAssists | GetAssists]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HaveAllPlayersJoined | HaveAllPlayersJoined]]
| <code>int GetAssists(int ) </code>
| <code>bool HaveAllPlayersJoined() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldPerMin | GetGoldPerMin]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp | HeroLevelUp]]
| <code>float GetGoldPerMin(int ) </code>
| <code>void HeroLevelUp(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDeaths | GetDeaths]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementAssists | IncrementAssists]]
| <code>int GetDeaths(int ) </code>
| <code>void IncrementAssists(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.WhoSelectedHero | WhoSelectedHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies | IncrementClaimedDenies]]
| <code>int WhoSelectedHero(string ) </code>
| <code>void IncrementClaimedDenies(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitMultikill | GetLastHitMultikill]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedMisses | IncrementClaimedMisses]]
| <code>int GetLastHitMultikill(int ) </code>
| <code>void IncrementClaimedMisses(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementKills | IncrementKills]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDeaths | IncrementDeaths]]
| <code>void IncrementKills(int playerID, int kills) </code>
| <code>void IncrementDeaths(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitStreak | GetLastHitStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies | IncrementDenies]]
| <code>int GetLastHitStreak(int ) </code>
| <code>void IncrementDenies(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementAssists | IncrementAssists]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementGoldBagsCollected | IncrementGoldBagsCollected]]
| <code>void IncrementAssists(int playerID) </code>
| <code>void IncrementGoldBagsCollected(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementKills | IncrementKills]]
| <code>void IncrementKills(int playerID, int kills) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| <code>void IncrementLastHitMultikill(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHits | IncrementLastHits]]
| <code>void IncrementLastHits(int ) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,055: Line 2,064:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak | ClearLastHitStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses | IncrementMisses]]
| <code>void ClearLastHitStreak(int ) </code>
| <code>void IncrementMisses(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills | GetKills]]
| <code>int GetKills(int ) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,067: Line 2,072:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold | GetTotalEarnedGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementStreak | IncrementStreak]]
| <code>int GetTotalEarnedGold(int ) </code>
| <code>void IncrementStreak(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementGoldBagsCollected | IncrementGoldBagsCollected]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementTotalEarnedXP | IncrementTotalEarnedXP]]
| <code>void IncrementGoldBagsCollected(int ) </code>
| <code>void IncrementTotalEarnedXP(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetBuybackCostTime | ResetBuybackCostTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsBroadcaster | IsBroadcaster]]
| <code>void ResetBuybackCostTime(int ) </code>
| <code>bool IsBroadcaster(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.UpdateTeamSlot | UpdateTeamSlot]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsDisableHelpSetForPlayerID | IsDisableHelpSetForPlayerID]]
| <code>void UpdateTeamSlot(int , int ) </code>
| <code>bool IsDisableHelpSetForPlayerID(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnBuybacks | GetGoldSpentOnBuybacks]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsFakeClient | IsFakeClient]]
| <code>int GetGoldSpentOnBuybacks(int ) </code>
| <code>bool IsFakeClient(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStuns | GetStuns]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSelected | IsHeroSelected]]
| <code>float GetStuns(int ) </code>
| <code>bool IsHeroSelected(string ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroEntity | GetSelectedHeroEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSharedWithPlayerID | IsHeroSharedWithPlayerID]]
| <code>handle GetSelectedHeroEntity(int ) </code>
| <code>bool IsHeroSharedWithPlayerID(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedMisses | GetClaimedMisses]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayer | IsValidPlayer]]
| <code>int GetClaimedMisses(int ) </code>
| <code>bool IsValidPlayer(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero | HasSelectedHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayerID | IsValidPlayerID]]
| <code>bool HasSelectedHero(int ) </code>
| <code>bool IsValidPlayerID(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNearbyCreepDeaths | GetNearbyCreepDeaths]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayer | IsValidTeamPlayer]]
| <code>int GetNearbyCreepDeaths(int ) </code>
| <code>bool IsValidTeamPlayer(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumConsumablesPurchased | GetNumConsumablesPurchased]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayerID | IsValidTeamPlayerID]]
| <code>int GetNumConsumablesPurchased(int ) </code>
| <code>bool IsValidTeamPlayerID(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearRawPlayerDamageMatrix | ClearRawPlayerDamageMatrix]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold | ModifyGold]]
| <code>void ClearRawPlayerDamageMatrix(int ) </code>
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStreak | GetStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ReplaceHeroWith | ReplaceHeroWith]]
| <code>int GetStreak(int ) </code>
| <code>handle ReplaceHeroWith(int , string , int , int ) </code>
| No Description Set
| (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero | GetKillsDoneToHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetBuybackCostTime | ResetBuybackCostTime]]
| <code>int GetKillsDoneToHero(int , int ) </code>
| <code>void ResetBuybackCostTime(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerKills | GetTowerKills]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetTotalEarnedGold | ResetTotalEarnedGold]]
| <code>int GetTowerKills(int ) </code>
| <code>void ResetTotalEarnedGold(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup | AddAegisPickup]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| <code>void AddAegisPickup(int ) </code>
| <code>void SetBuybackCooldownTime(int , float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddClaimedFarm | AddClaimedFarm]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| <code>void AddClaimedFarm(int , float ) </code>
| <code>void SetBuybackGoldLimitTime(int , float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetTotalEarnedGold | ResetTotalEarnedGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCameraTarget | SetCameraTarget]]
| <code>void ResetTotalEarnedGold(int ) </code>
| <code>void SetCameraTarget(int , handle ) </code>
| (playerID, entity) - force the given player's camera to follow the given entity
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCooldown | SetCustomBuybackCooldown]]
| <code>void SetCustomBuybackCooldown(int , float ) </code>
| Set the buyback cooldown for this player.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCost | SetCustomBuybackCost]]
| <code>void SetCustomBuybackCost(int , int ) </code>
| Set the buyback cost for this player.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetGold | SetGold]]
| <code>void SetGold(int , int , bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHeroDamageTaken | GetHeroDamageTaken]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRandomed | SetHasRandomed]]
| <code>int GetHeroDamageTaken(int ) </code>
| <code>void SetHasRandomed(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDeaths | IncrementDeaths]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRepicked | SetHasRepicked]]
| <code>void IncrementDeaths(int playerID) </code>
| <code>void SetHasRepicked(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddGoldSpentOnSupport | AddGoldSpentOnSupport]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime | SetLastBuybackTime]]
| <code>void AddGoldSpentOnSupport(int , int ) </code>
| <code>void SetLastBuybackTime(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroID | GetSelectedHeroID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetPlayerReservedState | SetPlayerReservedState]]
| <code>int GetSelectedHeroID(int ) </code>
| <code>void SetPlayerReservedState(int , bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRunePickups | GetRunePickups]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetUnitShareMaskForPlayer | SetUnitShareMaskForPlayer]]
| <code>int GetRunePickups(int ) </code>
| <code>void SetUnitShareMaskForPlayer(int , int , int , bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumItemsPurchased | GetNumItemsPurchased]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SpendGold | SpendGold]]
| <code>int GetNumItemsPurchased(int ) </code>
| <code>void SpendGold(int , int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedFarm | GetClaimedFarm]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.UpdateTeamSlot | UpdateTeamSlot]]
| <code>float GetClaimedFarm(int ) </code>
| <code>void UpdateTeamSlot(int , int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetReliableGold | GetReliableGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.WhoSelectedHero | WhoSelectedHero]]
| <code>int GetReliableGold(int ) </code>
| <code>int WhoSelectedHero(string ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRepicked | HasRepicked]]
| <code>bool HasRepicked(int playerID) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRepicked | SetHasRepicked]]
| <code>void SetHasRepicked(int playerID) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak | ClearStreak]]
| <code>void ClearStreak(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath | GetGoldLostToDeath]]
| <code>int GetGoldLostToDeath(int ) </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearKillsMatrix | ClearKillsMatrix]]
| <code>void ClearKillsMatrix(int ) </code>
| No Description Set
| No Description Set
|}
|}
Line 2,200: Line 2,197:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ForceKill | ForceKill]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility | AddAbility]]
| <code>void ForceKill(bool ) </code>
| <code>void AddAbility(string ) </code>
| Kill this unit immediately.
| Add an ability to this unit by name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityCount | GetAbilityCount]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddItem | AddItem]]
| <code>int GetAbilityCount() </code>
| <code>void AddItem(handle ) </code>
| No Description Set
| Add an item to this unit's inventory.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAdditionalBattleMusicWeight | GetAdditionalBattleMusicWeight]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNewModifier | AddNewModifier]]
| <code>float GetAdditionalBattleMusicWeight() </code>
| <code>void AddNewModifier(handle , handle , string , handle ) </code>
| Combat involving this creature will have this weight added to the music calcuations
| Add a modifier to this unit
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwnerID | GetPlayerOwnerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw | AddNoDraw]]
| <code>int GetPlayerOwnerID() </code>
| <code>void AddNoDraw() </code>
| Get the owner player ID for this unit.
| Adds the no draw flag.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.EjectItemFromStash | EjectItemFromStash]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits | AlertNearbyUnits]]
| <code>void EjectItemFromStash(handle ) </code>
| <code>void AlertNearbyUnits(handle , handle ) </code>
| Drops the selected item out of this unit's stash.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDayTimeVisionRange | GetBaseDayTimeVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AngerNearbyUnits | AngerNearbyUnits]]
| <code>int GetBaseDayTimeVisionRange() </code>
| <code>void AngerNearbyUnits() </code>
| Returns the vision range before modifiers.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMuted | IsMuted]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan | AttackNoEarlierThan]]
| <code>bool IsMuted() </code>
| <code>void AttackNoEarlierThan(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity | IsAttackingEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackReady | AttackReady]]
| <code>bool IsAttackingEntity(handle ) </code>
| <code>bool AttackReady() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMechanical | IsMechanical]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.BoundingRadius2D | BoundingRadius2D]]
| <code>bool IsMechanical() </code>
| <code>float BoundingRadius2D() </code>
| Is the unit mechanical?
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRealHero | IsRealHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately | CastAbilityImmediately]]
| <code>bool IsRealHero() </code>
| <code>void CastAbilityImmediately(handle , int ) </code>
| Returns true if the hero is a true Hero, not a creep or an Illusion of a hero
| Cast an ability immediately.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDayTimeVisionRange | SetDayTimeVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityNoTarget | CastAbilityNoTarget]]
| <code>void SetDayTimeVisionRange(int ) </code>
| <code>void CastAbilityNoTarget(handle ability, int playerIndex) </code>
| Set the base vision range.
| Cast an ability with no target. ( hAbility, iPlayerIndex )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModelRadius | GetModelRadius]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition | CastAbilityOnPosition]]
| <code>float GetModelRadius() </code>
| <code>void CastAbilityOnPosition(Vector , handle , int ) </code>
| No Description Set
| Cast an ability on a position.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnTarget | CastAbilityOnTarget]]
| <code>void CastAbilityOnTarget(handle target, handle ability, int playerIndex) </code>
| Cast an ability on a target entity.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle | CastAbilityToggle]]
| <code>void CastAbilityToggle(handle , int ) </code>
| Toggle an ability. ( hAbility, iPlayerIndex )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAverageTrueAttackDamage | GetAverageTrueAttackDamage]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DisassembleItem | DisassembleItem]]
| <code>int GetAverageTrueAttackDamage() </code>
| <code>void DisassembleItem(handle ) </code>
| Returns the average value of the minimum and maximum damage values.
| Disassemble the passed item in this unit's inventory.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByName | RemoveModifierByName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPosition | DropItemAtPosition]]
| <code>void RemoveModifierByName(string ) </code>
| <code>void DropItemAtPosition(Vector , handle ) </code>
| Removes a modifier
| Drop an item at a given point.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPositionImmediate | DropItemAtPositionImmediate]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPositionImmediate | DropItemAtPositionImmediate]]
Line 2,260: Line 2,265:
| Immediately drop a carried item at a given position.
| Immediately drop a carried item at a given position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPaddedCollisionRadius | GetPaddedCollisionRadius]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.EjectItemFromStash | EjectItemFromStash]]
| <code>float GetPaddedCollisionRadius() </code>
| <code>void EjectItemFromStash(handle ) </code>
| Get the collision hull radius (including padding) of this NPC
| Drops the selected item out of this unit's stash.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackSpeed | GetAttackSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.FindAbilityByName | FindAbilityByName]]
| <code>float GetAttackSpeed() </code>
| <code>handle FindAbilityByName(string ) </code>
| No Description Set
| Retrieve an ability by name from the unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaRegen | GetManaRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ForceKill | ForceKill]]
| <code>float GetManaRegen() </code>
| <code>void ForceKill(bool ) </code>
| No Description Set
| Kill this unit immediately.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToTargetToAttack | MoveToTargetToAttack]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityByIndex | GetAbilityByIndex]]
| <code>void MoveToTargetToAttack(handle ) </code>
| <code>handle GetAbilityByIndex(int ) </code>
| Move to a target to attack.
| Retrieve an ability by index from the unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityCount | GetAbilityCount]]
| <code>int GetAbilityCount() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAcquisitionRange | GetAcquisitionRange]]
| <code>float GetAcquisitionRange() </code>
| Gets the range at which this unit will auto-acquire.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAdditionalBattleMusicWeight | GetAdditionalBattleMusicWeight]]
| <code>float GetAdditionalBattleMusicWeight() </code>
| Combat involving this creature will have this weight added to the music calcuations
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDeniable | IsDeniable]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackAnimationPoint | GetAttackAnimationPoint]]
| <code>bool IsDeniable() </code>
| <code>float GetAttackAnimationPoint() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHullRadius | SetHullRadius]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackDamage | GetAttackDamage]]
| <code>void SetHullRadius(float ) </code>
| <code>int GetAttackDamage() </code>
| Set the collision hull radius of this NPC
| Returns a random integer between the minimum and maximum base damage of the unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRange | GetAttackRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRange | GetAttackRange]]
Line 2,288: Line 2,305:
| Gets this unit's attack range after all modifiers.
| Gets this unit's attack range after all modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMana | SetMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRangeBuffer | GetAttackRangeBuffer]]
| <code>void SetMana(float ) </code>
| <code>float GetAttackRangeBuffer() </code>
| Set the mana on this unit.
| Gets the attack range buffer.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetInitialGoalEntity | GetInitialGoalEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackSpeed | GetAttackSpeed]]
| <code>handle GetInitialGoalEntity() </code>
| <code>float GetAttackSpeed() </code>
| Returns the initial waypoint goal for this NPC
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitName | GetUnitName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttacksPerSecond | GetAttacksPerSecond]]
| <code>string GetUnitName() </code>
| <code>float GetAttacksPerSecond() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RespawnUnit | RespawnUnit]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackTarget | GetAttackTarget]]
| <code>void RespawnUnit() </code>
| <code>handle GetAttackTarget() </code>
| Respawns the target unit if it can be respawned.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit | GetRangeToUnit]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAverageTrueAttackDamage | GetAverageTrueAttackDamage]]
| <code>float GetRangeToUnit(handle ) </code>
| <code>int GetAverageTrueAttackDamage() </code>
| No Description Set
| Returns the average value of the minimum and maximum damage values.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately | CastAbilityImmediately]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackRange | GetBaseAttackRange]]
| <code>void CastAbilityImmediately(handle , int ) </code>
| <code>int GetBaseAttackRange() </code>
| Cast an ability immediately.
| Gets this unit's attack range before modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNightTimeVisionRange | SetNightTimeVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackTime | GetBaseAttackTime]]
| <code>void SetNightTimeVisionRange(int ) </code>
| <code>float GetBaseAttackTime() </code>
| Set the base vision range.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveAbility | RemoveAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMax | GetBaseDamageMax]]
| <code>void RemoveAbility(string ) </code>
| <code>int GetBaseDamageMax() </code>
| Remove an ability from this unit by name.
| Gets the minimum base damage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAncient | IsAncient]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMin | GetBaseDamageMin]]
| <code>bool IsAncient() </code>
| <code>int GetBaseDamageMin() </code>
| Is this creature an Ancient?
| Gets the minimum base damage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetStolenScepter | SetStolenScepter]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDayTimeVisionRange | GetBaseDayTimeVisionRange]]
| <code>void SetStolenScepter(bool ) </code>
| <code>int GetBaseDayTimeVisionRange() </code>
| No Description Set
| Returns the vision range before modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthRegen | GetHealthRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseHealthRegen | GetBaseHealthRegen]]
| <code>float GetHealthRegen() </code>
| <code>float GetBaseHealthRegen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackDamage | GetAttackDamage]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMagicalResistanceValue | GetBaseMagicalResistanceValue]]
| <code>int GetAttackDamage() </code>
| <code>float GetBaseMagicalResistanceValue() </code>
| Returns a random integer between the minimum and maximum base damage of the unit.
| Returns base magical armor value.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMaxHealth | GetBaseMaxHealth]]
| <code>float GetBaseMaxHealth() </code>
| Gets the base max health value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Stop | Stop]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMoveSpeed | GetBaseMoveSpeed]]
| <code>void Stop() </code>
| <code>float GetBaseMoveSpeed() </code>
| Stop the current order.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityByIndex | GetAbilityByIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseNightTimeVisionRange | GetBaseNightTimeVisionRange]]
| <code>handle GetAbilityByIndex(int ) </code>
| <code>int GetBaseNightTimeVisionRange() </code>
| Retrieve an ability by index from the unit.
| Returns the vision range before modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetInitialGoalEntity | SetInitialGoalEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint | GetCastPoint]]
| <code>void SetInitialGoalEntity(handle ) </code>
| <code>float GetCastPoint(bool ) </code>
| Sets the initial waypoint goal for this NPC
| Parameter: bAttack
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetOriginalModel | SetOriginalModel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCollisionPadding | GetCollisionPadding]]
| <code>void SetOriginalModel(string originalModel) </code>
| <code>float GetCollisionPadding() </code>
| Sets the original model of this entity, which it will tend to fall back to anytime its state changes
| Returns the size of the collision padding around the hull.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOutOfGame | IsOutOfGame]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetConstantBasedManaRegen | GetConstantBasedManaRegen]]
| <code>bool IsOutOfGame() </code>
| <code>float GetConstantBasedManaRegen() </code>
| No Description Set
| This Mana regen is derived from constant bonuses like Basilius.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCreationTime | GetCreationTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCreationTime | GetCreationTime]]
Line 2,360: Line 2,381:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveItem | RemoveItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentActiveAbility | GetCurrentActiveAbility]]
| <code>void RemoveItem(handle ) </code>
| <code>handle GetCurrentActiveAbility() </code>
| Removes the passed item from this unit's inventory.
| Get the ability this unit is currently casting.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetNightTimeVisionRange | GetNightTimeVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentVisionRange | GetCurrentVisionRange]]
| <code>int GetNightTimeVisionRange() </code>
| <code>int GetCurrentVisionRange() </code>
| Returns the vision range after modifiers.
| Gets the current vision range.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AngerNearbyUnits | AngerNearbyUnits]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorCastTarget | GetCursorCastTarget]]
| <code>void AngerNearbyUnits() </code>
| <code>handle GetCursorCastTarget() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptChannel | InterruptChannel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorPosition | GetCursorPosition]]
| <code>void InterruptChannel() </code>
| <code>Vector GetCursorPosition() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.UnitCanRespawn | UnitCanRespawn]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorTargetingNothing | GetCursorTargetingNothing]]
| <code>bool UnitCanRespawn() </code>
| <code>bool GetCursorTargetingNothing() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimapForEnemies | NotOnMinimapForEnemies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDayTimeVisionRange | GetDayTimeVisionRange]]
| <code>bool NotOnMinimapForEnemies() </code>
| <code>int GetDayTimeVisionRange() </code>
| No Description Set
| Returns the vision range after modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthPercent | GetHealthPercent]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDeathXP | GetDeathXP]]
| <code>int GetHealthPercent() </code>
| <code>int GetDeathXP() </code>
| Get the current health percent of the unit.
| Get the XP bounty on this unit
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantomBlocker | IsPhantomBlocker]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetForceAttackTarget | GetForceAttackTarget]]
| <code>bool IsPhantomBlocker() </code>
| <code>handle GetForceAttackTarget() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakePhantomBlocker | MakePhantomBlocker]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetGoldBounty | GetGoldBounty]]
| <code>void MakePhantomBlocker() </code>
| <code>int GetGoldBounty() </code>
| Get the gold bounty on this unit
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHasteFactor | GetHasteFactor]]
| <code>float GetHasteFactor() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.FindAbilityByName | FindAbilityByName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealth | GetHealth]]
| <code>handle FindAbilityByName(string ) </code>
| <code>int GetHealth() </code>
| Retrieve an ability by name from the unit.
| Get the health of this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAbility | HasAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthDeficit | GetHealthDeficit]]
| <code>bool HasAbility(string ) </code>
| <code>int GetHealthDeficit() </code>
| See whether this unit has an ability by name.
| Returns integer amount of health missing from max.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleDueToAttack | MakeVisibleDueToAttack]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthPercent | GetHealthPercent]]
| <code>void MakeVisibleDueToAttack(int ) </code>
| <code>int GetHealthPercent() </code>
| No Description Set
| Get the current health percent of the unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvulnerable | IsInvulnerable]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthRegen | GetHealthRegen]]
| <code>bool IsInvulnerable() </code>
| <code>float GetHealthRegen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRangeBuffer | GetAttackRangeBuffer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHullRadius | GetHullRadius]]
| <code>float GetAttackRangeBuffer() </code>
| <code>float GetHullRadius() </code>
| Gets the attack range buffer.
| Get the collision hull radius of this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMin | SetBaseDamageMin]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIdealSpeed | GetIdealSpeed]]
| <code>void SetBaseDamageMin(int ) </code>
| <code>float GetIdealSpeed() </code>
| Sets the minimum base damage.
| Returns speed after all modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsFrozen | IsFrozen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
| <code>bool IsFrozen() </code>
| <code>float GetIncreasedAttackSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseNightTimeVisionRange | GetBaseNightTimeVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetInitialGoalEntity | GetInitialGoalEntity]]
| <code>int GetBaseNightTimeVisionRange() </code>
| <code>handle GetInitialGoalEntity() </code>
| Returns the vision range before modifiers.
| Returns the initial waypoint goal for this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPosition | DropItemAtPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot | GetItemInSlot]]
| <code>void DropItemAtPosition(Vector , handle ) </code>
| <code>handle GetItemInSlot(int ) </code>
| Drop an item at a given point.
| Returns nth item in inventory slot (index is zero based)
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLastIdleChangeTime | GetLastIdleChangeTime]]
| <code>float GetLastIdleChangeTime() </code>
| Get the last game time that this unit switched to/from idle state.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLevel | GetLevel]]
| <code>int GetLevel() </code>
| Returns the level of this unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMagicalArmorValue | GetMagicalArmorValue]]
| <code>float GetMagicalArmorValue() </code>
| Returns current magical armor value.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMainControllingPlayer | GetMainControllingPlayer]]
| <code>int GetMainControllingPlayer() </code>
| Returns the player ID of the controlling player.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMana | GetMana]]
| <code>float GetMana() </code>
| Get the mana on this unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaPercent | GetManaPercent]]
| <code>int GetManaPercent() </code>
| Get the percent of mana remaining.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleToTeam | MakeVisibleToTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaRegen | GetManaRegen]]
| <code>void MakeVisibleToTeam(int , float ) </code>
| <code>float GetManaRegen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetOpposingTeamNumber | GetOpposingTeamNumber]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxHealth | GetMaxHealth]]
| <code>int GetOpposingTeamNumber() </code>
| <code>int GetMaxHealth() </code>
| Get the maximum health of this unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxMana | GetMaxMana]]
| <code>float GetMaxMana() </code>
| Get the maximum mana of this unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModelRadius | GetModelRadius]]
| <code>float GetModelRadius() </code>
| No Description Set
| No Description Set
|-
|-
Line 2,444: Line 2,501:
| How many modifiers does this unit have?
| How many modifiers does this unit have?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorPosition | SetCursorPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex | GetModifierNameByIndex]]
| <code>void SetCursorPosition(Vector ) </code>
| <code>string GetModifierNameByIndex(int ) </code>
| No Description Set
| Get a modifier name by index.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHullRadius | GetHullRadius]]
| <code>float GetHullRadius() </code>
| Get the collision hull radius of this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOpposingTeam | IsOpposingTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMoveSpeedModifier | GetMoveSpeedModifier]]
| <code>bool IsOpposingTeam(int ) </code>
| <code>float GetMoveSpeedModifier(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetIdleAcquire | SetIdleAcquire]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMustReachEachGoalEntity | GetMustReachEachGoalEntity]]
| <code>void SetIdleAcquire(bool ) </code>
| <code>bool GetMustReachEachGoalEntity() </code>
| No Description Set
| Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ShouldIdleAcquire | ShouldIdleAcquire]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetNightTimeVisionRange | GetNightTimeVisionRange]]
| <code>bool ShouldIdleAcquire() </code>
| <code>int GetNightTimeVisionRange() </code>
| No Description Set
| Returns the vision range after modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPositionInRange | IsPositionInRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetOpposingTeamNumber | GetOpposingTeamNumber]]
| <code>bool IsPositionInRange(Vector , float ) </code>
| <code>int GetOpposingTeamNumber() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers | InterruptMotionControllers]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPaddedCollisionRadius | GetPaddedCollisionRadius]]
| <code>void InterruptMotionControllers(bool ) </code>
| <code>float GetPaddedCollisionRadius() </code>
| Parameter boolean determines finding clear space.
| Get the collision hull radius (including padding) of this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetControllableByPlayer | SetControllableByPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPercentageBasedManaRegen | GetPercentageBasedManaRegen]]
| <code>void SetControllableByPlayer(int , bool ) </code>
| <code>float GetPercentageBasedManaRegen() </code>
| Set this unit controllable by the player with the passed ID.
| This Mana regen is derived from % bonuses (from items like Void Stone).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveNoDraw | RemoveNoDraw]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorBaseValue | GetPhysicalArmorBaseValue]]
| <code>void RemoveNoDraw() </code>
| <code>float GetPhysicalArmorBaseValue() </code>
| Remove the no draw flag.
| Returns base physical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ReduceMana | ReduceMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorValue | GetPhysicalArmorValue]]
| <code>void ReduceMana(float ) </code>
| <code>float GetPhysicalArmorValue() </code>
| Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
| Returns current physical armor value.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwner | GetPlayerOwner]]
| <code>handle GetPlayerOwner() </code>
| Returns the player that owns this unit
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseManaRegen | SetBaseManaRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwnerID | GetPlayerOwnerID]]
| <code>void SetBaseManaRegen(float ) </code>
| <code>int GetPlayerOwnerID() </code>
| No Description Set
| Get the owner player ID for this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Interrupt | Interrupt]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetProjectileSpeed | GetProjectileSpeed]]
| <code>void Interrupt() </code>
| <code>int GetProjectileSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorPosition | GetCursorPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit | GetRangeToUnit]]
| <code>Vector GetCursorPosition() </code>
| <code>float GetRangeToUnit(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackTime | GetBaseAttackTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetSecondsPerAttack | GetSecondsPerAttack]]
| <code>float GetBaseAttackTime() </code>
| <code>float GetSecondsPerAttack() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDayTimeVisionRange | GetDayTimeVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
| <code>int GetDayTimeVisionRange() </code>
| <code>float GetStatsBasedManaRegen() </code>
| Returns the vision range after modifiers.
| Returns mana regen rate per intelligence.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPC | MoveToNPC]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTeamNumber | GetTeamNumber]]
| <code>void MoveToNPC(handle ) </code>
| <code>int GetTeamNumber() </code>
| Move to follow a unit.
| Get the team number of this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnableToMiss | IsUnableToMiss]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTotalPurchasedUpgradeGoldCost | GetTotalPurchasedUpgradeGoldCost]]
| <code>bool IsUnableToMiss() </code>
| <code>int GetTotalPurchasedUpgradeGoldCost() </code>
| No Description Set
| Get how much gold has been spent on ability upgrades.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByNameAndCaster | RemoveModifierByNameAndCaster]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitLabel | GetUnitLabel]]
| <code>void RemoveModifierByNameAndCaster(string , handle ) </code>
| <code>string GetUnitLabel() </code>
| Removes a modifier that was cast by the given caster
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetForceAttackTarget | SetForceAttackTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitName | GetUnitName]]
| <code>void SetForceAttackTarget(handle ) </code>
| <code>string GetUnitName() </code>
| No Description Set
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana | GiveMana]]
| <code>void GiveMana(float ) </code>
| Give mana to this unit, this can be used for mana gained by abilities or item usage.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAbility | HasAbility]]
| <code>bool HasAbility(string ) </code>
| See whether this unit has an ability by name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAttackCapability | HasAttackCapability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAttackCapability | HasAttackCapability]]
Line 2,524: Line 2,589:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttacksPerSecond | GetAttacksPerSecond]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyingVision | HasFlyingVision]]
| <code>float GetAttacksPerSecond() </code>
| <code>bool HasFlyingVision() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMin | GetBaseDamageMin]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyMovementCapability | HasFlyMovementCapability]]
| <code>int GetBaseDamageMin() </code>
| <code>bool HasFlyMovementCapability() </code>
| Gets the minimum base damage.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetForceAttackTarget | GetForceAttackTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasGroundMovementCapability | HasGroundMovementCapability]]
| <code>handle GetForceAttackTarget() </code>
| <code>bool HasGroundMovementCapability() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits | AlertNearbyUnits]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasInventory | HasInventory]]
| <code>void AlertNearbyUnits(handle , handle ) </code>
| <code>bool HasInventory() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCreature | IsCreature]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory | HasItemInInventory]]
| <code>bool IsCreature() </code>
| <code>bool HasItemInInventory(string ) </code>
| Is this a Creature type NPC
| See whether this unit has an item by name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackTarget | GetAttackTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasModifier | HasModifier]]
| <code>handle GetAttackTarget() </code>
| <code>bool HasModifier(string ) </code>
| No Description Set
| Sees if this unit has a given modifier
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PerformAttack | PerformAttack]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasMovementCapability | HasMovementCapability]]
| <code>void PerformAttack(handle , bool , bool , bool , bool ) </code>
| <code>bool HasMovementCapability() </code>
| Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDeathXP | GetDeathXP]]
| <code>int GetDeathXP() </code>
| Get the XP bounty on this unit
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttacking | SetAttacking]]
| <code>void SetAttacking(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHasInventory | SetHasInventory]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasScepter | HasScepter]]
| <code>void SetHasInventory(bool ) </code>
| <code>bool HasScepter() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ModifyHealth | ModifyHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal | Heal]]
| <code>void ModifyHealth(int , handle , bool , int ) </code>
| <code>void Heal(float , handle ) </code>
| Sets the health to a specific value, with optional flags or inflictors.
| Heal this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMagicImmune | IsMagicImmune]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Hold | Hold]]
| <code>bool IsMagicImmune() </code>
| <code>void Hold() </code>
| No Description Set
| Hold position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackAnimationPoint | GetAttackAnimationPoint]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Interrupt | Interrupt]]
| <code>float GetAttackAnimationPoint() </code>
| <code>void Interrupt() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TimeUntilNextAttack | TimeUntilNextAttack]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptChannel | InterruptChannel]]
| <code>float TimeUntilNextAttack() </code>
| <code>void InterruptChannel() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan | AttackNoEarlierThan]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers | InterruptMotionControllers]]
| <code>void AttackNoEarlierThan(float ) </code>
| <code>void InterruptMotionControllers(bool ) </code>
| No Description Set
| Parameter boolean determines finding clear space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMagicalResistanceValue | SetBaseMagicalResistanceValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAlive | IsAlive]]
| <code>void SetBaseMagicalResistanceValue(float ) </code>
| <code>bool IsAlive() </code>
| Sets base magical armor value.
| Is this unit alive?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility | AddAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAncient | IsAncient]]
| <code>void AddAbility(string ) </code>
| <code>bool IsAncient() </code>
| Add an ability to this unit by name.
| Is this creature an Ancient?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory | HasItemInInventory]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackImmune | IsAttackImmune]]
| <code>bool HasItemInInventory(string ) </code>
| <code>bool IsAttackImmune() </code>
| See whether this unit has an item by name.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackReady | AttackReady]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttacking | IsAttacking]]
| <code>bool AttackReady() </code>
| <code>bool IsAttacking() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDeathXP | SetDeathXP]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity | IsAttackingEntity]]
| <code>void SetDeathXP(int ) </code>
| <code>bool IsAttackingEntity(handle ) </code>
| Set the XP bounty on this unit
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseHealthRegen | GetBaseHealthRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlind | IsBlind]]
| <code>float GetBaseHealthRegen() </code>
| <code>bool IsBlind() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTeamNumber | GetTeamNumber]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlockDisabled | IsBlockDisabled]]
| <code>int GetTeamNumber() </code>
| <code>bool IsBlockDisabled() </code>
| Get the team number of this unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
| <code>float GetStatsBasedManaRegen() </code>
| Returns mana regen rate per intelligence.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitLabel | GetUnitLabel]]
| <code>string GetUnitLabel() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHardDisarmed | IsHardDisarmed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCommandRestricted | IsCommandRestricted]]
| <code>bool IsHardDisarmed() </code>
| <code>bool IsCommandRestricted() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMoveSpeedModifier | GetMoveSpeedModifier]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsControllableByAnyPlayer | IsControllableByAnyPlayer]]
| <code>float GetMoveSpeedModifier(float ) </code>
| <code>bool IsControllableByAnyPlayer() </code>
| No Description Set
| Is this unit controlled by any non-bot player?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMana | GetMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCreature | IsCreature]]
| <code>float GetMana() </code>
| <code>bool IsCreature() </code>
| Get the mana on this unit.
| Is this a Creature type NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNewModifier | AddNewModifier]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDeniable | IsDeniable]]
| <code>void AddNewModifier(handle , handle , string , handle ) </code>
| <code>bool IsDeniable() </code>
| Add a modifier to this unit
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SwapAbilities | SwapAbilities]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDisarmed | IsDisarmed]]
| <code>void SwapAbilities(string , string , bool , bool ) </code>
| <code>bool IsDisarmed() </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.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetUnitName | SetUnitName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDominated | IsDominated]]
| <code>void SetUnitName(string ) </code>
| <code>bool IsDominated() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhased | IsPhased]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsEvadeDisabled | IsEvadeDisabled]]
| <code>bool IsPhased() </code>
| <code>bool IsEvadeDisabled() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetRangedProjectileName | SetRangedProjectileName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsFrozen | IsFrozen]]
| <code>void SetRangedProjectileName(string ) </code>
| <code>bool IsFrozen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SpendMana | SpendMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHardDisarmed | IsHardDisarmed]]
| <code>void SpendMana(float , handle ) </code>
| <code>bool IsHardDisarmed() </code>
| Spend mana from this unit, this can be used for spending mana from abilities or item usage.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetProjectileSpeed | GetProjectileSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHero | IsHero]]
| <code>int GetProjectileSpeed() </code>
| <code>bool IsHero() </code>
| Is this a hero or hero illusion?
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHexed | IsHexed]]
| <code>bool IsHexed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyingVision | HasFlyingVision]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIdle | IsIdle]]
| <code>bool HasFlyingVision() </code>
| <code>bool IsIdle() </code>
| Is this creature currently idle?
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIllusion | IsIllusion]]
| <code>bool IsIllusion() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasMovementCapability | HasMovementCapability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvisible | IsInvisible]]
| <code>bool HasMovementCapability() </code>
| <code>bool IsInvisible() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCommandRestricted | IsCommandRestricted]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvulnerable | IsInvulnerable]]
| <code>bool IsCommandRestricted() </code>
| <code>bool IsInvulnerable() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasGroundMovementCapability | HasGroundMovementCapability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsLowAttackPriority | IsLowAttackPriority]]
| <code>bool HasGroundMovementCapability() </code>
| <code>bool IsLowAttackPriority() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMoveCapability | SetMoveCapability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMagicImmune | IsMagicImmune]]
| <code>void SetMoveCapability(int ) </code>
| <code>bool IsMagicImmune() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SellItem | SellItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMechanical | IsMechanical]]
| <code>void SellItem(handle ) </code>
| <code>bool IsMechanical() </code>
| Sells the passed item in this unit's inventory.
| Is the unit mechanical?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSoftDisarmed | IsSoftDisarmed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMovementImpaired | IsMovementImpaired]]
| <code>bool IsSoftDisarmed() </code>
| <code>bool IsMovementImpaired() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMagicalArmorValue | GetMagicalArmorValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMuted | IsMuted]]
| <code>float GetMagicalArmorValue() </code>
| <code>bool IsMuted() </code>
| Returns current magical armor value.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMinimumGoldBounty | SetMinimumGoldBounty]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNeutralUnitType | IsNeutralUnitType]]
| <code>void SetMinimumGoldBounty(int ) </code>
| <code>bool IsNeutralUnitType() </code>
| Set the minimum gold bounty for this unit.
| Is this a neutral?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttackCapability | SetAttackCapability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNightmared | IsNightmared]]
| <code>void SetAttackCapability(int ) </code>
| <code>bool IsNightmared() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasScepter | HasScepter]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOpposingTeam | IsOpposingTeam]]
| <code>bool HasScepter() </code>
| <code>bool IsOpposingTeam(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMovementImpaired | IsMovementImpaired]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOutOfGame | IsOutOfGame]]
| <code>bool IsMovementImpaired() </code>
| <code>bool IsOutOfGame() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIdle | IsIdle]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOwnedByAnyPlayer | IsOwnedByAnyPlayer]]
| <code>bool IsIdle() </code>
| <code>bool IsOwnedByAnyPlayer() </code>
| Is this creature currently idle?
| Is this unit owned by any non-bot player?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRangedAttacker | IsRangedAttacker]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantom | IsPhantom]]
| <code>bool IsRangedAttacker() </code>
| <code>bool IsPhantom() </code>
| Is this unit a ranged attacker?
| Is this a phantom unit?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseHealthRegen | SetBaseHealthRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantomBlocker | IsPhantomBlocker]]
| <code>void SetBaseHealthRegen(float ) </code>
| <code>bool IsPhantomBlocker() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMoveSpeed | SetBaseMoveSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhased | IsPhased]]
| <code>void SetBaseMoveSpeed(int ) </code>
| <code>bool IsPhased() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMaximumGoldBounty | SetMaximumGoldBounty]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPositionInRange | IsPositionInRange]]
| <code>void SetMaximumGoldBounty(int ) </code>
| <code>bool IsPositionInRange(Vector , float ) </code>
| Set the maximum gold bounty for this unit.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPercentageBasedManaRegen | GetPercentageBasedManaRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRangedAttacker | IsRangedAttacker]]
| <code>float GetPercentageBasedManaRegen() </code>
| <code>bool IsRangedAttacker() </code>
| This Mana regen is derived from % bonuses (from items like Void Stone).
| Is this unit a ranged attacker?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot | GetItemInSlot]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRealHero | IsRealHero]]
| <code>handle GetItemInSlot(int ) </code>
| <code>bool IsRealHero() </code>
| Returns nth item in inventory slot (index is zero based)
| Returns true if the hero is a true Hero, not a creep or an Illusion of a hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamMoveTo | NoTeamMoveTo]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRooted | IsRooted]]
| <code>bool NoTeamMoveTo() </code>
| <code>bool IsRooted() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMax | GetBaseDamageMax]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSilenced | IsSilenced]]
| <code>int GetBaseDamageMax() </code>
| <code>bool IsSilenced() </code>
| Gets the minimum base damage.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTotalPurchasedUpgradeGoldCost | GetTotalPurchasedUpgradeGoldCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSoftDisarmed | IsSoftDisarmed]]
| <code>int GetTotalPurchasedUpgradeGoldCost() </code>
| <code>bool IsSoftDisarmed() </code>
| Get how much gold has been spent on ability upgrades.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlind | IsBlind]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSpeciallyDeniable | IsSpeciallyDeniable]]
| <code>bool IsBlind() </code>
| <code>bool IsSpeciallyDeniable() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana | GiveMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsStunned | IsStunned]]
| <code>void GiveMana(float ) </code>
| <code>bool IsStunned() </code>
| Give mana to this unit, this can be used for mana gained by abilities or item usage.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDominated | IsDominated]]
| <code>bool IsDominated() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMustReachEachGoalEntity | GetMustReachEachGoalEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSummoned | IsSummoned]]
| <code>bool GetMustReachEachGoalEntity() </code>
| <code>bool IsSummoned() </code>
| Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
| Is this unit summoned?
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsTower | IsTower]]
| <code>bool IsTower() </code>
| Is this a tower?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PassivesDisabled | PassivesDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnableToMiss | IsUnableToMiss]]
| <code>bool PassivesDisabled() </code>
| <code>bool IsUnableToMiss() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupRune | PickupRune]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnselectable | IsUnselectable]]
| <code>void PickupRune(handle ) </code>
| <code>bool IsUnselectable() </code>
| Pick up a rune.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaPercent | GetManaPercent]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Kill | Kill]]
| <code>int GetManaPercent() </code>
| <code>void Kill(handle , handle ) </code>
| Get the percent of mana remaining.
| Kills this NPC, with the params Ability and Attacker
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsStunned | IsStunned]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeIllusion | MakeIllusion]]
| <code>bool IsStunned() </code>
| <code>void MakeIllusion() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasInventory | HasInventory]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakePhantomBlocker | MakePhantomBlocker]]
| <code>bool HasInventory() </code>
| <code>void MakePhantomBlocker() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPCToGiveItem | MoveToNPCToGiveItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleDueToAttack | MakeVisibleDueToAttack]]
| <code>void MoveToNPCToGiveItem(handle , handle ) </code>
| <code>void MakeVisibleDueToAttack(int ) </code>
| Give an item to another unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoHealthBar | NoHealthBar]]
| <code>bool NoHealthBar() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsLowAttackPriority | IsLowAttackPriority]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleToTeam | MakeVisibleToTeam]]
| <code>bool IsLowAttackPriority() </code>
| <code>void MakeVisibleToTeam(int , float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimap | NotOnMinimap]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ModifyHealth | ModifyHealth]]
| <code>bool NotOnMinimap() </code>
| <code>void ModifyHealth(int , handle , bool , int ) </code>
| Sets the health to a specific value, with optional flags or inflictors.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPC | MoveToNPC]]
| <code>void MoveToNPC(handle ) </code>
| Move to follow a unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPCToGiveItem | MoveToNPCToGiveItem]]
| <code>void MoveToNPCToGiveItem(handle , handle ) </code>
| Give an item to another unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPosition | MoveToPosition]]
| <code>void MoveToPosition(Vector ) </code>
| Issue a Move-To command
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPositionAggressive | MoveToPositionAggressive]]
| <code>void MoveToPositionAggressive(Vector ) </code>
| Issue an Attack-Move-To command
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToTargetToAttack | MoveToTargetToAttack]]
| <code>void MoveToTargetToAttack(handle ) </code>
| Move to a target to attack.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoHealthBar | NoHealthBar]]
| <code>bool NoHealthBar() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorCastTarget | GetCursorCastTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamMoveTo | NoTeamMoveTo]]
| <code>handle GetCursorCastTarget() </code>
| <code>bool NoTeamMoveTo() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvisible | IsInvisible]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamSelect | NoTeamSelect]]
| <code>bool IsInvisible() </code>
| <code>bool NoTeamSelect() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyMovementCapability | HasFlyMovementCapability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimap | NotOnMinimap]]
| <code>bool HasFlyMovementCapability() </code>
| <code>bool NotOnMinimap() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSpeciallyDeniable | IsSpeciallyDeniable]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimapForEnemies | NotOnMinimapForEnemies]]
| <code>bool IsSpeciallyDeniable() </code>
| <code>bool NotOnMinimapForEnemies() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetGoldBounty | GetGoldBounty]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoUnitCollision | NoUnitCollision]]
| <code>int GetGoldBounty() </code>
| <code>bool NoUnitCollision() </code>
| Get the gold bounty on this unit
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw | AddNoDraw]]
| <code>void AddNoDraw() </code>
| Adds the no draw flag.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddItem | AddItem]]
| <code>void AddItem(handle ) </code>
| Add an item to this unit's inventory.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnselectable | IsUnselectable]]
| <code>bool IsUnselectable() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseAttackTime | SetBaseAttackTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PassivesDisabled | PassivesDisabled]]
| <code>void SetBaseAttackTime(float ) </code>
| <code>bool PassivesDisabled() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMoveSpeed | GetBaseMoveSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PerformAttack | PerformAttack]]
| <code>float GetBaseMoveSpeed() </code>
| <code>void PerformAttack(handle , bool , bool , bool , bool ) </code>
| No Description Set
| Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlockDisabled | IsBlockDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupDroppedItem | PickupDroppedItem]]
| <code>bool IsBlockDisabled() </code>
| <code>void PickupDroppedItem(handle ) </code>
| No Description Set
| Pick up a dropped item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNightmared | IsNightmared]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupRune | PickupRune]]
| <code>bool IsNightmared() </code>
| <code>void PickupRune(handle ) </code>
| No Description Set
| Pick up a rune.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorTargetingNothing | GetCursorTargetingNothing]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ProvidesVision | ProvidesVision]]
| <code>bool GetCursorTargetingNothing() </code>
| <code>bool ProvidesVision() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasModifier | HasModifier]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ReduceMana | ReduceMana]]
| <code>bool HasModifier(string ) </code>
| <code>void ReduceMana(float ) </code>
| Sees if this unit has a given modifier
| Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHasteFactor | GetHasteFactor]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveAbility | RemoveAbility]]
| <code>float GetHasteFactor() </code>
| <code>void RemoveAbility(string ) </code>
| No Description Set
| Remove an ability from this unit by name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoUnitCollision | NoUnitCollision]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveItem | RemoveItem]]
| <code>bool NoUnitCollision() </code>
| <code>void RemoveItem(handle ) </code>
| No Description Set
| Removes the passed item from this unit's inventory.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHexed | IsHexed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByName | RemoveModifierByName]]
| <code>bool IsHexed() </code>
| <code>void RemoveModifierByName(string ) </code>
| No Description Set
| Removes a modifier
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint | GetCastPoint]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByNameAndCaster | RemoveModifierByNameAndCaster]]
| <code>float GetCastPoint(bool ) </code>
| <code>void RemoveModifierByNameAndCaster(string , handle ) </code>
| Parameter: bAttack
| Removes a modifier that was cast by the given caster
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetConstantBasedManaRegen | GetConstantBasedManaRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveNoDraw | RemoveNoDraw]]
| <code>float GetConstantBasedManaRegen() </code>
| <code>void RemoveNoDraw() </code>
| This Mana regen is derived from constant bonuses like Basilius.
| Remove the no draw flag.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLevel | GetLevel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RespawnUnit | RespawnUnit]]
| <code>int GetLevel() </code>
| <code>void RespawnUnit() </code>
| Returns the level of this unit.
| Respawns the target unit if it can be respawned.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorTargetingNothing | SetCursorTargetingNothing]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SellItem | SellItem]]
| <code>void SetCursorTargetingNothing(bool ) </code>
| <code>void SellItem(handle ) </code>
| No Description Set
| Sells the passed item in this unit's inventory.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHero | IsHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAdditionalBattleMusicWeight | SetAdditionalBattleMusicWeight]]
| <code>bool IsHero() </code>
| <code>void SetAdditionalBattleMusicWeight(float ) </code>
| Is this a hero or hero illusion?
| Combat involving this creature will have this weight added to the music calcuations
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex | GetModifierNameByIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttackCapability | SetAttackCapability]]
| <code>string GetModifierNameByIndex(int ) </code>
| <code>void SetAttackCapability(int ) </code>
| Get a modifier name by index.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSilenced | IsSilenced]]
| <code>bool IsSilenced() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackImmune | IsAttackImmune]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttacking | SetAttacking]]
| <code>bool IsAttackImmune() </code>
| <code>void SetAttacking(handle ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDisarmed | IsDisarmed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseAttackTime | SetBaseAttackTime]]
| <code>bool IsDisarmed() </code>
| <code>void SetBaseAttackTime(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttacking | IsAttacking]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMax | SetBaseDamageMax]]
| <code>bool IsAttacking() </code>
| <code>void SetBaseDamageMax(int ) </code>
| No Description Set
| Sets the minimum base damage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPosition | MoveToPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMin | SetBaseDamageMin]]
| <code>void MoveToPosition(Vector ) </code>
| <code>void SetBaseDamageMin(int ) </code>
| Issue a Move-To command
| Sets the minimum base damage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ProvidesVision | ProvidesVision]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseHealthRegen | SetBaseHealthRegen]]
| <code>bool ProvidesVision() </code>
| <code>void SetBaseHealthRegen(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPositionAggressive | MoveToPositionAggressive]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMagicalResistanceValue | SetBaseMagicalResistanceValue]]
| <code>void MoveToPositionAggressive(Vector ) </code>
| <code>void SetBaseMagicalResistanceValue(float ) </code>
| Issue an Attack-Move-To command
| Sets base magical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorCastTarget | SetCursorCastTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseManaRegen | SetBaseManaRegen]]
| <code>void SetCursorCastTarget(handle ) </code>
| <code>void SetBaseManaRegen(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetPhysicalArmorBaseValue | SetPhysicalArmorBaseValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMaxHealth | SetBaseMaxHealth]]
| <code>void SetPhysicalArmorBaseValue(float ) </code>
| <code>void SetBaseMaxHealth(float ) </code>
| Sets base physical armor value.
| Set a new base max health value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRooted | IsRooted]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMoveSpeed | SetBaseMoveSpeed]]
| <code>bool IsRooted() </code>
| <code>void SetBaseMoveSpeed(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerModifierDodge | TriggerModifierDodge]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetControllableByPlayer | SetControllableByPlayer]]
| <code>bool TriggerModifierDodge() </code>
| <code>void SetControllableByPlayer(int , bool ) </code>
| No Description Set
| Set this unit controllable by the player with the passed ID.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerSpellAbsorb | TriggerSpellAbsorb]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorCastTarget | SetCursorCastTarget]]
| <code>bool TriggerSpellAbsorb(handle ) </code>
| <code>void SetCursorCastTarget(handle ) </code>
| Query whether the passed ability will trigger spell absorb on this unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIdealSpeed | GetIdealSpeed]]
| <code>float GetIdealSpeed() </code>
| Returns speed after all modifiers.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeIllusion | MakeIllusion]]
| <code>void MakeIllusion() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIllusion | IsIllusion]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorPosition | SetCursorPosition]]
| <code>bool IsIllusion() </code>
| <code>void SetCursorPosition(Vector ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetSecondsPerAttack | GetSecondsPerAttack]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorTargetingNothing | SetCursorTargetingNothing]]
| <code>float GetSecondsPerAttack() </code>
| <code>void SetCursorTargetingNothing(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMustReachEachGoalEntity | SetMustReachEachGoalEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDayTimeVisionRange | SetDayTimeVisionRange]]
| <code>void SetMustReachEachGoalEntity(bool ) </code>
| <code>void SetDayTimeVisionRange(int ) </code>
| Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
| Set the base vision range.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxHealth | GetMaxHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDeathXP | SetDeathXP]]
| <code>int GetMaxHealth() </code>
| <code>void SetDeathXP(int ) </code>
| Get the maximum health of this unit.
| Set the XP bounty on this unit
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackRange | GetBaseAttackRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetForceAttackTarget | SetForceAttackTarget]]
| <code>int GetBaseAttackRange() </code>
| <code>void SetForceAttackTarget(handle ) </code>
| Gets this unit's attack range before modifiers.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsEvadeDisabled | IsEvadeDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHasInventory | SetHasInventory]]
| <code>bool IsEvadeDisabled() </code>
| <code>void SetHasInventory(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxMana | GetMaxMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHullRadius | SetHullRadius]]
| <code>float GetMaxMana() </code>
| <code>void SetHullRadius(float ) </code>
| Get the maximum mana of this unit.
| Set the collision hull radius of this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMax | SetBaseDamageMax]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetIdleAcquire | SetIdleAcquire]]
| <code>void SetBaseDamageMax(int ) </code>
| <code>void SetIdleAcquire(bool ) </code>
| Sets the minimum base damage.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealth | GetHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetInitialGoalEntity | SetInitialGoalEntity]]
| <code>int GetHealth() </code>
| <code>void SetInitialGoalEntity(handle ) </code>
| Get the health of this unit.
| Sets the initial waypoint goal for this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMainControllingPlayer | GetMainControllingPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMana | SetMana]]
| <code>int GetMainControllingPlayer() </code>
| <code>void SetMana(float ) </code>
| Returns the player ID of the controlling player.
| Set the mana on this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal | Heal]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMaximumGoldBounty | SetMaximumGoldBounty]]
| <code>void Heal(float , handle ) </code>
| <code>void SetMaximumGoldBounty(int ) </code>
| Heal this unit.
| Set the maximum gold bounty for this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMinimumGoldBounty | SetMinimumGoldBounty]]
| <code>float GetIncreasedAttackSpeed() </code>
| <code>void SetMinimumGoldBounty(int ) </code>
| Set the minimum gold bounty for this unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMoveCapability | SetMoveCapability]]
| <code>void SetMoveCapability(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupDroppedItem | PickupDroppedItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMustReachEachGoalEntity | SetMustReachEachGoalEntity]]
| <code>void PickupDroppedItem(handle ) </code>
| <code>void SetMustReachEachGoalEntity(bool ) </code>
| Pick up a dropped item.
| Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantom | IsPhantom]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNeverMoveToClearSpace | SetNeverMoveToClearSpace]]
| <code>bool IsPhantom() </code>
| <code>void SetNeverMoveToClearSpace(bool ) </code>
| Is this a phantom unit?
| If set to true, we will never attempt to move this unit to clear space, even when it unphases.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Hold | Hold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNightTimeVisionRange | SetNightTimeVisionRange]]
| <code>void Hold() </code>
| <code>void SetNightTimeVisionRange(int ) </code>
| Hold position.
| Set the base vision range.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNeutralUnitType | IsNeutralUnitType]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetOriginalModel | SetOriginalModel]]
| <code>bool IsNeutralUnitType() </code>
| <code>void SetOriginalModel(string originalModel) </code>
| Is this a neutral?
| Sets the original model of this entity, which it will tend to fall back to anytime its state changes
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DisassembleItem | DisassembleItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetPhysicalArmorBaseValue | SetPhysicalArmorBaseValue]]
| <code>void DisassembleItem(handle ) </code>
| <code>void SetPhysicalArmorBaseValue(float ) </code>
| Disassemble the passed item in this unit's inventory.
| Sets base physical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMagicalResistanceValue | GetBaseMagicalResistanceValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetRangedProjectileName | SetRangedProjectileName]]
| <code>float GetBaseMagicalResistanceValue() </code>
| <code>void SetRangedProjectileName(string ) </code>
| Returns base magical armor value.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCollisionPadding | GetCollisionPadding]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetStolenScepter | SetStolenScepter]]
| <code>float GetCollisionPadding() </code>
| <code>void SetStolenScepter(bool ) </code>
| Returns the size of the collision padding around the hull.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAlive | IsAlive]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetUnitName | SetUnitName]]
| <code>bool IsAlive() </code>
| <code>void SetUnitName(string ) </code>
| Is this unit alive?
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamSelect | NoTeamSelect]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ShouldIdleAcquire | ShouldIdleAcquire]]
| <code>bool NoTeamSelect() </code>
| <code>bool ShouldIdleAcquire() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnTarget | CastAbilityOnTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SpendMana | SpendMana]]
| <code>void CastAbilityOnTarget(handle target, handle ability, int playerIndex) </code>
| <code>void SpendMana(float , handle ) </code>
| Cast an ability on a target entity.
| Spend mana from this unit, this can be used for spending mana from abilities or item usage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition | CastAbilityOnPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Stop | Stop]]
| <code>void CastAbilityOnPosition(Vector , handle , int ) </code>
| <code>void Stop() </code>
| Cast an ability on a position.
| Stop the current order.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwner | GetPlayerOwner]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SwapAbilities | SwapAbilities]]
| <code>handle GetPlayerOwner() </code>
| <code>void SwapAbilities(string , string , bool , bool ) </code>
| Returns the player that owns this unit
| 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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSummoned | IsSummoned]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TimeUntilNextAttack | TimeUntilNextAttack]]
| <code>bool IsSummoned() </code>
| <code>float TimeUntilNextAttack() </code>
| Is this unit summoned?
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsTower | IsTower]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerModifierDodge | TriggerModifierDodge]]
| <code>bool IsTower() </code>
| <code>bool TriggerModifierDodge() </code>
| Is this a tower?
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNeverMoveToClearSpace | SetNeverMoveToClearSpace]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerSpellAbsorb | TriggerSpellAbsorb]]
| <code>void SetNeverMoveToClearSpace(bool ) </code>
| <code>bool TriggerSpellAbsorb(handle ) </code>
| If set to true, we will never attempt to move this unit to clear space, even when it unphases.
| Query whether the passed ability will trigger spell absorb on this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAdditionalBattleMusicWeight | SetAdditionalBattleMusicWeight]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.UnitCanRespawn | UnitCanRespawn]]
| <code>void SetAdditionalBattleMusicWeight(float ) </code>
| <code>bool UnitCanRespawn() </code>
| Combat involving this creature will have this weight added to the music calcuations
| No Description Set
|}
 
 
=== CDOTA_BaseNPC_Hero ===
''No Description Set''
{| class="standard-table" style="width: 100%;"
! Function
! Signature
! Description
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMaxHealth | GetBaseMaxHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.AddExperience | AddExperience]]
| <code>float GetBaseMaxHealth() </code>
| <code>bool AddExperience(float , bool ) </code>
| Gets the base max health value.
| Params: Float XP, Bool applyBotDifficultyScaling
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthDeficit | GetHealthDeficit]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.Buyback | Buyback]]
| <code>int GetHealthDeficit() </code>
| <code>void Buyback() </code>
| Returns integer amount of health missing from max.
| Spend the gold and buyback with this hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAcquisitionRange | GetAcquisitionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CalculateStatBonus | CalculateStatBonus]]
| <code>float GetAcquisitionRange() </code>
| <code>void CalculateStatBonus() </code>
| Gets the range at which this unit will auto-acquire.
| Recalculate all stats after the hero gains stats.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLastIdleChangeTime | GetLastIdleChangeTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CanEarnGold | CanEarnGold]]
| <code>float GetLastIdleChangeTime() </code>
| <code>bool CanEarnGold() </code>
| Get the last game time that this unit switched to/from idle state.
| Returns boolean value result of buyback gold limit time less than game time.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMaxHealth | SetBaseMaxHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitMultikill | ClearLastHitMultikill]]
| <code>void SetBaseMaxHealth(float ) </code>
| <code>void ClearLastHitMultikill() </code>
| Set a new base max health value.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Kill | Kill]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitStreak | ClearLastHitStreak]]
| <code>void Kill(handle , handle ) </code>
| <code>void ClearLastHitStreak() </code>
| Kills this NPC, with the params Ability and Attacker
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityNoTarget | CastAbilityNoTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearStreak | ClearStreak]]
| <code>void CastAbilityNoTarget(handle ability, int playerIndex) </code>
| <code>void ClearStreak() </code>
| Cast an ability with no target. ( hAbility, iPlayerIndex )
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentVisionRange | GetCurrentVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAbilityPoints | GetAbilityPoints]]
| <code>int GetCurrentVisionRange() </code>
| <code>int GetAbilityPoints() </code>
| Gets the current vision range.
| Gets the current unspent ability point's.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle | CastAbilityToggle]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgility | GetAgility]]
| <code>void CastAbilityToggle(handle , int ) </code>
| <code>float GetAgility() </code>
| Toggle an ability. ( hAbility, iPlayerIndex )
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOwnedByAnyPlayer | IsOwnedByAnyPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgilityGain | GetAgilityGain]]
| <code>bool IsOwnedByAnyPlayer() </code>
| <code>float GetAgilityGain() </code>
| Is this unit owned by any non-bot player?
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorBaseValue | GetPhysicalArmorBaseValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAssists | GetAssists]]
| <code>float GetPhysicalArmorBaseValue() </code>
| <code>int GetAssists() </code>
| Returns base physical armor value.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentActiveAbility | GetCurrentActiveAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAttacker | GetAttacker]]
| <code>handle GetCurrentActiveAbility() </code>
| <code>int GetAttacker(int ) </code>
| Get the ability this unit is currently casting.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsControllableByAnyPlayer | IsControllableByAnyPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseAgility | GetBaseAgility]]
| <code>bool IsControllableByAnyPlayer() </code>
| <code>float GetBaseAgility() </code>
| Is this unit controlled by any non-bot player?
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorValue | GetPhysicalArmorValue]]
| <code>float GetPhysicalArmorValue() </code>
| Returns current physical armor value.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.BoundingRadius2D | BoundingRadius2D]]
| <code>float BoundingRadius2D() </code>
| No Description Set
| No Description Set
|}
=== CDOTA_BaseNPC_Hero ===
''No Description Set''
{| class="standard-table" style="width: 100%;"
! Function
! Signature
! Description
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPhysicalArmorValue | GetPhysicalArmorValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMax | GetBaseDamageMax]]
| <code>float GetPhysicalArmorValue() </code>
| <code>int GetBaseDamageMax() </code>
| Hero armor is affected by attributes.
| Hero damage is also affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDenies | GetDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMin | GetBaseDamageMin]]
| <code>int GetDenies() </code>
| <code>int GetBaseDamageMin() </code>
| Value is stored in PlayerResource.
| Hero damage is also affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellect | GetIntellect]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseIntellect | GetBaseIntellect]]
| <code>float GetIntellect() </code>
| <code>float GetBaseIntellect() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ShouldDoFlyHeightVisual | ShouldDoFlyHeightVisual]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseStrength | GetBaseStrength]]
| <code>bool ShouldDoFlyHeightVisual() </code>
| <code>float GetBaseStrength() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPlayerID | GetPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBonusDamageFromPrimaryStat | GetBonusDamageFromPrimaryStat]]
| <code>int GetPlayerID() </code>
| <code>int GetBonusDamageFromPrimaryStat() </code>
| Returns player ID of the player owning this hero
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetLastHits | GetLastHits]]
| <code>int GetLastHits() </code>
| Value is stored in PlayerResource.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseAgility | GetBaseAgility]]
| <code>float GetBaseAgility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsReincarnating | IsReincarnating]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCooldownTime | GetBuybackCooldownTime]]
| <code>bool IsReincarnating() </code>
| <code>float GetBuybackCooldownTime() </code>
| No Description Set
| Return ''float'' value for the amount of time left on cooldown for this hero's buyback.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseAgility | SetBaseAgility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCost | GetBuybackCost]]
| <code>void SetBaseAgility(float ) </code>
| <code>int GetBuybackCost() </code>
| No Description Set
| Return integer value for the gold cost of a buyback.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackGoldLimitTime | GetBuybackGoldLimitTime]]
| <code>void IncrementLastHitMultikill() </code>
| <code>float GetBuybackGoldLimitTime() </code>
| Value is stored in PlayerResource.
| Returns the amount of time gold gain is limited after buying back.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RespawnHero | RespawnHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetCurrentXP | GetCurrentXP]]
| <code>void RespawnHero(bool , bool , bool ) </code>
| <code>int GetCurrentXP() </code>
| Respawn this hero.
| Returns the amount of XP
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseStrength | GetBaseStrength]]
| <code>float GetBaseStrength() </code>
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeathGoldCost | GetDeathGoldCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeathGoldCost | GetDeathGoldCost]]
Line 3,181: Line 3,218:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetManaRegen | GetManaRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeaths | GetDeaths]]
| <code>float GetManaRegen() </code>
| <code>int GetDeaths() </code>
| Hero mana regen is affected by attributes.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitMultikill | ClearLastHitMultikill]]
| <code>void ClearLastHitMultikill() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyGold | ModifyGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDenies | GetDenies]]
| <code>int ModifyGold(int goldAmmt, bool reliable, int reason) </code>
| <code>int GetDenies() </code>
| Gives this hero some gold. Args: ''int'' nGoldChange, ''bool'' bReliable, ''int'' reason
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryStatValue | GetPrimaryStatValue]]
| <code>float GetPrimaryStatValue() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearStreak | ClearStreak]]
| <code>void ClearStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgility | GetAgility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGold | GetGold]]
| <code>float GetAgility() </code>
| <code>int GetGold() </code>
| No Description Set
| Returns gold amount for the player owning this hero
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| <code>void SetBuybackGoldLimitTime(float ) </code>
| Set the amount of time gold gain is limited after buying back.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CalculateStatBonus | CalculateStatBonus]]
| <code>void CalculateStatBonus() </code>
| Recalculate all stats after the hero gains stats.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCooldownTime | GetBuybackCooldownTime]]
| <code>float GetBuybackCooldownTime() </code>
| Return ''float'' value for the amount of time left on cooldown for this hero's buyback.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGoldBounty | GetGoldBounty]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGoldBounty | GetGoldBounty]]
Line 3,225: Line 3,238:
| Hero health regen is affected by attributes.
| Hero health regen is affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementStreak | IncrementStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
| <code>void IncrementStreak() </code>
| <code>float GetIncreasedAttackSpeed() </code>
| Value is stored in PlayerResource.
| Hero attack speed is also affected by agility.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsBuybackDisabledByReapersScythe | IsBuybackDisabledByReapersScythe]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellect | GetIntellect]]
| <code>bool IsBuybackDisabledByReapersScythe() </code>
| <code>float GetIntellect() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCost | GetBuybackCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellectGain | GetIntellectGain]]
| <code>int GetBuybackCost() </code>
| <code>float GetIntellectGain() </code>
| Return integer value for the gold cost of a buyback.
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetKills | GetKills]]
| <code>int GetKills() </code>
| Value is stored in PlayerResource.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetLastHits | GetLastHits]]
| <code>int GetLastHits() </code>
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CanEarnGold | CanEarnGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetManaRegen | GetManaRegen]]
| <code>bool CanEarnGold() </code>
| <code>float GetManaRegen() </code>
| Returns boolean value result of buyback gold limit time less than game time.
| Hero mana regen is affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrength | GetStrength]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMostRecentDamageTime | GetMostRecentDamageTime]]
| <code>float GetStrength() </code>
| <code>float GetMostRecentDamageTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgilityGain | GetAgilityGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMultipleKillCount | GetMultipleKillCount]]
| <code>float GetAgilityGain() </code>
| <code>int GetMultipleKillCount() </code>
| No Description Set
| No Description Set
|-
|-
Line 3,253: Line 3,274:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetCurrentXP | GetCurrentXP]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPhysicalArmorValue | GetPhysicalArmorValue]]
| <code>int GetCurrentXP() </code>
| <code>float GetPhysicalArmorValue() </code>
| Returns the amount of XP
| Hero armor is affected by attributes.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPlayerID | GetPlayerID]]
| <code>int GetPlayerID() </code>
| Returns player ID of the player owning this hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetAbilityPoints | SetAbilityPoints]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryAttribute | GetPrimaryAttribute]]
| <code>void SetAbilityPoints(int ) </code>
| <code>int GetPrimaryAttribute() </code>
| Sets the current unspent ability point's.
| 0 = strength, 1 = agility, 2 = intelligence.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetRespawnPosition | SetRespawnPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryStatValue | GetPrimaryStatValue]]
| <code>void SetRespawnPosition(Vector ) </code>
| <code>float GetPrimaryStatValue() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyIntellect | ModifyIntellect]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetRespawnTime | GetRespawnTime]]
| <code>void ModifyIntellect(float ) </code>
| <code>float GetRespawnTime() </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
| <code>float GetStatsBasedManaRegen() </code>
| Returns only the regen based on Intelligence.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SpendGold | SpendGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStreak | GetStreak]]
| <code>void SpendGold(int , int ) </code>
| <code>int GetStreak() </code>
| Args: ''int'' nGold, ''int'' nReason
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UnitCanRespawn | UnitCanRespawn]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrength | GetStrength]]
| <code>bool UnitCanRespawn() </code>
| <code>float GetStrength() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGold | GetGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrengthGain | GetStrengthGain]]
| <code>int GetGold() </code>
| <code>float GetStrengthGain() </code>
| Returns gold amount for the player owning this hero
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.PerformTaunt | PerformTaunt]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetTimeUntilRespawn | GetTimeUntilRespawn]]
| <code>void PerformTaunt() </code>
| <code>float GetTimeUntilRespawn() </code>
| No Description Set
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HeroLevelUp | HeroLevelUp]]
| <code>void HeroLevelUp(bool ) </code>
| Levels up the hero, true or false to play effects.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetGold | SetGold]]
| <code>void SetGold(int , bool ) </code>
| Sets the gold amount for the player owning this hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasAnyAvailableInventorySpace | HasAnyAvailableInventorySpace]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasAnyAvailableInventorySpace | HasAnyAvailableInventorySpace]]
Line 3,297: Line 3,318:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.KilledHero | KilledHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasFlyingVision | HasFlyingVision]]
| <code>void KilledHero(handle , handle ) </code>
| <code>bool HasFlyingVision() </code>
| Args: Hero, Inflictor
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAbilityPoints | GetAbilityPoints]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasOwnerAbandoned | HasOwnerAbandoned]]
| <code>int GetAbilityPoints() </code>
| <code>bool HasOwnerAbandoned() </code>
| Gets the current unspent ability point's.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasRoomForItem | HasRoomForItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasRoomForItem | HasRoomForItem]]
Line 3,309: Line 3,330:
| Args: const char* pItemName, ''bool'' bIncludeStashCombines, ''bool'' bAllowSelling
| Args: const char* pItemName, ''bool'' bIncludeStashCombines, ''bool'' bAllowSelling
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAssists | GetAssists]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HeroLevelUp | HeroLevelUp]]
| <code>int GetAssists() </code>
| <code>void HeroLevelUp(bool ) </code>
| Levels up the hero, true or false to play effects.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementAssists | IncrementAssists]]
| <code>void IncrementAssists() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetTimeUntilRespawn | SetTimeUntilRespawn]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDeaths | IncrementDeaths]]
| <code>void SetTimeUntilRespawn(float ) </code>
| <code>void IncrementDeaths() </code>
| No Description Set
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeaths | GetDeaths]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDenies | IncrementDenies]]
| <code>int GetDeaths() </code>
| <code>void IncrementDenies() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetTimeUntilRespawn | GetTimeUntilRespawn]]
| <code>float GetTimeUntilRespawn() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UpgradeAbility | UpgradeAbility]]
| <code>void UpgradeAbility(handle ) </code>
| This upgrades the passed ability if it exists and the hero has enough ability point's.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementKills | IncrementKills]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementKills | IncrementKills]]
Line 3,333: Line 3,350:
| 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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryAttribute | GetPrimaryAttribute]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| <code>int GetPrimaryAttribute() </code>
| <code>void IncrementLastHitMultikill() </code>
| 0 = strength, 1 = agility, 2 = intelligence.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementAssists | IncrementAssists]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHits | IncrementLastHits]]
| <code>void IncrementAssists() </code>
| <code>void IncrementLastHits() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasFlyingVision | HasFlyingVision]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitStreak | IncrementLastHitStreak]]
| <code>bool HasFlyingVision() </code>
| <code>void IncrementLastHitStreak() </code>
| No Description Set
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAttacker | GetAttacker]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
| <code>int GetAttacker(int ) </code>
| <code>void IncrementNearbyCreepDeaths() </code>
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetKills | GetKills]]
| <code>int GetKills() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementStreak | IncrementStreak]]
| <code>float GetIncreasedAttackSpeed() </code>
| <code>void IncrementStreak() </code>
| Hero attack speed is also affected by agility.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitStreak | IncrementLastHitStreak]]
| <code>void IncrementLastHitStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasOwnerAbandoned | HasOwnerAbandoned]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsBuybackDisabledByReapersScythe | IsBuybackDisabledByReapersScythe]]
| <code>bool HasOwnerAbandoned() </code>
| <code>bool IsBuybackDisabledByReapersScythe() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.WillReincarnate | WillReincarnate]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsReincarnating | IsReincarnating]]
| <code>bool WillReincarnate() </code>
| <code>bool IsReincarnating() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.AddExperience | AddExperience]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.KilledHero | KilledHero]]
| <code>bool AddExperience(float , bool ) </code>
| <code>void KilledHero(handle , handle ) </code>
| Params: Float XP, Bool applyBotDifficultyScaling
| Args: Hero, Inflictor
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMultipleKillCount | GetMultipleKillCount]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyAgility | ModifyAgility]]
| <code>int GetMultipleKillCount() </code>
| <code>void ModifyAgility(float ) </code>
| No Description Set
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RecordLastHit | RecordLastHit]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyGold | ModifyGold]]
| <code>void RecordLastHit() </code>
| <code>int ModifyGold(int goldAmmt, bool reliable, int reason) </code>
| No Description Set
| Gives this hero some gold. Args: ''int'' nGoldChange, ''bool'' bReliable, ''int'' reason
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHits | IncrementLastHits]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyIntellect | ModifyIntellect]]
| <code>void IncrementLastHits() </code>
| <code>void ModifyIntellect(float ) </code>
| Value is stored in PlayerResource.
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyStrength | ModifyStrength]]
| <code>float GetStatsBasedManaRegen() </code>
| <code>void ModifyStrength(float ) </code>
| Returns only the regen based on Intelligence.
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackGoldLimitTime | GetBuybackGoldLimitTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.PerformTaunt | PerformTaunt]]
| <code>float GetBuybackGoldLimitTime() </code>
| <code>void PerformTaunt() </code>
| Returns the amount of time gold gain is limited after buying back.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetCustomDeathXP | SetCustomDeathXP]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RecordLastHit | RecordLastHit]]
| <code>void SetCustomDeathXP(int ) </code>
| <code>void RecordLastHit() </code>
| Sets a custom experience value for this hero. {{tip|GameRules boolean must be set for this to work!}}
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMax | GetBaseDamageMax]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RespawnHero | RespawnHero]]
| <code>int GetBaseDamageMax() </code>
| <code>void RespawnHero(bool , bool , bool ) </code>
| Hero damage is also affected by attributes.
| Respawn this hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMin | GetBaseDamageMin]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetAbilityPoints | SetAbilityPoints]]
| <code>int GetBaseDamageMin() </code>
| <code>void SetAbilityPoints(int ) </code>
| Hero damage is also affected by attributes.
| Sets the current unspent ability point's.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStreak | GetStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseAgility | SetBaseAgility]]
| <code>int GetStreak() </code>
| <code>void SetBaseAgility(float ) </code>
| Value is stored in PlayerResource.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMostRecentDamageTime | GetMostRecentDamageTime]]
| <code>float GetMostRecentDamageTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuyBackDisabledByReapersScythe | SetBuyBackDisabledByReapersScythe]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseIntellect | SetBaseIntellect]]
| <code>void SetBuyBackDisabledByReapersScythe(bool ) </code>
| <code>void SetBaseIntellect(float ) </code>
| No Description Set
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.Buyback | Buyback]]
| <code>void Buyback() </code>
| Spend the gold and buyback with this hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseStrength | SetBaseStrength]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseStrength | SetBaseStrength]]
Line 3,425: Line 3,426:
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseIntellect | SetBaseIntellect]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| <code>void SetBaseIntellect(float ) </code>
| <code>void SetBuybackCooldownTime(float ) </code>
| Sets the buyback cooldown time.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuyBackDisabledByReapersScythe | SetBuyBackDisabledByReapersScythe]]
| <code>void SetBuyBackDisabledByReapersScythe(bool ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrengthGain | GetStrengthGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| <code>float GetStrengthGain() </code>
| <code>void SetBuybackGoldLimitTime(float ) </code>
| No Description Set
| Set the amount of time gold gain is limited after buying back.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetCustomDeathXP | SetCustomDeathXP]]
| <code>void SetCustomDeathXP(int ) </code>
| Sets a custom experience value for this hero. {{tip|GameRules boolean must be set for this to work!}}
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDeaths | IncrementDeaths]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetGold | SetGold]]
| <code>void IncrementDeaths() </code>
| <code>void SetGold(int , bool ) </code>
| Value is stored in PlayerResource.
| Sets the gold amount for the player owning this hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetRespawnTime | GetRespawnTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetPlayerID | SetPlayerID]]
| <code>float GetRespawnTime() </code>
| <code>void SetPlayerID(int ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyAgility | ModifyAgility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetRespawnPosition | SetRespawnPosition]]
| <code>void ModifyAgility(float ) </code>
| <code>void SetRespawnPosition(Vector ) </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellectGain | GetIntellectGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetTimeUntilRespawn | SetTimeUntilRespawn]]
| <code>float GetIntellectGain() </code>
| <code>void SetTimeUntilRespawn(float ) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitStreak | ClearLastHitStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ShouldDoFlyHeightVisual | ShouldDoFlyHeightVisual]]
| <code>void ClearLastHitStreak() </code>
| <code>bool ShouldDoFlyHeightVisual() </code>
| Value is stored in PlayerResource.
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SpendGold | SpendGold]]
| <code>void IncrementNearbyCreepDeaths() </code>
| <code>void SpendGold(int , int ) </code>
| Value is stored in PlayerResource.
| Args: ''int'' nGold, ''int'' nReason
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseIntellect | GetBaseIntellect]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UnitCanRespawn | UnitCanRespawn]]
| <code>float GetBaseIntellect() </code>
| <code>bool UnitCanRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetPlayerID | SetPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UpgradeAbility | UpgradeAbility]]
| <code>void SetPlayerID(int ) </code>
| <code>void UpgradeAbility(handle ) </code>
| No Description Set
| This upgrades the passed ability if it exists and the hero has enough ability point's.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.WillReincarnate | WillReincarnate]]
| <code>void SetBuybackCooldownTime(float ) </code>
| <code>bool WillReincarnate() </code>
| Sets the buyback cooldown time.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBonusDamageFromPrimaryStat | GetBonusDamageFromPrimaryStat]]
| <code>int GetBonusDamageFromPrimaryStat() </code>
| No Description Set
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDenies | IncrementDenies]]
| <code>void IncrementDenies() </code>
| Value is stored in PlayerResource.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyStrength | ModifyStrength]]
| <code>void ModifyStrength(float ) </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|}
|}


Line 3,490: Line 3,487:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPRegenGain | SetHPRegenGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.AddItemDrop | AddItemDrop]]
| <code>void SetHPRegenGain(float ) </code>
| <code>void AddItemDrop(handle ) </code>
| Set the hit point's regen gained per level on this creature.
| Add the specified item drop to this creature
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDisableResistanceGain | SetDisableResistanceGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.CreatureLevelUp | CreatureLevelUp]]
| <code>void SetDisableResistanceGain(float ) </code>
| <code>void CreatureLevelUp(int ) </code>
| Set the disable resistance gained per level on this creature.
| Level the creature up by the specified number of levels
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.IsChampion | IsChampion]]
| <code>bool IsChampion() </code>
| Is this unit a champion?
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetArmorGain | SetArmorGain]]
| <code>void SetArmorGain(float ) </code>
| Set the armor gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetAttackTimeGain | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMoveSpeedGain | SetMoveSpeedGain]]
| <code>void SetMoveSpeedGain(int ) </code>
| Set the move speed gained per level on this creature.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.CreatureLevelUp | CreatureLevelUp]]
| <code>void CreatureLevelUp(int ) </code>
| Level the creature up by the specified number of levels
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetBountyGain | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetXPGain | SetXPGain]]
| <code>void SetXPGain(int ) </code>
| Set the xp reward gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetChampion | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.AddItemDrop | AddItemDrop]]
| <code>void AddItemDrop(handle ) </code>
| Add the specified item drop to this creature
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetManaRegenGain | SetManaRegenGain]]
| <code>void SetManaRegenGain(float ) </code>
| Set the mana point's regen gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDamageGain | SetDamageGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDamageGain | SetDamageGain]]
Line 3,534: Line 3,519:
| Set the damage gained per level on this creature.
| Set the damage gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMagicResistanceGain | SetMagicResistanceGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDisableResistanceGain | SetDisableResistanceGain]]
| <code>void SetMagicResistanceGain(float ) </code>
| <code>void SetDisableResistanceGain(float ) </code>
| Set the magic resistance gained per level on this creature.
| Set the disable resistance gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPGain | SetHPGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPGain | SetHPGain]]
Line 3,542: Line 3,527:
| Set the hit point's gained per level on this creature.
| Set the hit point's gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.IsChampion | IsChampion]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPRegenGain | SetHPRegenGain]]
| <code>bool IsChampion() </code>
| <code>void SetHPRegenGain(float ) </code>
| Is this unit a champion?
| Set the hit point's regen gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetManaGain | SetManaGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMagicResistanceGain | SetMagicResistanceGain]]
| <code>void SetMagicResistanceGain(float ) </code>
| Set the magic resistance gained per level on this creature.
|-
| [[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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetArmorGain | SetArmorGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetManaRegenGain | SetManaRegenGain]]
| <code>void SetArmorGain(float ) </code>
| <code>void SetManaRegenGain(float ) </code>
| Set the armor gained per level on this creature.
| Set the mana point's regen gained per level on this creature.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMoveSpeedGain | SetMoveSpeedGain]]
| <code>void SetMoveSpeedGain(int ) </code>
| Set the move speed gained per level on this creature.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetXPGain | SetXPGain]]
| <code>void SetXPGain(int ) </code>
| Set the xp reward gained per level on this creature.
|}
|}


Line 3,562: Line 3,559:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.GetInvulnCount | GetInvulnCount]]
| <code>int GetInvulnCount() </code>
| Get the invulnerability count for a building.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.SetInvulnCount | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.GetInvulnCount | GetInvulnCount]]
| <code>int GetInvulnCount() </code>
| Get the invulnerability count for a building.
|}
|}


Line 3,579: Line 3,576:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsFacing | IsFacing]]
| <code>bool IsFacing(Vector , float ) </code>
| ( vecTargetPosition, flAngleTolerance ) - returns true if the unit is within flAngleTolerance degrees of the target position
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeAngle | SetSightConeAngle]]
| <code>void SetSightConeAngle(float ) </code>
| ( flAngleDegrees ) - sets angle in which the unit can see things up to sight range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ActionState | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ClearMovementTarget | ClearMovementTarget]]
| <code>void ClearMovementTarget() </code>
| Clear any movement target entity/position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.FindSensedEnemies | FindSensedEnemies]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.FindSensedEnemies | FindSensedEnemies]]
Line 3,596: Line 3,589:
| 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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetUnitName | GetUnitName]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxSpeed | GetMaxSpeed]]
| <code>string GetUnitName() </code>
| <code>float GetMaxSpeed() </code>
| get the unit name for this unit.
| returns unit's max speed
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxStamina | GetMaxStamina]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxStamina | GetMaxStamina]]
Line 3,604: Line 3,597:
| returns maximum stamina amount.
| returns maximum stamina amount.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetBlocking | SetBlocking]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMovementTargetEntity | GetMovementTargetEntity]]
| <code>void SetBlocking(bool ) </code>
| ( bShouldBlock ) - Set the blocking state of this unit.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetStamina | GetStamina]]
| <code>float GetStamina() </code>
| returns current stamina amount.
|-
| [[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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsBlocking | IsBlocking]]
| <code>bool IsBlocking() </code>
| is this unit blocking?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSensingSphereRange | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetEntity | SetMovementTargetEntity]]
| <code>void SetMovementTargetEntity(handle , float ) </code>
| ( hTargetEntity, flTargetRange ) - Try to move this unit to the given range from the target entity.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetTurnRate | SetTurnRate]]
| <code>void SetTurnRate(float ) </code>
| ( flTurnRate ) - sets unit's turn rate in degrees per second
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeAngle | GetSightConeAngle]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeAngle | GetSightConeAngle]]
Line 3,636: Line 3,609:
| 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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxSpeed | GetMaxSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeRange | GetSightConeRange]]
| <code>float GetMaxSpeed() </code>
| <code>float GetSightConeRange() </code>
| returns unit's max speed
| returns range of unit's sight cone
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetStamina | GetStamina]]
| <code>float GetStamina() </code>
| returns current stamina amount.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetTurnRate | GetTurnRate]]
| <code>float GetTurnRate() </code>
| returns unit's turn rate in degrees per second
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetUnitName | GetUnitName]]
| <code>string GetUnitName() </code>
| get the unit name for this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GrantItem | GrantItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GrantItem | GrantItem]]
Line 3,644: Line 3,629:
| ( sItemName ) - grant an item to the unit by name.
| ( sItemName ) - grant an item to the unit by name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetPosition | SetMovementTargetPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsBlocking | IsBlocking]]
| <code>void SetMovementTargetPosition(Vector , float ) </code>
| <code>bool IsBlocking() </code>
| ( vecTargetPosition, flTargetRange ) - Try to move this unit to the given range from the target point.
| is this unit blocking?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ClearMovementTarget | ClearMovementTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsFacing | IsFacing]]
| <code>void ClearMovementTarget() </code>
| <code>bool IsFacing(Vector , float ) </code>
| Clear any movement target entity/position.
| ( vecTargetPosition, flAngleTolerance ) - returns true if the unit is within flAngleTolerance degrees of the target position
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeRange | SetSightConeRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetBlocking | SetBlocking]]
| <code>void SetSightConeRange(float ) </code>
| <code>void SetBlocking(bool ) </code>
| ( fRange ) - set range of unit's sight cone
| ( bShouldBlock ) - Set the blocking state of this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMaxSpeed | SetMaxSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMaxSpeed | SetMaxSpeed]]
Line 3,660: Line 3,645:
| ( flMaxSpeed ) - sets unit's max speed
| ( flMaxSpeed ) - sets unit's max speed
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeRange | GetSightConeRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetEntity | SetMovementTargetEntity]]
| <code>float GetSightConeRange() </code>
| <code>void SetMovementTargetEntity(handle , float ) </code>
| returns range of unit's sight cone
| ( hTargetEntity, flTargetRange ) - Try to move this unit to the given range from the target entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetTurnRate | GetTurnRate]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetPosition | SetMovementTargetPosition]]
| <code>float GetTurnRate() </code>
| <code>void SetMovementTargetPosition(Vector , float ) </code>
| returns unit's turn rate in degrees per second
| ( vecTargetPosition, flTargetRange ) - Try to move this unit to the given range from the target point.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSensingSphereRange | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeAngle | SetSightConeAngle]]
| <code>void SetSightConeAngle(float ) </code>
| ( flAngleDegrees ) - sets angle in which the unit can see things up to sight range
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeRange | SetSightConeRange]]
| <code>void SetSightConeRange(float ) </code>
| ( fRange ) - set range of unit's sight cone
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetTurnRate | SetTurnRate]]
| <code>void SetTurnRate(float ) </code>
| ( flTurnRate ) - sets unit's turn rate in degrees per second
|}
|}


Line 3,681: Line 3,678:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomHeroMaxLevel | SetCustomHeroMaxLevel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.ClientLoadGridNav | ClientLoadGridNav]]
| <code>void SetCustomHeroMaxLevel(int maxLevel) </code>
| <code>void ClientLoadGridNav() </code>
| Allows definition of the max level heroes can achieve (default is 25).
| Tell clients that they need to load gridnav information. Used for things like allowing clients to identify valid locations to place buildings.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetUseCustomHeroLevels | SetUseCustomHeroLevels]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetAlwaysShowPlayerInventory | SetAlwaysShowPlayerInventory]]
| <code>void SetUseCustomHeroLevels(bool ) </code>
| <code>void SetAlwaysShowPlayerInventory(bool ) </code>
| Turn on custom-defined XP values for hero level ups. The ''table'' should be defined before switching this on.
| Show the player hero's inventory in the HUD, regardless of what unit is selected.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBotThinkingEnabled | SetBotThinkingEnabled]]
| <code>void SetBotThinkingEnabled(bool ) </code>
| Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBuybackEnabled | SetBuybackEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBuybackEnabled | SetBuybackEnabled]]
Line 3,693: Line 3,694:
| Enables or disables buyback completely
| Enables or disables buyback completely
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomXPRequiredToReachNextLevel | SetCustomXPRequiredToReachNextLevel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCameraDistanceOverride | SetCameraDistanceOverride]]
| <code>void SetCustomXPRequiredToReachNextLevel(handle ) </code>
| <code>void SetCameraDistanceOverride(float ) </code>
| Allows definition of a ''table'' of hero XP values.
| Set a different camera distance; dota default is 1134.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBotThinkingEnabled | SetBotThinkingEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCooldownEnabled | SetCustomBuybackCooldownEnabled]]
| <code>void SetBotThinkingEnabled(bool ) </code>
| <code>void SetCustomBuybackCooldownEnabled(bool ) </code>
| Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc.
| Turns on capability to define custom buyback cooldowns.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCostEnabled | SetCustomBuybackCostEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCostEnabled | SetCustomBuybackCostEnabled]]
Line 3,705: Line 3,706:
| Turns on capability to define custom buyback costs.
| Turns on capability to define custom buyback costs.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesVisible | SetTopBarTeamValuesVisible]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomHeroMaxLevel | SetCustomHeroMaxLevel]]
| <code>void SetTopBarTeamValuesVisible(bool ) </code>
| <code>void SetCustomHeroMaxLevel(int maxLevel) </code>
| Turning on/off the team values on the top game bar.
| Allows definition of the max level heroes can achieve (default is 25).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesOverride | SetTopBarTeamValuesOverride]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomXPRequiredToReachNextLevel | SetCustomXPRequiredToReachNextLevel]]
| <code>void SetTopBarTeamValuesOverride(bool ) </code>
| <code>void SetCustomXPRequiredToReachNextLevel(handle ) </code>
| Override the values of the team values on the top game bar.
| Allows definition of a ''table'' of hero XP values.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetAlwaysShowPlayerInventory | SetAlwaysShowPlayerInventory]]
| <code>void SetAlwaysShowPlayerInventory(bool ) </code>
| Show the player hero's inventory in the HUD, regardless of what unit is selected.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRemoveIllusionsOnDeath | SetRemoveIllusionsOnDeath]]
| <code>void SetRemoveIllusionsOnDeath(bool ) </code>
| Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.ClientLoadGridNav | ClientLoadGridNav]]
| <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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetFogOfWarDisabled | SetFogOfWarDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetFogOfWarDisabled | SetFogOfWarDisabled]]
Line 3,729: Line 3,718:
| Turn the fog of war on or off.
| Turn the fog of war on or off.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRecommendedItemsDisabled | SetRecommendedItemsDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetGoldSoundDisabled | SetGoldSoundDisabled]]
| <code>void SetGoldSoundDisabled(bool ) </code>
| Turn the sound when gold is acquired off/on. Takes a ''bool''.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetOverrideSelectionEntity | SetOverrideSelectionEntity]]
| <code>void SetOverrideSelectionEntity(handle unit) </code>
| Set an override for the default selection entity, instead of each player's hero.
|-
| [[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''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetGoldSoundDisabled | SetGoldSoundDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRemoveIllusionsOnDeath | SetRemoveIllusionsOnDeath]]
| <code>void SetGoldSoundDisabled(bool ) </code>
| <code>void SetRemoveIllusionsOnDeath(bool ) </code>
| Turn the sound when gold is acquired off/on. Takes a ''bool''.
| Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTowerBackdoorProtectionEnabled | SetTowerBackdoorProtectionEnabled]]
| <code>void SetTowerBackdoorProtectionEnabled(bool ) </code>
| Enables/Disables tower backdoor protection
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValue | SetTopBarTeamValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValue | SetTopBarTeamValue]]
Line 3,745: Line 3,738:
| Set the team values on the top game bar.
| Set the team values on the top game bar.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCooldownEnabled | SetCustomBuybackCooldownEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesOverride | SetTopBarTeamValuesOverride]]
| <code>void SetCustomBuybackCooldownEnabled(bool ) </code>
| <code>void SetTopBarTeamValuesOverride(bool ) </code>
| Turns on capability to define custom buyback cooldowns.
| Override the values of the team values on the top game bar.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesVisible | SetTopBarTeamValuesVisible]]
| <code>void SetTopBarTeamValuesVisible(bool ) </code>
| Turning on/off the team values on the top game bar.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetOverrideSelectionEntity | SetOverrideSelectionEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTowerBackdoorProtectionEnabled | SetTowerBackdoorProtectionEnabled]]
| <code>void SetOverrideSelectionEntity(handle unit) </code>
| <code>void SetTowerBackdoorProtectionEnabled(bool ) </code>
| Set an override for the default selection entity, instead of each player's hero.
| Enables/Disables tower backdoor protection
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCameraDistanceOverride | SetCameraDistanceOverride]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetUseCustomHeroLevels | SetUseCustomHeroLevels]]
| <code>void SetCameraDistanceOverride(float ) </code>
| <code>void SetUseCustomHeroLevels(bool ) </code>
| Set a different camera distance; dota default is 1134.
| Turn on custom-defined XP values for hero level ups. The ''table'' should be defined before switching this on.
|}
|}


Line 3,766: Line 3,763:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceString | SetTextReplaceString]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.AddSubquest | AddSubquest]]
| <code>void SetTextReplaceString(string ) </code>
| <code>void AddSubquest(handle ) </code>
| Set the text replace ''string'' for this quest
| Add a subquest to this quest
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.CompleteQuest | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.RemoveSubquest | RemoveSubquest]]
| <code>void RemoveSubquest(handle ) </code>
| Remove a subquest from this quest
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceValue | SetTextReplaceValue]]
| <code>void SetTextReplaceValue(int , int ) </code>
| Set a quest value
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquest | GetSubquest]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquest | GetSubquest]]
Line 3,790: Line 3,779:
| Finds a subquest from this quest by name
| Finds a subquest from this quest by name
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.AddSubquest | AddSubquest]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.RemoveSubquest | RemoveSubquest]]
| <code>void AddSubquest(handle ) </code>
| <code>void RemoveSubquest(handle ) </code>
| Add a subquest to this quest
| Remove a subquest from this quest
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceString | SetTextReplaceString]]
| <code>void SetTextReplaceString(string ) </code>
| Set the text replace ''string'' for this quest
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceValue | SetTextReplaceValue]]
| <code>void SetTextReplaceValue(int , int ) </code>
| Set a quest value
|}
|}


Line 3,802: Line 3,799:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.CompleteSubquest | CompleteSubquest]]
| <code>void CompleteSubquest() </code>
| Mark this subquest complete
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceString | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.CompleteSubquest | CompleteSubquest]]
| <code>void CompleteSubquest() </code>
| Mark this subquest complete
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceValue | SetTextReplaceValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceValue | SetTextReplaceValue]]
Line 3,836: Line 3,833:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.DeleteCreatedSpawnGroups | DeleteCreatedSpawnGroups]]
| <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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.ForceSpawn | ForceSpawn]]
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.ForceSpawn | ForceSpawn]]
Line 3,848: Line 3,849:
| <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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.DeleteCreatedSpawnGroups | DeleteCreatedSpawnGroups]]
| <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.
|}
|}


Line 3,862: Line 3,859:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAnimation | SetAnimation]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddImpulseAtPosition | AddImpulseAtPosition]]
| <code>void SetAnimation(string ) </code>
| <code>void AddImpulseAtPosition(Vector , Vector ) </code>
| Pass ''string'' for the animation to play on this model
| Apply an impulse at a worldspace position to the physics
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetVelocity | SetVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddVelocity | AddVelocity]]
| <code>void SetVelocity(Vector velocity) </code>
| <code>void AddVelocity(Vector , Vector ) </code>
| No Description Set
| Add linear and angular velocity to the physics object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetBodyGroup | SetBodyGroup]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.DetachFromParent | DetachFromParent]]
| <code>void SetBodyGroup(string ) </code>
| <code>void DetachFromParent() </code>
| No Description Set
| Detach from its parent
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddImpulseAtPosition | AddImpulseAtPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.GetSequence | GetSequence]]
| <code>void AddImpulseAtPosition(Vector , Vector ) </code>
| <code><> GetSequence() </code>
| Apply an impulse at a worldspace position to the physics
| Returns the active sequence
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetMaterialGroup | SetMaterialGroup]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.IsAttachedToParent | IsAttachedToParent]]
| <code>void SetMaterialGroup(utlstringtoken ) </code>
| <code>bool IsAttachedToParent() </code>
| No Description Set
| Is attached to parent
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAngularVelocity | SetAngularVelocity]]
| <code>void SetAngularVelocity(Vector ) </code>
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.LookupSequence | LookupSequence]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.LookupSequence | LookupSequence]]
Line 3,894: Line 3,887:
| Returns the duration in seconds of the specified sequence
| Returns the duration in seconds of the specified sequence
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddVelocity | AddVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAngularVelocity | SetAngularVelocity]]
| <code>void AddVelocity(Vector , Vector ) </code>
| <code>void SetAngularVelocity(Vector ) </code>
| Add linear and angular velocity to the physics object
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.IsAttachedToParent | IsAttachedToParent]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAnimation | SetAnimation]]
| <code>bool IsAttachedToParent() </code>
| <code>void SetAnimation(string ) </code>
| Is attached to parent
| Pass ''string'' for the animation to play on this model
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.DetachFromParent | DetachFromParent]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetBodyGroup | SetBodyGroup]]
| <code>void DetachFromParent() </code>
| <code>void SetBodyGroup(string ) </code>
| Detach from its parent
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.GetSequence | GetSequence]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetMaterialGroup | SetMaterialGroup]]
| <code><> GetSequence() </code>
| <code>void SetMaterialGroup(utlstringtoken ) </code>
| Returns the active sequence
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetVelocity | SetVelocity]]
| <code>void SetVelocity(Vector velocity) </code>
| No Description Set
|}
|}


Line 3,918: Line 3,915:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentAngles | GetAttachmentAngles]]
| <code>Vector GetAttachmentAngles(int ) </code>
| Get the attachement id's angles as a p,y,r ''vector''
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentOrigin | GetAttachmentOrigin]]
| <code>Vector GetAttachmentOrigin(int ) </code>
| Get the attachement id's origin ''vector''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.IsSequenceFinished | IsSequenceFinished]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.IsSequenceFinished | IsSequenceFinished]]
Line 3,926: Line 3,931:
| <code>int ScriptLookupAttachment(string ) </code>
| <code>int ScriptLookupAttachment(string ) </code>
| Get the named attachment id
| Get the named attachment id
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetBodygroup | SetBodygroup]]
| <code>void SetBodygroup(int , int ) </code>
| Sets a bodygroup
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetModelScale | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentAngles | GetAttachmentAngles]]
| <code>Vector GetAttachmentAngles(int ) </code>
| Get the attachement id's angles as a p,y,r ''vector''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetPoseParameter | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentOrigin | GetAttachmentOrigin]]
| <code>Vector GetAttachmentOrigin(int ) </code>
| Get the attachement id's origin ''vector''
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetBodygroup | SetBodygroup]]
| <code>void SetBodygroup(int , int ) </code>
| Sets a bodygroup
|}
|}


Line 3,972: Line 3,969:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.ProjectileDodge | ProjectileDodge]]
| <code>void ProjectileDodge(handle ) </code>
| Makes the specified unit dodge projectiles
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateLinearProjectile | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateTrackingProjectile | CreateTrackingProjectile]]
| <code>void CreateTrackingProjectile(handle ) </code>
| Creates a tracking projectile
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.DestroyLinearProjectile | DestroyLinearProjectile]]
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.DestroyLinearProjectile | DestroyLinearProjectile]]
Line 3,985: Line 3,982:
| Destroys the linear projectile matching the argument ID
| Destroys the linear projectile matching the argument ID
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateTrackingProjectile | CreateTrackingProjectile]]
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.ProjectileDodge | ProjectileDodge]]
| <code>void CreateTrackingProjectile(handle ) </code>
| <code>void ProjectileDodge(handle ) </code>
| Creates a tracking projectile
| Makes the specified unit dodge projectiles
|}
|}


Line 3,997: Line 3,994:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Disable | Disable]]
| <code>void Disable() </code>
| Disable the trigger
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Enable | Enable]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Enable | Enable]]
Line 4,005: Line 4,006:
| <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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Disable | Disable]]
| <code>void Disable() </code>
| Disable the trigger
|}
|}


Line 4,018: Line 4,015:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntity | SpawnEntity]]
| <code>void SpawnEntity() </code>
| Create an entity at the location of the maker
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtEntityOrigin | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtNamedEntityOrigin | SpawnEntityAtNamedEntityOrigin]]
| <code>void SpawnEntityAtNamedEntityOrigin(string ) </code>
| Create an entity at the location of a named entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtLocation | SpawnEntityAtLocation]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtLocation | SpawnEntityAtLocation]]
Line 4,031: Line 4,028:
| 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)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntity | SpawnEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtNamedEntityOrigin | SpawnEntityAtNamedEntityOrigin]]
| <code>void SpawnEntity() </code>
| <code>void SpawnEntityAtNamedEntityOrigin(string ) </code>
| Create an entity at the location of the maker
| Create an entity at the location of a named entity
|}
|}


Line 4,069: Line 4,066:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.AddResource | AddResource]]
| <code>void AddResource(string ) </code>
| Precaches a specific resource
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.GetValue | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.AddResource | AddResource]]
| <code>void AddResource(string ) </code>
| Precaches a specific resource
|}
|}


Line 4,102: Line 4,099:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleAlwaysSimulate | SetParticleAlwaysSimulate]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticle | CreateParticle]]
| <code>void SetParticleAlwaysSimulate(int ) </code>
| <code>int CreateParticle(string particleName, int particleAttach, handle owningEntity) </code>
| No Description Set
| Creates a new particle effect
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControl | SetParticleControl]]
| <code>void SetParticleControl(int particleId, int controlIndex, Vector controlData) </code>
| Set the control point data for a control on a particle effect
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticleForPlayer | CreateParticleForPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticleForPlayer | CreateParticleForPlayer]]
Line 4,114: Line 4,107:
| Creates a new particle effect that only plays for the specified player
| Creates a new particle effect that only plays for the specified player
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.ReleaseParticleIndex | ReleaseParticleIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.GetParticleReplacement | GetParticleReplacement]]
| <code>string GetParticleReplacement(string , handle ) </code>
| No Description Set
|-
| [[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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.GetParticleReplacement | GetParticleReplacement]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleAlwaysSimulate | SetParticleAlwaysSimulate]]
| <code>string GetParticleReplacement(string , handle ) </code>
| <code>void SetParticleAlwaysSimulate(int ) </code>
| No Description Set
| No Description Set
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControl | SetParticleControl]]
| <code>void SetParticleControl(int particleId, int controlIndex, Vector controlData) </code>
| Set the control point data for a control on a particle effect
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControlEnt | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticle | CreateParticle]]
| <code>int CreateParticle(string particleName, int particleAttach, handle owningEntity) </code>
| Creates a new particle effect
|}
|}


Line 4,138: Line 4,135:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetAllHeroes | GetAllHeroes]]
| <code>table GetAllHeroes() </code>
| Returns all the heroes in the world
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHero | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetAllHeroes | GetAllHeroes]]
| <code>table GetAllHeroes() </code>
| Returns all the heroes in the world
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHeroCount | GetHeroCount]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHeroCount | GetHeroCount]]
Line 4,159: Line 4,156:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.AddOutput | AddOutput]]
| <code>void AddOutput(string , string ) </code>
| Add an output
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.Init | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.AddOutput | AddOutput]]
| <code>void AddOutput(string , string ) </code>
| Add an output
|}
|}


Line 4,176: Line 4,173:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetVolumetrics | SetVolumetrics]]
| <code>void SetVolumetrics(bool , float , float , int , float ) </code>
| Turn on/off light volumetrics: ''bool'' bOn, ''float'' flIntensity, ''float'' flNoise, ''int'' nPlanes, ''float'' flPlaneOffset
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetFarRange | SetFarRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetFarRange | SetFarRange]]
Line 4,185: Line 4,178:
| Set light maximum range
| Set light maximum range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetQuadraticAttenuation | SetQuadraticAttenuation]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetLinearAttenuation | SetLinearAttenuation]]
| <code>void SetQuadraticAttenuation(float ) </code>
| <code>void SetLinearAttenuation(float ) </code>
| Set light quadratic attenuation value
| Set light linear attenuation value
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetNearRange | SetNearRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetNearRange | SetNearRange]]
Line 4,193: Line 4,186:
| Set light minimum range
| Set light minimum range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetLinearAttenuation | SetLinearAttenuation]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetQuadraticAttenuation | SetQuadraticAttenuation]]
| <code>void SetLinearAttenuation(float ) </code>
| <code>void SetQuadraticAttenuation(float ) </code>
| Set light linear attenuation value
| Set light quadratic attenuation value
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetVolumetrics | SetVolumetrics]]
| <code>void SetVolumetrics(bool , float , float , int , float ) </code>
| Turn on/off light volumetrics: ''bool'' bOn, ''float'' flIntensity, ''float'' flNoise, ''int'' nPlanes, ''float'' flPlaneOffset
|}
|}


Line 4,206: Line 4,203:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryString | QueryString]]
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryColor | QueryColor]]
| <code>string QueryString(utlstringtoken , string ) </code>
| <code>Vector QueryColor(utlstringtoken , Vector ) </code>
| Query ''string'' data for this key
| Query color data for this key
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryNumber | QueryNumber]]
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryFloat | QueryFloat]]
| <code>float QueryNumber(utlstringtoken , float ) </code>
| <code>float QueryFloat(utlstringtoken , float ) </code>
| Query number data for this key
| Query ''float'' data for this key
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryInt | QueryInt]]
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryInt | QueryInt]]
Line 4,218: Line 4,215:
| Query ''int'' data for this key
| Query ''int'' data for this key
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryColor | QueryColor]]
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryNumber | QueryNumber]]
| <code>Vector QueryColor(utlstringtoken , Vector ) </code>
| <code>float QueryNumber(utlstringtoken , float ) </code>
| Query color data for this key
| Query number data for this key
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryString | QueryString]]
| <code>string QueryString(utlstringtoken , string ) </code>
| Query ''string'' data for this key
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryVector | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryFloat | QueryFloat]]
| <code>float QueryFloat(utlstringtoken , float ) </code>
| Query ''float'' data for this key
|}
|}


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


=== CToneMapControllerComponent ===
=== CToneMapControllerComponent ===
Line 4,429: Line 4,426:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMinExposure | GetMinExposure]]
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetBloomScale | GetBloomScale]]
| <code>float GetMinExposure() </code>
| <code>float GetBloomScale() </code>
| Gets min exposure for this tonemap controller
| Gets bloomscale for this tonemap controller
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMaxExposure | GetMaxExposure]]
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMaxExposure | GetMaxExposure]]
Line 4,437: Line 4,434:
| Gets max exposure for this tonemap controller
| Gets max exposure for this tonemap controller
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetBloomScale | GetBloomScale]]
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMinExposure | GetMinExposure]]
| <code>float GetBloomScale() </code>
| <code>float GetMinExposure() </code>
| Gets bloomscale for this tonemap controller
| Gets min exposure for this tonemap controller
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetBloomScale | SetBloomScale]]
| <code>void SetBloomScale(float ) </code>
| Sets bloom scale for this tonemap controller
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetMaxExposure | SetMaxExposure]]
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetMaxExposure | SetMaxExposure]]
Line 4,448: Line 4,449:
| <code>void SetMinExposure(float ) </code>
| <code>void SetMinExposure(float ) </code>
| Sets min exposure for this tonemap controller
| Sets min exposure for this tonemap controller
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetBloomScale | SetBloomScale]]
| <code>void SetBloomScale(float ) </code>
| Sets bloom scale for this tonemap controller
|}
|}


Line 4,462: Line 4,459:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VertArrow | VertArrow]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Axis | Axis]]
| <code>void VertArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| <code>void Axis(Vector , Quaternion , float , bool , float ) </code>
| Draws a vertical arrow. Specify endpoint's in world space.
| Draws an axis. Specify origin + orientation in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Sphere | Sphere]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Box | Box]]
| <code>void Sphere(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void Box(Vector , Vector , int , int , int , int , bool , float ) </code>
| Draws a wireframe sphere. Specify center in world space.
| Draws a world-space axis-aligned box. Specify bounds in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.YawArrow | YawArrow]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.BoxAngles | BoxAngles]]
| <code>void YawArrow(Vector , float , float , float , int , int , int , int , bool , float ) </code>
| <code>void BoxAngles(Vector , Vector , Vector , Quaternion , int , int , int , int , bool , float ) </code>
| Draws a arrow associated with a specific yaw. Specify endpoint's in world space.
| Draws an oriented box at the origin. Specify bounds in local space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Capsule | Capsule]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Capsule | Capsule]]
Line 4,478: Line 4,475:
| Draws a capsule. Specify base in world space.
| Draws a capsule. Specify base in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SweptBox | SweptBox]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Circle | Circle]]
| <code>void SweptBox(Vector , Vector , Vector , Vector , Quaternion , int , int , int , int , float ) </code>
| <code>void Circle(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| Draws a swept box. Specify endpoint's in world space and the bounds in local space.
| Draws a circle. Specify center in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntitySkeleton | EntitySkeleton]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.CircleScreenOriented | CircleScreenOriented]]
| <code>void EntitySkeleton(ehandle , float ) </code>
| <code>void CircleScreenOriented(Vector , float , int , int , int , int , bool , float ) </code>
| Draws the skeleton of the entity
| Draws a circle oriented to the screen. Specify center in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line2D | Line2D]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cone | Cone]]
| <code>void Line2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| <code>void Cone(Vector , Vector , float , float , int , int , int , int , bool , float ) </code>
| Draws a line between two point's in screenspace
| Draws a wireframe cone. Specify endpoint and direction in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Texture | Texture]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross | Cross]]
| <code>void Texture(string , Vector2D , Vector2D , int , int , int , int , Vector2D , Vector2D , float ) </code>
| <code>void Cross(Vector , float , int , int , int , int , bool , float ) </code>
| Draws a screen-space texture. Coordinates are in pixels.
| Draws a screen-aligned cross. Specify origin in world space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAxis | EntityAxis]]
| <code>void EntityAxis(ehandle , float , bool , float ) </code>
| Draws the axis of the entity origin
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3D | Cross3D]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3D | Cross3D]]
Line 4,502: Line 4,495:
| Draws a world-aligned cross. Specify origin in world space.
| Draws a world-aligned cross. Specify origin in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushAndClearDebugOverlayScope | PushAndClearDebugOverlayScope]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3DOriented | Cross3DOriented]]
| <code>void PushAndClearDebugOverlayScope(utlstringtoken ) </code>
| <code>void Cross3DOriented(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id.
| Draws an oriented cross. Specify origin in world space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Triangle | Triangle]]
| <code>void Triangle(Vector , Vector , Vector , int , int , int , int , bool , float ) </code>
| Draws a filled triangle. Specify vertices in world space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line | Line]]
| <code>void Line(Vector , Vector , int , int , int , int , bool , float ) </code>
| Draws a line between two point's
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.BoxAngles | BoxAngles]]
| <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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Axis | Axis]]
| <code>void Axis(Vector , Quaternion , float , bool , float ) </code>
| Draws an axis. Specify origin + orientation in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.DrawTickMarkedLine | DrawTickMarkedLine]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.DrawTickMarkedLine | DrawTickMarkedLine]]
Line 4,526: Line 4,503:
| Draws a dashed line. Specify endpoint's in world space.
| Draws a dashed line. Specify endpoint's in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.CircleScreenOriented | CircleScreenOriented]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAttachments | EntityAttachments]]
| <code>void CircleScreenOriented(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void EntityAttachments(ehandle , float ) </code>
| Draws a circle oriented to the screen. Specify center in world space.
| Draws the attachments of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross | Cross]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAxis | EntityAxis]]
| <code>void Cross(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void EntityAxis(ehandle , float , bool , float ) </code>
| Draws a screen-aligned cross. Specify origin in world space.
| Draws the axis of the entity origin
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityBounds | EntityBounds]]
| <code>void EntityBounds(ehandle , int , int , int , int , bool , float ) </code>
| Draws bounds of an entity
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntitySkeleton | EntitySkeleton]]
| <code>void EntitySkeleton(ehandle , float ) </code>
| Draws the skeleton of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityText | EntityText]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityText | EntityText]]
Line 4,538: Line 4,523:
| Draws text on an entity
| Draws text on an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Circle | Circle]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.FilledRect2D | FilledRect2D]]
| <code>void Circle(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| <code>void FilledRect2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| Draws a circle. Specify center in world space.
| Draws a screen-space filled 2D rectangle. Coordinates are in pixels.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.HorzArrow | HorzArrow]]
| <code>void HorzArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| Draws a horizontal arrow. Specify endpoint's in world space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line | Line]]
| <code>void Line(Vector , Vector , int , int , int , int , bool , float ) </code>
| Draws a line between two point's
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAttachments | EntityAttachments]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line2D | Line2D]]
| <code>void EntityAttachments(ehandle , float ) </code>
| <code>void Line2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| Draws the attachments of the entity
| Draws a line between two point's in screenspace
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PopDebugOverlayScope | PopDebugOverlayScope]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PopDebugOverlayScope | PopDebugOverlayScope]]
Line 4,550: Line 4,543:
| 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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cone | Cone]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushAndClearDebugOverlayScope | PushAndClearDebugOverlayScope]]
| <code>void Cone(Vector , Vector , float , float , int , int , int , int , bool , float ) </code>
| <code>void PushAndClearDebugOverlayScope(utlstringtoken ) </code>
| Draws a wireframe cone. Specify endpoint and direction in world space.
| Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Box | Box]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushDebugOverlayScope | PushDebugOverlayScope]]
| <code>void Box(Vector , Vector , int , int , int , int , bool , float ) </code>
| <code>void PushDebugOverlayScope(utlstringtoken ) </code>
| Draws a world-space axis-aligned box. Specify bounds in world space.
| Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3DOriented | Cross3DOriented]]
| <code>void Cross3DOriented(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| Draws an oriented cross. Specify origin in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.RemoveAllInScope | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityBounds | EntityBounds]]
| <code>void EntityBounds(ehandle , int , int , int , int , bool , float ) </code>
| Draws bounds of an entity
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VectorText3D | VectorText3D]]
| <code>void VectorText3D(Vector , Quaternion , string , int , int , int , int , bool , float ) </code>
| Draws 3D text. Specify origin + orientation in world space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.FilledRect2D | FilledRect2D]]
| <code>void FilledRect2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| Draws a screen-space filled 2D rectangle. Coordinates are in pixels.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SolidCone | SolidCone]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SolidCone | SolidCone]]
Line 4,582: Line 4,559:
| Draws a solid cone. Specify endpoint and direction in world space.
| Draws a solid cone. Specify endpoint and direction in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.UnitTestCycleOverlayRenderType | UnitTestCycleOverlayRenderType]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Sphere | Sphere]]
| <code>void UnitTestCycleOverlayRenderType() </code>
| <code>void Sphere(Vector , float , int , int , int , int , bool , float ) </code>
| Toggles the overlay render type, for unit tests
| Draws a wireframe sphere. Specify center in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.HorzArrow | HorzArrow]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SweptBox | SweptBox]]
| <code>void HorzArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| <code>void SweptBox(Vector , Vector , Vector , Vector , Quaternion , int , int , int , int , float ) </code>
| Draws a horizontal arrow. Specify endpoint's in world space.
| Draws a swept box. Specify endpoint's in world space and the bounds in local space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushDebugOverlayScope | PushDebugOverlayScope]]
| <code>void PushDebugOverlayScope(utlstringtoken ) </code>
| Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Text | 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.
|}
=== CBaseFlex ===
''No Description Set''
{| class="standard-table" style="width: 100%;"
! Function
! Signature
! Description
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetCurrentScene | GetCurrentScene]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Texture | Texture]]
| <code>handle GetCurrentScene() </code>
| <code>void Texture(string , Vector2D , Vector2D , int , int , int , int , Vector2D , Vector2D , float ) </code>
| Returns the instance of the oldest active scene entity '''(if any).
| Draws a screen-space texture. Coordinates are in pixels.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetSceneByIndex | GetSceneByIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Triangle | Triangle]]
| <code>void Triangle(Vector , Vector , Vector , int , int , int , int , bool , float ) </code>
| Draws a filled triangle. Specify vertices in world space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.UnitTestCycleOverlayRenderType | UnitTestCycleOverlayRenderType]]
| <code>void UnitTestCycleOverlayRenderType() </code>
| Toggles the overlay render type, for unit tests
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VectorText3D | VectorText3D]]
| <code>void VectorText3D(Vector , Quaternion , string , int , int , int , int , bool , float ) </code>
| Draws 3D text. Specify origin + orientation in world space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VertArrow | VertArrow]]
| <code>void VertArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| Draws a vertical arrow. Specify endpoint's in world space.
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.YawArrow | YawArrow]]
| <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.
|}
 
 
=== CBaseFlex ===
''No Description Set''
{| class="standard-table" style="width: 100%;"
! Function
! Signature
! Description
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetCurrentScene | GetCurrentScene]]
| <code>handle GetCurrentScene() </code>
| Returns the instance of the oldest active scene entity '''(if any).
|-
| [[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,624: Line 4,621:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPaused | IsPaused]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.AddBroadcastTeamTarget | AddBroadcastTeamTarget]]
| <code>bool IsPaused() </code>
| <code>void AddBroadcastTeamTarget(int ) </code>
| If this scene is currently paused.
| Adds a team (by index) to the broadcast list
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Cancel | Cancel]]
| <code>void Cancel() </code>
| Cancel scene playback
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.EstimateLength | EstimateLength]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.EstimateLength | EstimateLength]]
Line 4,632: Line 4,633:
| Returns length of this scene in seconds.
| Returns length of this scene in seconds.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.LoadSceneFromString | LoadSceneFromString]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindCamera | FindCamera]]
| <code>bool LoadSceneFromString(string , string ) </code>
| given a dummy scene name and a vcd ''string'', load the scene
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Start | Start]]
| <code>void Start(handle ) </code>
| Start scene playback, takes activatorEntity as param
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindCamera | FindCamera]]
| <code>handle FindCamera() </code>
| <code>handle FindCamera() </code>
| Get the camera
| Get the camera
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Cancel | Cancel]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindNamedEntity | FindNamedEntity]]
| <code>void Cancel() </code>
| <code>handle FindNamedEntity(string ) </code>
| Cancel scene playback
| given an entity reference, such as !target, get actual entity from scene object
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPaused | IsPaused]]
| <code>bool IsPaused() </code>
| If this scene is currently paused.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPlayingBack | IsPlayingBack]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPlayingBack | IsPlayingBack]]
Line 4,652: Line 4,649:
| If this scene is currently playing.
| If this scene is currently playing.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.AddBroadcastTeamTarget | AddBroadcastTeamTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.LoadSceneFromString | LoadSceneFromString]]
| <code>void AddBroadcastTeamTarget(int ) </code>
| <code>bool LoadSceneFromString(string , string ) </code>
| Adds a team (by index) to the broadcast list
| given a dummy scene name and a vcd ''string'', load the scene
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.RemoveBroadcastTeamTarget | RemoveBroadcastTeamTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.RemoveBroadcastTeamTarget | RemoveBroadcastTeamTarget]]
Line 4,660: Line 4,657:
| Removes a team (by index) from the broadcast list
| Removes a team (by index) from the broadcast list
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindNamedEntity | FindNamedEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Start | Start]]
| <code>handle FindNamedEntity(string ) </code>
| <code>void Start(handle ) </code>
| given an entity reference, such as !target, get actual entity from scene object
| Start scene playback, takes activatorEntity as param
|}
|}


Line 4,673: Line 4,670:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsTraversable | IsTraversable]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterX | GridPosToWorldCenterX]]
| <code>bool IsTraversable(Vector ) </code>
| <code>float GridPosToWorldCenterX(int ) </code>
| Checks whether the given position is traversable
| Get the X position of the center of a given X index
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsNearbyTree | IsNearbyTree]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterY | GridPosToWorldCenterY]]
| <code>bool IsNearbyTree(Vector , float , bool ) </code>
| <code>float GridPosToWorldCenterY(int ) </code>
| (position, radius, checkFullTreeRadius?) Checks whether there are any trees overlapping the given point
| Get the Y position of the center of a given Y index
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsBlocked | IsBlocked]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsBlocked | IsBlocked]]
Line 4,685: Line 4,682:
| Checks whether the given position is blocked
| Checks whether the given position is blocked
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosX | WorldToGridPosX]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsNearbyTree | IsNearbyTree]]
| <code>bool IsNearbyTree(Vector , float , bool ) </code>
| (position, radius, checkFullTreeRadius?) Checks whether there are any trees overlapping the given point
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsTraversable | IsTraversable]]
| <code>bool IsTraversable(Vector ) </code>
| Checks whether the given position is traversable
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.RegrowAllTrees | RegrowAllTrees]]
| <code>void RegrowAllTrees() </code>
| Causes all trees in the map to regrow
|-
| [[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
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterX | GridPosToWorldCenterX]]
| <code>float GridPosToWorldCenterX(int ) </code>
| Get the X position of the center of a given X index
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosY | 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
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterY | GridPosToWorldCenterY]]
| <code>float GridPosToWorldCenterY(int ) </code>
| Get the Y position of the center of a given Y index
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.RegrowAllTrees | RegrowAllTrees]]
| <code>void RegrowAllTrees() </code>
| Causes all trees in the map to regrow
|}
|}


Line 4,715: Line 4,712:
! Signature  
! Signature  
! Description  
! Description  
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetBool | GetBool]]
| <code>table GetBool(string variableName) </code>
| GetBool(name) : returns the convar as a boolean flag.
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetCommandClient | GetCommandClient]]
| <code>handle GetCommandClient() </code>
| GetCommandClient() : returns the player who issued this console command.
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetDOTACommandClient | GetDOTACommandClient]]
| <code>handle GetDOTACommandClient() </code>
| GetDOTACommandClient() : returns the DOTA player who issued this console command.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetFloat | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetInt | GetInt]]
| <code>table GetInt(string ) </code>
| GetInt(name) : returns the convar as an ''int''. May return ''nil'' if no such convar.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetStr | 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.
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetStr | SetStr]]
| <code>void SetStr(string , string ) </code>
| SetStr(name, val) : sets the value of the convar to the ''string''.
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetInt | SetInt]]
| <code>void SetInt(string , int ) </code>
| SetInt(name, val) : sets the value of the convar to the ''int''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.RegisterCommand | RegisterCommand]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.RegisterCommand | RegisterCommand]]
Line 4,736: Line 4,741:
| RegisterCommand(name, fn, helpString, flags) : register a console command.
| RegisterCommand(name, fn, helpString, flags) : register a console command.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetDOTACommandClient | GetDOTACommandClient]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.RegisterConvar | RegisterConvar]]
| <code>handle GetDOTACommandClient() </code>
| <code>void RegisterConvar(string name, string defaultValue, string helpText, int flags) </code>
| GetDOTACommandClient() : returns the DOTA player who issued this console command.
| RegisterConvar(name, defaultValue, helpString, flags): register a new console variable.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetCommandClient | GetCommandClient]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetBool | SetBool]]
| <code>handle GetCommandClient() </code>
| <code>void SetBool(string variableName, bool value) </code>
| GetCommandClient() : returns the player who issued this console command.
| SetBool(name, val) : sets the value of the convar to the ''bool''.
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetInt | GetInt]]
| <code>table GetInt(string ) </code>
| GetInt(name) : returns the convar as an ''int''. May return ''nil'' if no such convar.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetFloat | SetFloat]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetFloat | SetFloat]]
Line 4,752: Line 4,753:
| SetFloat(name, val) : sets the value of the convar to the ''float''.
| SetFloat(name, val) : sets the value of the convar to the ''float''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.RegisterConvar | RegisterConvar]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetInt | SetInt]]
| <code>void RegisterConvar(string name, string defaultValue, string helpText, int flags) </code>
| <code>void SetInt(string , int ) </code>
| RegisterConvar(name, defaultValue, helpString, flags): register a new console variable.
| SetInt(name, val) : sets the value of the convar to the ''int''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetBool | GetBool]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetStr | SetStr]]
| <code>table GetBool(string variableName) </code>
| <code>void SetStr(string , string ) </code>
| GetBool(name) : returns the convar as a boolean flag.
| SetStr(name, val) : sets the value of the convar to the ''string''.
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetBool | SetBool]]
| <code>void SetBool(string variableName, bool value) </code>
| SetBool(name, val) : sets the value of the convar to the ''bool''.
|}
|}

Revision as of 22:26, 8 August 2014

Global

No Description Set

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


CBaseEntity

No Description Set

Function Signature Description
ApplyAbsVelocityImpulse void ApplyAbsVelocityImpulse(Vector ) Apply a Velocity Impulse
ApplyLocalAngularVelocityImpulse void ApplyLocalAngularVelocityImpulse(Vector ) Apply an Ang Velocity Impulse
EmitSound void EmitSound(string soundName) Plays a sound from this entity.
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.
EyeAngles QAngle EyeAngles() Get the qangles that this entity is looking at.
EyePosition Vector EyePosition() Get vector to eye position - absolute coords
FirstMoveChild handle FirstMoveChild() No Description Set
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.
GetAbsOrigin Vector GetAbsOrigin() No Description Set
GetAngles QAngle GetAngles() No Description Set
GetAnglesAsVector Vector GetAnglesAsVector() Get entity pitch, yaw, roll as a vector
GetAngularVelocity Vector GetAngularVelocity() Get the local angular velocity - returns a vector of pitch,yaw,roll
GetBaseVelocity Vector GetBaseVelocity() Get Base velocity
GetBoundingMaxs Vector GetBoundingMaxs() Get a vector containing max bounds, centered on object
GetBoundingMins Vector GetBoundingMins() Get a vector containing min bounds, centered on object
GetBounds table GetBounds() Get a table containing the 'Mins' & 'Maxs' vector bounds, centered on object
GetCenter Vector GetCenter() Get vector to center of object - absolute coords
GetChildren handle GetChildren() Get the entities parented to this entity.
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)
GetForwardVector Vector GetForwardVector() Get the forward vector of the entity
GetHealth int GetHealth() No Description Set
GetLocalAngularVelocity QAngle GetLocalAngularVelocity() Maybe local angvel
GetLocalVelocity Vector GetLocalVelocity() Get Entity relative velocity
GetMaxHealth int GetMaxHealth() No Description Set
GetModelName string GetModelName() Returns the name of the model
GetMoveParent handle GetMoveParent() If in hierarchy, retrieves the entity's parent
GetOrigin Vector GetOrigin() No Description Set
GetOwner handle GetOwner() Gets this entity's owner
GetOwnerEntity handle GetOwnerEntity() Get the owner entity, if there is one
GetRightVector Vector GetRightVector() Get the right vector of the entity
GetRootMoveParent handle GetRootMoveParent() If in hierarchy, walks up the hierarchy to find the root parent
GetSoundDuration float GetSoundDuration(string soundName, string actormodelname) Returns float duration of the sound. Takes soundname and optional actormodelname.
GetTeam int GetTeam() No Description Set
GetUpVector Vector GetUpVector() Get the up vector of the entity
GetVelocity Vector GetVelocity() No Description Set
IsAlive bool IsAlive() No Description Set.
IsPlayer bool IsPlayer() Is this a player entity?
Kill void Kill() No Description Set
NextMovePeer handle NextMovePeer() No Description Set
OverrideFriction void OverrideFriction(float , float ) Takes duration, value for a temporary override
PrecacheScriptSound void PrecacheScriptSound(string ) Precache a sound for later playing.
SetAbsOrigin void SetAbsOrigin(Vector origin) SetAbsOrigin
SetAngles void SetAngles(float pitch, float yaw, float roll) Set entity pitch, yaw, roll
SetAngularVelocity void SetAngularVelocity(float pitch, float yaw, float roll) Set the local angular velocity - takes float pitch,yaw,roll velocities
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').
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').
SetContextThink void SetContextThink(string , handle , float ) Set a think function on this entity.
SetForwardVector void SetForwardVector(Vector forwardVec) Set the orientation of the entity to have this forward forwardVec
SetFriction void SetFriction(float ) Set PLAYER friction, ignored for objects
SetGravity void SetGravity(float ) Set PLAYER gravity, ignored for objects
SetHealth void SetHealth(int hp) No Description Set
SetMaxHealth void SetMaxHealth(int maxHP) No Description Set
SetModel void SetModel(string modelName) No Description Set
SetOrigin void SetOrigin(Vector origin) No Description Set
SetOwner void SetOwner(handle owningEntity) Sets this entity's owner
SetParent void SetParent(handle , string ) Set the parent for this entity.
SetRenderColor void SetRenderColor(int , int , int ) SetRenderColor( r, g, b ): Sets the render color of the entity.
SetSize void SetSize(Vector , Vector ) No Description Set
SetTeam void SetTeam(int team) No Description Set
SetVelocity void SetVelocity(Vector ) No Description Set
StopSound void StopSound(string soundName) Stops a named sound playing from this entity.
Trigger void Trigger() Fires off this entity's OnTrigger responses


CEntities

No Description Set

Global accessor variable: Entities

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


CEntityInstance

No Description Set

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


CDOTABaseAbility

extends CBaseEntity

No Description Set

Function Signature Description
CastAbility void CastAbility() No Description Set
ContinueCasting bool ContinueCasting() No Description Set
CreateVisibilityNode void CreateVisibilityNode(Vector , float , float ) No Description Set
DecrementModifierRefCount void DecrementModifierRefCount() No Description Set
EndChannel void EndChannel(bool ) Param: bool bInterrupted
EndCooldown void EndCooldown() Clear the cooldown remaining on this ability.
GetAbilityDamage int GetAbilityDamage() No Description Set
GetAbilityDamageType int GetAbilityDamageType() No Description Set
GetAbilityIndex int GetAbilityIndex() No Description Set
GetAbilityName string GetAbilityName() No Description Set
GetAbilityTargetFlags int GetAbilityTargetFlags() No Description Set
GetAbilityTargetTeam int GetAbilityTargetTeam() No Description Set
GetAbilityTargetType int GetAbilityTargetType() No Description Set
GetAbilityType int GetAbilityType() No Description Set
GetAnimationIgnoresModelScale bool GetAnimationIgnoresModelScale() No Description Set
GetAssociatedPrimaryAbilities string GetAssociatedPrimaryAbilities() No Description Set
GetAssociatedSecondaryAbilities string GetAssociatedSecondaryAbilities() No Description Set
GetAutoCastState bool GetAutoCastState() No Description Set
GetBackswingTime float GetBackswingTime() No Description Set
GetBehavior int GetBehavior() No Description Set
GetCaster handle GetCaster() No Description Set
GetCastPoint float GetCastPoint() No Description Set
GetCastRange int GetCastRange() No Description Set
GetChannelledManaCostPerSecond int GetChannelledManaCostPerSecond(int ) No Description Set
GetChannelStartTime float GetChannelStartTime() No Description Set
GetChannelTime float GetChannelTime() No Description Set
GetCloneSource handle GetCloneSource() No Description Set
GetConceptRecipientType int GetConceptRecipientType() 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.
GetCooldownTime float GetCooldownTime() No Description Set
GetCooldownTimeRemaining float GetCooldownTimeRemaining() No Description Set
GetCursorPosition Vector GetCursorPosition() No Description Set
GetCursorTarget handle GetCursorTarget() No Description Set
GetCursorTargetingNothing bool GetCursorTargetingNothing() No Description Set
GetDuration float GetDuration() No Description Set
GetGoldCost int GetGoldCost(int ) No Description Set
GetGoldCostForUpgrade int GetGoldCostForUpgrade(int ) No Description Set
GetHeroLevelRequiredToUpgrade int GetHeroLevelRequiredToUpgrade() No Description Set
GetIntrinsicModifierName string GetIntrinsicModifierName() No Description Set
GetLevel int GetLevel() Get the current level of the ability
GetLevelSpecialValueFor table GetLevelSpecialValueFor(string , int ) No Description Set
GetManaCost int GetManaCost(int ) No Description Set
GetMaxLevel int GetMaxLevel() No Description Set
GetModifierValue float GetModifierValue() No Description Set
GetModifierValueBonus float GetModifierValueBonus() No Description Set
GetPlaybackRateOverride float GetPlaybackRateOverride() No Description Set
GetSharedCooldownName string GetSharedCooldownName() No Description Set
GetSpecialValueFor table GetSpecialValueFor(string ) No Description Set
GetStolenActivityModifier string GetStolenActivityModifier() No Description Set
GetToggleState bool GetToggleState() No Description Set
HeroXPChange bool HeroXPChange(float ) No Description Set
IncrementModifierRefCount void IncrementModifierRefCount() No Description Set
IsActivated bool IsActivated() No Description Set
IsAttributeBonus bool IsAttributeBonus() No Description Set
IsChanneling bool IsChanneling() Returns whether the ability is currently channeling.
IsCooldownReady bool IsCooldownReady() No Description Set
IsCosmetic bool IsCosmetic() No Description Set
IsFullyCastable bool IsFullyCastable() Returns whether the ability can be cast.
IsHidden bool IsHidden() No Description Set
IsHiddenWhenStolen bool IsHiddenWhenStolen() No Description Set
IsInAbilityPhase bool IsInAbilityPhase() Returns whether the ability is currently casting.
IsItem bool IsItem() No Description Set
IsOwnersGoldEnough bool IsOwnersGoldEnough(int ) No Description Set
IsOwnersGoldEnoughForUpgrade bool IsOwnersGoldEnoughForUpgrade() No Description Set
IsOwnersManaEnough bool IsOwnersManaEnough() No Description Set
IsPassive bool IsPassive() No Description Set
IsSharedWithTeammates bool IsSharedWithTeammates() No Description Set
IsStealable bool IsStealable() No Description Set
IsStolen bool IsStolen() No Description Set
IsToggle bool IsToggle() No Description Set
IsTrained bool IsTrained() No Description Set
MarkAbilityButtonDirty void MarkAbilityButtonDirty() Mark the ability button for this ability as needing a refresh
NumModifiersUsingAbility int NumModifiersUsingAbility() No Description Set
OnAbilityPhaseInterrupted void OnAbilityPhaseInterrupted() No Description Set
OnAbilityPhaseStart bool OnAbilityPhaseStart() No Description Set
OnAbilityPinged void OnAbilityPinged() No Description Set
OnChannelFinish void OnChannelFinish(bool ) No Description Set
OnChannelThink void OnChannelThink(float ) No Description Set
OnHeroCalculateStatBonus void OnHeroCalculateStatBonus() No Description Set
OnHeroLevelUp void OnHeroLevelUp() No Description Set
OnInventoryContentsChanged void OnInventoryContentsChanged() No Description Set
OnOwnerDied void OnOwnerDied() No Description Set
OnOwnerSpawned void OnOwnerSpawned() No Description Set
OnSpellStart void OnSpellStart() No Description Set
OnToggle void OnToggle() No Description Set
OnUpgrade void OnUpgrade() No Description Set
PayGoldCost void PayGoldCost() No Description Set
PayGoldCostForUpgrade void PayGoldCostForUpgrade() No Description Set
PayManaCost void PayManaCost() No Description Set
PlaysDefaultAnimWhenStolen bool PlaysDefaultAnimWhenStolen() No Description Set
ProcsMagicStick bool ProcsMagicStick() No Description Set
RefCountsModifiers bool RefCountsModifiers() No Description Set
RefundManaCost void RefundManaCost() No Description Set
ResetToggleOnRespawn bool ResetToggleOnRespawn() No Description Set
SetAbilityIndex void SetAbilityIndex(int ) No Description Set
SetActivated void SetActivated(bool ) No Description Set
SetChanneling void SetChanneling(bool ) No Description Set
SetHidden void SetHidden(bool ) No Description Set
SetInAbilityPhase void SetInAbilityPhase(bool ) No Description Set
SetLevel void SetLevel(int ) Sets the level of this ability.
SetOverrideCastPoint void SetOverrideCastPoint(float ) No Description Set
SetRefCountsModifiers void SetRefCountsModifiers(bool ) No Description Set
SetStolen void SetStolen(bool ) No Description Set
ShouldUseResources bool ShouldUseResources() No Description Set
SpeakAbilityConcept void SpeakAbilityConcept(int ) No Description Set
SpeakTrigger bool SpeakTrigger() No Description Set
StartCooldown void StartCooldown(float ) param: flCooldown
ToggleAbility void ToggleAbility() No Description Set
ToggleAutoCast void ToggleAutoCast() No Description Set
UpgradeAbility void UpgradeAbility() No Description Set
UseResources void UseResources(bool , bool , bool ) 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
GetContainer handle GetContainer() Get the container for this item.
GetCost int GetCost() No Description Set
GetCurrentCharges int GetCurrentCharges() Get the number of charges this item currently has.
GetInitialCharges int GetInitialCharges() Get the initial number of charges this item has.
GetPurchaser handle GetPurchaser() Get the purchaser for this item.
GetPurchaseTime float GetPurchaseTime() Get the purchase time of this item
GetShareability int GetShareability() No Description Set
IsPermanent bool IsPermanent() Is this a permanent item?
LaunchLoot void LaunchLoot(bool , float , float , Vector ) No Description Set
SetCurrentCharges void SetCurrentCharges(int ) Set the number of charges on this item
SetPurchaser void SetPurchaser(handle ) Set the purchaser of record for this item.
SetPurchaseTime void SetPurchaseTime(float ) Set the purchase time of this item
SetStacksWithOtherOwners void SetStacksWithOtherOwners(bool ) No Description Set
StacksWithOtherOwners bool StacksWithOtherOwners() No Description Set
Think void Think() Think this item


CDOTA_Item_Physical

No Description Set

Function Signature Description
GetContainedItem handle GetContainedItem() Returned the contained item.
GetCreationTime float GetCreationTime() Returns the game time when this item was created in the world
SetContainedItem void SetContainedItem(handle ) Set 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
GetHorn handle GetHorn() Is the Nian horn?
GetTail handle GetTail() Is the Nian's tail broken?
IsHornAlive bool IsHornAlive() Is the Nian's horn broken?
IsTailAlive bool IsTailAlive() Is the Nian's tail broken?


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
GetAssignedHero handle GetAssignedHero() Get the player's hero.
GetControlledRPGUnit handle GetControlledRPGUnit() Get the RPG unit this player controls.
GetPlayerID int GetPlayerID() Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
MakeRandomHeroSelection void MakeRandomHeroSelection() Randoms this player's hero.
SetKillCamUnit void SetKillCamUnit(handle ) Set the kill cam unit for this hero.
SetMusicStatus void SetMusicStatus(int nMusicStatus, float flIntensity) Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.


CDOTA_PlayerResource

No Description Set

Global accessor variable: PlayerResource

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


CDOTA_BaseNPC

No Description Set

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


CDOTA_BaseNPC_Hero

No Description Set

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


CDOTA_BaseNPC_Creature

No Description Set

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


CDOTA_BaseNPC_Building

No Description Set

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


CRPG_Unit

No Description Set

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


CDOTABaseGameMode

No Description Set

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


CDotaQuest

No Description Set

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


CDotaSubquestBase

No Description Set

Function Signature Description
CompleteSubquest void CompleteSubquest() Mark this subquest complete
SetTextReplaceString void SetTextReplaceString(string ) Set the text replace string for this subquest
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
DeleteCreatedSpawnGroups void DeleteCreatedSpawnGroups() DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this.
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.


CBodyComponent

No Description Set

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


CBaseAnimating

No Description Set

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


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
CreateLinearProjectile int CreateLinearProjectile(handle ) Creates a linear projectile and returns the projectile ID
CreateTrackingProjectile void CreateTrackingProjectile(handle ) Creates a tracking projectile
DestroyLinearProjectile void DestroyLinearProjectile(int ) Destroys the linear projectile matching the argument ID
ProjectileDodge void ProjectileDodge(handle ) Makes the specified unit dodge projectiles


CBaseTrigger

No Description Set

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


CEnvEntityMaker

No Description Set

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


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
AddResource void AddResource(string ) Precaches a specific resource
GetValue table GetValue(string ) Reads a spawn key


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
CreateParticle int CreateParticle(string particleName, int particleAttach, handle owningEntity) Creates a new 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
GetParticleReplacement string GetParticleReplacement(string , handle ) No Description Set
ReleaseParticleIndex void ReleaseParticleIndex(int particleId) Frees the specified particle index
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
SetParticleControlEnt void SetParticleControlEnt(int , int , handle , int , string , Vector , bool ) No Description Set


CScriptHeroList

No Description Set

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


CNativeOutputs

No Description Set

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


CEnvProjectedTexture

No Description Set

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


CInfoData

No Description Set

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


CToneMapControllerComponent

No Description Set

Function Signature Description
GetBloomScale float GetBloomScale() Gets bloomscale for this tonemap controller
GetMaxExposure float GetMaxExposure() Gets max exposure for this tonemap controller
GetMinExposure float GetMinExposure() Gets min exposure for this tonemap controller
SetBloomScale void SetBloomScale(float ) Sets bloom scale 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


CDebugOverlayScriptHelper

No Description Set

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


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


GridNav

No Description Set

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


Convars

No Description Set

Global accessor variable: ConVars

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