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

From Valve Developer Community
Jump to navigation Jump to search
(Dota_Lebot push: Updated Page)
(Dota_Lebot push: Updated Page)
Line 6: Line 6:
__TOC__
__TOC__
=== Global ===
=== Global ===
''No Description Set''
''Global functions.  These can be called without any class''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 13: Line 13:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.AngleDiff | AngleDiff]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.AngleDiff | AngleDiff]]
| <code>float AngleDiff(float , float ) </code>
| <code>float AngleDiff(float ang1, float ang2) </code>
| Returns the number of degrees difference between two yaw angles
| Returns the number of degrees difference between two yaw angles
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.AppendToLogFile | AppendToLogFile]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.AppendToLogFile | AppendToLogFile]]
| <code>void AppendToLogFile(string , string ) </code>
| <code>void AppendToLogFile(string a, string b) </code>
| Appends a ''string'' to a log file on the server
| Appends a ''string'' to a log file on the server
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ApplyDamage | ApplyDamage]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.ApplyDamage | ApplyDamage]]
| <code>float ApplyDamage(handle ) </code>
| <code>float ApplyDamage(handle DamageTable) </code>
| Pass ''table'' - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.
| Pass ''table'' - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.AxisAngleToQuaternion | AxisAngleToQuaternion]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.AxisAngleToQuaternion | AxisAngleToQuaternion]]
| <code>Quaternion AxisAngleToQuaternion(Vector , float ) </code>
| <code>Quaternion AxisAngleToQuaternion(Vector a, float b) </code>
| (''vector'',''float'') constructs a quaternion representing a rotation by angle around the specified ''vector'' axis
| (''vector'',''float'') constructs a quaternion representing a rotation by angle around the specified ''vector'' axis
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CancelEntityIOEvents | CancelEntityIOEvents]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CancelEntityIOEvents | CancelEntityIOEvents]]
| <code>void CancelEntityIOEvents(ehandle ) </code>
| <code>void CancelEntityIOEvents(ehandle a) </code>
| Create all I/O events for a particular entity
| Create all I/O events for a particular entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateEffect | CreateEffect]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateEffect | CreateEffect]]
| <code>bool CreateEffect(handle ) </code>
| <code>bool CreateEffect(handle a) </code>
| Pass ''table'' - Inputs: entity, effect
| Pass ''table'' - Inputs: entity, effect
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer | CreateHeroForPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer | CreateHeroForPlayer]]
| <code>handle CreateHeroForPlayer(string , handle ) </code>
| <code>handle CreateHeroForPlayer(string a, handle b) </code>
| Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero
| Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItem | CreateItem]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItem | CreateItem]]
| <code>handle CreateItem(string , handle , handle ) </code>
| <code>handle CreateItem(string item_name, handle owner, handle owner) </code>
| Create a DOTA item ( szScriptName, hParent, hOwner )
| Creates an item with classname <i>item_name</i> that <i>owner</i> can use.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionSync | CreateItemOnPositionSync]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionSync | CreateItemOnPositionSync]]
| <code>handle CreateItemOnPositionSync(Vector , handle ) </code>
| <code>handle CreateItemOnPositionSync(Vector a, handle b) </code>
| Create a physical item at a given location
| Create a physical item at a given location
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTrigger | CreateTrigger]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTrigger | CreateTrigger]]
| <code>handle CreateTrigger(Vector , Vector , Vector ) </code>
| <code>handle CreateTrigger(Vector a, Vector b, Vector c) </code>
| CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger
| CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTriggerRadiusApproximate | CreateTriggerRadiusApproximate]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTriggerRadiusApproximate | CreateTriggerRadiusApproximate]]
| <code>handle CreateTriggerRadiusApproximate(Vector , float ) </code>
| <code>handle CreateTriggerRadiusApproximate(Vector a, float b) </code>
| CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided
| CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByName | CreateUnitByName]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByName | CreateUnitByName]]
| <code>handle CreateUnitByName(string , Vector , bool , handle , handle , int ) </code>
| <code>handle CreateUnitByName(string a, Vector b, bool c, handle d, handle e, int f) </code>
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByNameAsync | CreateUnitByNameAsync]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByNameAsync | CreateUnitByNameAsync]]
| <code>int CreateUnitByNameAsync(string , Vector , bool , handle , handle , int , handle ) </code>
| <code>int CreateUnitByNameAsync(string a, Vector b, bool c, handle d, handle e, int f, handle g) </code>
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_getf | cvar_getf]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_getf | cvar_getf]]
| <code>float cvar_getf(string ) </code>
| <code>float cvar_getf(string a) </code>
| Gets the value of the given cvar, as a ''float''.
| Gets the value of the given cvar, as a ''float''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_setf | cvar_setf]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_setf | cvar_setf]]
| <code>bool cvar_setf(string , float ) </code>
| <code>bool cvar_setf(string a, float b) </code>
| Sets the value of the given cvar, as a ''float''.
| Sets the value of the given cvar, as a ''float''.
|-
|-
Line 77: Line 77:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBox | DebugDrawBox]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBox | DebugDrawBox]]
| <code>void DebugDrawBox(Vector , Vector , Vector , int , int , int , int , float ) </code>
| <code>void DebugDrawBox(Vector a, Vector b, Vector c, int d, int e, int f, int g, float h) </code>
| Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration )
| Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBoxDirection | DebugDrawBoxDirection]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBoxDirection | DebugDrawBoxDirection]]
| <code>void DebugDrawBoxDirection(Vector , Vector , Vector , Vector , Vector , float , float ) </code>
| <code>void DebugDrawBoxDirection(Vector a, Vector b, Vector c, Vector d, Vector e, float f, float g) </code>
| Draw a debug forward box (cent, min, max, forward, vRgb, a, duration)
| Draw a debug forward box (cent, min, max, forward, vRgb, a, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawCircle | DebugDrawCircle]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawCircle | DebugDrawCircle]]
| <code>void DebugDrawCircle(Vector , Vector , float , float , bool , float ) </code>
| <code>void DebugDrawCircle(Vector a, Vector b, float c, float d, bool e, float f) </code>
| Draw a debug circle (center, vRgb, a, rad, ztest, duration)
| Draw a debug circle (center, vRgb, a, rad, ztest, duration)
|-
|-
Line 93: Line 93:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine | DebugDrawLine]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine | DebugDrawLine]]
| <code>void DebugDrawLine(Vector , Vector , int , int , int , bool , float ) </code>
| <code>void DebugDrawLine(Vector a, Vector b, int c, int d, int e, bool f, float g) </code>
| Draw a debug overlay line (origin, target, r, g, b, ztest, duration)
| Draw a debug overlay line (origin, target, r, g, b, ztest, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine_vCol | DebugDrawLine_vCol]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine_vCol | DebugDrawLine_vCol]]
| <code>void DebugDrawLine_vCol(Vector , Vector , Vector , bool , float ) </code>
| <code>void DebugDrawLine_vCol(Vector a, Vector b, Vector c, bool d, float e) </code>
| Draw a debug line using color vec (start, end, vRgb, a, ztest, duration)
| Draw a debug line using color vec (start, end, vRgb, a, ztest, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawScreenTextLine | DebugDrawScreenTextLine]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawScreenTextLine | DebugDrawScreenTextLine]]
| <code>void DebugDrawScreenTextLine(float , float , int , string , int , int , int , int , float ) </code>
| <code>void DebugDrawScreenTextLine(float a, float b, int c, string d, int e, int f, int g, int h, float i) </code>
| Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration)
| Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawSphere | DebugDrawSphere]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawSphere | DebugDrawSphere]]
| <code>void DebugDrawSphere(Vector , Vector , float , float , bool , float ) </code>
| <code>void DebugDrawSphere(Vector a, Vector b, float c, float d, bool e, float f) </code>
| Draw a debug sphere (center, vRgb, a, rad, ztest, duration)
| Draw a debug sphere (center, vRgb, a, rad, ztest, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawText | DebugDrawText]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawText | DebugDrawText]]
| <code>void DebugDrawText(Vector , string , bool , float ) </code>
| <code>void DebugDrawText(Vector a, string b, bool c, float d) </code>
| Draw text in 3d (origin, text, bViewCheck, duration)
| Draw text in 3d (origin, text, bViewCheck, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugScreenTextPretty | DebugScreenTextPretty]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugScreenTextPretty | DebugScreenTextPretty]]
| <code>void DebugScreenTextPretty(float , float , int , string , int , int , int , int , float , string , int , bool ) </code>
| <code>void DebugScreenTextPretty(float a, float b, int c, string d, int e, int f, int g, int h, float i, string j, int k, bool l) </code>
| Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
| Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFire | DoEntFire]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFire | DoEntFire]]
| <code>void DoEntFire(string , string , string , float , handle , handle ) </code>
| <code>void DoEntFire(string a, string b, string c, float d, handle e, handle f) </code>
| EntFire: Generate an entity i/o event ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
| EntFire: Generate an entity i/o event ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFireByInstanceHandle | DoEntFireByInstanceHandle]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFireByInstanceHandle | DoEntFireByInstanceHandle]]
| <code>void DoEntFireByInstanceHandle(handle , string , string , float , handle , handle ) </code>
| <code>void DoEntFireByInstanceHandle(handle a, string b, string c, float d, handle e, handle f) </code>
| EntFireByHandle:Generate and entity i/o event
| EntFireByHandle:Generate and entity i/o event
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoIncludeScript | DoIncludeScript]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoIncludeScript | DoIncludeScript]]
| <code>bool DoIncludeScript(string , handle ) </code>
| <code>bool DoIncludeScript(string a, handle b) </code>
| Execute a script (internal)
| Execute a script (internal)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoScriptAssert | DoScriptAssert]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoScriptAssert | DoScriptAssert]]
| <code>void DoScriptAssert(bool , string ) </code>
| <code>void DoScriptAssert(bool a, string b) </code>
| ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog.
| ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoUniqueString | DoUniqueString]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoUniqueString | DoUniqueString]]
| <code>string DoUniqueString(string ) </code>
| <code>string DoUniqueString(string a) </code>
| UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to table's when not sure what keys are already in use in that table.
| UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to table's when not sure what keys are already in use in that table.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound | EmitGlobalSound]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound | EmitGlobalSound]]
| <code>void EmitGlobalSound(string ) </code>
| <code>void EmitGlobalSound(string a) </code>
| Play named sound for all players
| Play named sound for all players
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOn | EmitSoundOn]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOn | EmitSoundOn]]
| <code>void EmitSoundOn(string , handle ) </code>
| <code>void EmitSoundOn(string a, handle b) </code>
| Play named sound on Entity
| Play named sound on Entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnClient | EmitSoundOnClient]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnClient | EmitSoundOnClient]]
| <code>void EmitSoundOnClient(string , handle ) </code>
| <code>void EmitSoundOnClient(string a, handle b) </code>
| Play named sound only on the client for the passed in player
| Play named sound only on the client for the passed in player
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EntIndexToHScript | EntIndexToHScript]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.EntIndexToHScript | EntIndexToHScript]]
| <code>handle EntIndexToHScript(int ) </code>
| <code>handle EntIndexToHScript(int a) </code>
| Turn an entity index integer to an HScript representing that entity's script instance.
| Turn an entity index integer to an HScript representing that entity's script instance.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExecuteOrderFromTable | ExecuteOrderFromTable]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExecuteOrderFromTable | ExecuteOrderFromTable]]
| <code>void ExecuteOrderFromTable(handle ) </code>
| <code>void ExecuteOrderFromTable(handle a) </code>
| Issue an order from a script ''table''
| Issue an order from a script ''table''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExponentialDecay | ExponentialDecay]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExponentialDecay | ExponentialDecay]]
| <code>float ExponentialDecay(float , float , float ) </code>
| <code>float ExponentialDecay(float a, float b, float c) </code>
| Smooth curve decreasing slower as it approaches zero
| Smooth curve decreasing slower as it approaches zero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FileToString | FileToString]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.FileToString | FileToString]]
| <code>string FileToString(string ) </code>
| <code>string FileToString(string a) </code>
| Reads a ''string'' from a file to send to script
| Reads a ''string'' from a file to send to script
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindClearSpaceForUnit | FindClearSpaceForUnit]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindClearSpaceForUnit | FindClearSpaceForUnit]]
| <code>void FindClearSpaceForUnit(handle , Vector , bool ) </code>
| <code>void FindClearSpaceForUnit(handle a, Vector b, bool c) </code>
| Place a unit somewhere not already occupied.
| Place a unit somewhere not already occupied.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInRadius | FindUnitsInRadius]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInRadius | FindUnitsInRadius]]
| <code>table FindUnitsInRadius(int , Vector , handle , float , int , int , int , int , bool ) </code>
| <code>table FindUnitsInRadius(int a, Vector b, handle c, float d, int e, int f, int g, int h, bool i) </code>
| Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
| Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputNameOnly | FireEntityIOInputNameOnly]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputNameOnly | FireEntityIOInputNameOnly]]
| <code>void FireEntityIOInputNameOnly(ehandle , string ) </code>
| <code>void FireEntityIOInputNameOnly(ehandle a, string b) </code>
| Fire Entity's Action Input w/no data
| Fire Entity's Action Input w/no data
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputString | FireEntityIOInputString]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputString | FireEntityIOInputString]]
| <code>void FireEntityIOInputString(ehandle , string , string ) </code>
| <code>void FireEntityIOInputString(ehandle a, string b, string c) </code>
| Fire Entity's Action Input with passed String - you own the memory
| Fire Entity's Action Input with passed String - you own the memory
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputVec | FireEntityIOInputVec]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputVec | FireEntityIOInputVec]]
| <code>void FireEntityIOInputVec(ehandle , string , Vector ) </code>
| <code>void FireEntityIOInputVec(ehandle a, string b, Vector c) </code>
| Fire Entity's Action Input with passed ''Vector'' ( hEntity, szActionName, vector )
| Fire Entity's Action Input with passed ''Vector'' ( hEntity, szActionName, vector )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEvent | FireGameEvent]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEvent | FireGameEvent]]
| <code>void FireGameEvent(string , handle ) </code>
| <code>void FireGameEvent(string eventName, handle parameterTable) </code>
| Fire a game event.
| Fire a pre-defined event, which can be found either in custom_events.txt or in dota's resource/*.res
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEventLocal | FireGameEventLocal]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEventLocal | FireGameEventLocal]]
| <code>void FireGameEventLocal(string , handle ) </code>
| <code>void FireGameEventLocal(string a, handle b) </code>
| Fire a game event without broadcasting to the client.
| Fire a game event without broadcasting to the client.
|-
|-
Line 201: Line 201:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyBoostAmount | GetFrostyBoostAmount]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyBoostAmount | GetFrostyBoostAmount]]
| <code>float GetFrostyBoostAmount(int , int ) </code>
| <code>float GetFrostyBoostAmount(int a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyPointsForRound | GetFrostyPointsForRound]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyPointsForRound | GetFrostyPointsForRound]]
| <code>int GetFrostyPointsForRound(int , int , int ) </code>
| <code>int GetFrostyPointsForRound(int a, int b, int c) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyBoostAmount | GetGoldFrostyBoostAmount]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyBoostAmount | GetGoldFrostyBoostAmount]]
| <code>float GetGoldFrostyBoostAmount(int , int ) </code>
| <code>float GetGoldFrostyBoostAmount(int a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyPointsForRound | GetGoldFrostyPointsForRound]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyPointsForRound | GetGoldFrostyPointsForRound]]
| <code>int GetGoldFrostyPointsForRound(int , int , int ) </code>
| <code>int GetGoldFrostyPointsForRound(int a, int b, int c) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGroundPosition | GetGroundPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGroundPosition | GetGroundPosition]]
| <code>Vector GetGroundPosition(Vector , handle ) </code>
| <code>Vector GetGroundPosition(Vector a, handle b) </code>
| Returns the supplied position moved to the ground. Second parameter is an NPC for measuring movement collision hull offset.
| Returns the supplied position moved to the ground. Second parameter is an NPC for measuring movement collision hull offset.
|-
|-
Line 229: Line 229:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMaxOutputDelay | GetMaxOutputDelay]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMaxOutputDelay | GetMaxOutputDelay]]
| <code>float GetMaxOutputDelay(ehandle , string ) </code>
| <code>float GetMaxOutputDelay(ehandle a, string b) </code>
| Get the longest delay for all events attached to an output
| Get the longest delay for all events attached to an output
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysAngularVelocity | GetPhysAngularVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysAngularVelocity | GetPhysAngularVelocity]]
| <code>Vector GetPhysAngularVelocity(handle ) </code>
| <code>Vector GetPhysAngularVelocity(handle a) </code>
| Get Angular Velocity for VPHYS or normal object
| Get Angular Velocity for VPHYS or normal object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysVelocity | GetPhysVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysVelocity | GetPhysVelocity]]
| <code>Vector GetPhysVelocity(handle ) </code>
| <code>Vector GetPhysVelocity(handle a) </code>
| Get Velocity for VPHYS or normal object
| Get Velocity for VPHYS or normal object
|-
|-
Line 265: Line 265:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.InitLogFile | InitLogFile]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.InitLogFile | InitLogFile]]
| <code>void InitLogFile(string , string ) </code>
| <code>void InitLogFile(string a, string b) </code>
| If the given file doesn't exist, creates it with the given contents; does nothing if it exists
| If the given file doesn't exist, creates it with the given contents; does nothing if it exists
|-
|-
Line 273: Line 273:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsMarkedForDeletion | IsMarkedForDeletion]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsMarkedForDeletion | IsMarkedForDeletion]]
| <code>bool IsMarkedForDeletion(handle ) </code>
| <code>bool IsMarkedForDeletion(handle a) </code>
| Returns true if the entity is valid and marked for deletion.
| Returns true if the entity is valid and marked for deletion.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsValidEntity | IsValidEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsValidEntity | IsValidEntity]]
| <code>bool IsValidEntity(handle ) </code>
| <code>bool IsValidEntity(handle a) </code>
| Checks to see if the given hScript is a valid entity
| Checks to see if the given hScript is a valid entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ListenToGameEvent | ListenToGameEvent]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.ListenToGameEvent | ListenToGameEvent]]
| <code>int ListenToGameEvent(string , handle , handle ) </code>
| <code>int ListenToGameEvent(string a, handle b, handle c) </code>
| Register as a listener for a game event from script. ( szEventName, hFunctionNameToCall, hContext ){{tip|In addition to listening for [[Dota 2 Workshop Tools/Scripting/Built-In Engine Events|standard engine events]], you can also create your own events by placing them in /scripts/custom_events.txt.}}
| Register as a listener for a game event from script. ( szEventName, hFunctionNameToCall, hContext ){{tip|In addition to listening for [[Dota 2 Workshop Tools/Scripting/Built-In Engine Events|standard engine events]], you can also create your own events by placing them in /scripts/custom_events.txt.}}
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValues | LoadKeyValues]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValues | LoadKeyValues]]
| <code>table LoadKeyValues(string ) </code>
| <code>table LoadKeyValues(string a) </code>
| Creates a ''table'' from the specified keyvalues text file
| Creates a ''table'' from the specified keyvalues text file
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValuesFromString | LoadKeyValuesFromString]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValuesFromString | LoadKeyValuesFromString]]
| <code>table LoadKeyValuesFromString(string ) </code>
| <code>table LoadKeyValuesFromString(string a) </code>
| Creates a ''table'' from the specified keyvalues ''string''
| Creates a ''table'' from the specified keyvalues ''string''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.MakeStringToken | MakeStringToken]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.MakeStringToken | MakeStringToken]]
| <code>int MakeStringToken(string ) </code>
| <code>int MakeStringToken(string a) </code>
| Checks to see if the given hScript is a valid entity
| Checks to see if the given hScript is a valid entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.Msg | Msg]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.Msg | Msg]]
| <code>void Msg(string ) </code>
| <code>void Msg(string a) </code>
| Print a message
| Print a message
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PauseGame | PauseGame]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PauseGame | PauseGame]]
| <code>void PauseGame(bool ) </code>
| <code>void PauseGame(bool a) </code>
| Pause or unpause the game.
| Pause or unpause the game.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PlayerInstanceFromIndex | PlayerInstanceFromIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PlayerInstanceFromIndex | PlayerInstanceFromIndex]]
| <code>handle PlayerInstanceFromIndex(int ) </code>
| <code>handle PlayerInstanceFromIndex(int a) </code>
| Get a script instance of a player by index.
| Get a script instance of a player by index.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityFromTable | PrecacheEntityFromTable]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityFromTable | PrecacheEntityFromTable]]
| <code>void PrecacheEntityFromTable(string , handle , handle ) </code>
| <code>void PrecacheEntityFromTable(string a, handle b, handle c) </code>
| Precache an entity from KeyValues in ''table''
| Precache an entity from KeyValues in ''table''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityListFromTable | PrecacheEntityListFromTable]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityListFromTable | PrecacheEntityListFromTable]]
| <code>void PrecacheEntityListFromTable(handle , handle ) </code>
| <code>void PrecacheEntityListFromTable(handle a, handle b) </code>
| Precache a list of entity KeyValues table's
| Precache a list of entity KeyValues table's
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameAsync | PrecacheItemByNameAsync]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameAsync | PrecacheItemByNameAsync]]
| <code>void PrecacheItemByNameAsync(string , handle ) </code>
| <code>void PrecacheItemByNameAsync(string a, handle b) </code>
| Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished.
| Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameSync | PrecacheItemByNameSync]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameSync | PrecacheItemByNameSync]]
| <code>void PrecacheItemByNameSync(string , handle ) </code>
| <code>void PrecacheItemByNameSync(string a, handle b) </code>
| Precaches a DOTA item by its dota_npc_items.txt name
| Precaches a DOTA item by its dota_npc_items.txt name
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheModel | PrecacheModel]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheModel | PrecacheModel]]
| <code>void PrecacheModel(string , handle ) </code>
| <code>void PrecacheModel(string a, handle b) </code>
| ( modelName, context ) - Manually precache a single model
| ( modelName, context ) - Manually precache a single model
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheResource | PrecacheResource]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheResource | PrecacheResource]]
| <code>void PrecacheResource(string , string , handle ) </code>
| <code>void PrecacheResource(string a, string b, handle c) </code>
| Manually precache a single resource
| Manually precache a single resource
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameAsync | PrecacheUnitByNameAsync]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameAsync | PrecacheUnitByNameAsync]]
| <code>void PrecacheUnitByNameAsync(string , handle ) </code>
| <code>void PrecacheUnitByNameAsync(string a, handle b) </code>
| Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished.
| Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameSync | PrecacheUnitByNameSync]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameSync | PrecacheUnitByNameSync]]
| <code>void PrecacheUnitByNameSync(string , handle ) </code>
| <code>void PrecacheUnitByNameSync(string a, handle b) </code>
| Precaches a DOTA unit by its dota_npc_units.txt name
| Precaches a DOTA unit by its dota_npc_units.txt name
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrintLinkedConsoleMessage | PrintLinkedConsoleMessage]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrintLinkedConsoleMessage | PrintLinkedConsoleMessage]]
| <code>void PrintLinkedConsoleMessage(string , string ) </code>
| <code>void PrintLinkedConsoleMessage(string a, string b) </code>
| Print a console message with a linked console command
| Print a console message with a linked console command
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomFloat | RandomFloat]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomFloat | RandomFloat]]
| <code>float RandomFloat(float , float ) </code>
| <code>float RandomFloat(float a, float b) </code>
| Get a random ''float'' within a range
| Get a random ''float'' within a range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomInt | RandomInt]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomInt | RandomInt]]
| <code>int RandomInt(int , int ) </code>
| <code>int RandomInt(int a, int b) </code>
| Get a random ''int'' within a range
| Get a random ''int'' within a range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomVector | RandomVector]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomVector | RandomVector]]
| <code>Vector RandomVector(float ) </code>
| <code>Vector RandomVector(float a) </code>
| Get a random 2D ''vector''. Argument (''float'') is the minimum length of the returned vector.
| Get a random 2D ''vector''. Argument (''float'') is the minimum length of the returned vector.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RegisterSpawnGroupFilterProxy | RegisterSpawnGroupFilterProxy]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RegisterSpawnGroupFilterProxy | RegisterSpawnGroupFilterProxy]]
| <code>void RegisterSpawnGroupFilterProxy(string ) </code>
| <code>void RegisterSpawnGroupFilterProxy(string a) </code>
| Create a C proxy for a script-based spawn group filter
| Create a C proxy for a script-based spawn group filter
|-
|-
Line 365: Line 365:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RemoveSpawnGroupFilterProxy | RemoveSpawnGroupFilterProxy]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RemoveSpawnGroupFilterProxy | RemoveSpawnGroupFilterProxy]]
| <code>void RemoveSpawnGroupFilterProxy(string ) </code>
| <code>void RemoveSpawnGroupFilterProxy(string a) </code>
| Remove the C proxy for a script-based spawn group filter
| Remove the C proxy for a script-based spawn group filter
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RollPercentage | RollPercentage]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RollPercentage | RollPercentage]]
| <code>bool RollPercentage(int ) </code>
| <code>bool RollPercentage(int a) </code>
| Rolls a number from 1 to 100 and returns true if the roll is less than or equal to the number specified
| Rolls a number from 1 to 100 and returns true if the roll is less than or equal to the number specified
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateOrientation | RotateOrientation]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateOrientation | RotateOrientation]]
| <code>QAngle RotateOrientation(QAngle , QAngle ) </code>
| <code>QAngle RotateOrientation(QAngle a, QAngle b) </code>
| Rotate a ''QAngle'' by another ''QAngle''.
| Rotate a ''QAngle'' by another ''QAngle''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotatePosition | RotatePosition]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotatePosition | RotatePosition]]
| <code>Vector RotatePosition(Vector , QAngle , Vector ) </code>
| <code>Vector RotatePosition(Vector a, QAngle b, Vector c) </code>
| Rotate a ''Vector'' around a point.
| Rotate a ''Vector'' around a point.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateQuaternionByAxisAngle | RotateQuaternionByAxisAngle]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateQuaternionByAxisAngle | RotateQuaternionByAxisAngle]]
| <code>Quaternion RotateQuaternionByAxisAngle(Quaternion , Vector , float ) </code>
| <code>Quaternion RotateQuaternionByAxisAngle(Quaternion a, Vector b, float c) </code>
| Rotates a quaternion by the specified angle around the specified ''vector'' axis
| Rotates a quaternion by the specified angle around the specified ''vector'' axis
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotationDelta | RotationDelta]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotationDelta | RotationDelta]]
| <code>QAngle RotationDelta(QAngle , QAngle ) </code>
| <code>QAngle RotationDelta(QAngle a, QAngle b) </code>
| Find the delta between two ''QAngle''s.
| Find the delta between two ''QAngle''s.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_AddDecisionRule | rr_AddDecisionRule]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_AddDecisionRule | rr_AddDecisionRule]]
| <code>bool rr_AddDecisionRule(handle ) </code>
| <code>bool rr_AddDecisionRule(handle a) </code>
| Add a rule to the decision database.
| Add a rule to the decision database.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_CommitAIResponse | rr_CommitAIResponse]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_CommitAIResponse | rr_CommitAIResponse]]
| <code>bool rr_CommitAIResponse(handle , handle ) </code>
| <code>bool rr_CommitAIResponse(handle a, handle b) </code>
| Commit the result of QueryBestResponse back to the given entity to play. Call with params (entity, airesponse)
| Commit the result of QueryBestResponse back to the given entity to play. Call with params (entity, airesponse)
|-
|-
Line 401: Line 401:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_QueryBestResponse | rr_QueryBestResponse]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_QueryBestResponse | rr_QueryBestResponse]]
| <code>bool rr_QueryBestResponse(handle , handle , handle ) </code>
| <code>bool rr_QueryBestResponse(handle a, handle b, handle c) </code>
| Params: ( hEnt, hQuery, hResult ) // Static : tests 'query' against entity's response system and returns the best response found (or ''nil'' if none found).
| Params: ( hEnt, hQuery, hResult ) // Static : tests 'query' against entity's response system and returns the best response found (or ''nil'' if none found).
|-
|-
Line 409: Line 409:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ScreenShake | ScreenShake]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.ScreenShake | ScreenShake]]
| <code>void ScreenShake(Vector , float , float , float , float , int , bool ) </code>
| <code>void ScreenShake(Vector a, float b, float c, float d, float e, int f, bool g) </code>
| Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake
| Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake
|-
|-
Line 417: Line 417:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostyPointsMessageToGC | SendFrostyPointsMessageToGC]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostyPointsMessageToGC | SendFrostyPointsMessageToGC]]
| <code>void SendFrostyPointsMessageToGC(handle ) </code>
| <code>void SendFrostyPointsMessageToGC(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToConsole | SendToConsole]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToConsole | SendToConsole]]
| <code>void SendToConsole(string ) </code>
| <code>void SendToConsole(string a) </code>
| Send a ''string'' to the console as a client command
| Send a ''string'' to the console as a client command
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToServerConsole | SendToServerConsole]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToServerConsole | SendToServerConsole]]
| <code>void SendToServerConsole(string ) </code>
| <code>void SendToServerConsole(string a) </code>
| Send a ''string'' to the console as a server command
| Send a ''string'' to the console as a server command
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatAll | SetOpvarFloatAll]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatAll | SetOpvarFloatAll]]
| <code>void SetOpvarFloatAll(string , string , string , float ) </code>
| <code>void SetOpvarFloatAll(string a, string b, string c, float d) </code>
| Sets an opvar value for all players
| Sets an opvar value for all players
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatPlayer | SetOpvarFloatPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatPlayer | SetOpvarFloatPlayer]]
| <code>void SetOpvarFloatPlayer(string , string , string , float , handle ) </code>
| <code>void SetOpvarFloatPlayer(string a, string b, string c, float d, handle e) </code>
| Sets an opvar value for a single player ( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
| Sets an opvar value for a single player ( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestName | SetQuestName]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestName | SetQuestName]]
| <code>void SetQuestName(string ) </code>
| <code>void SetQuestName(string a) </code>
| Set the current quest name.
| Set the current quest name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestPhase | SetQuestPhase]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestPhase | SetQuestPhase]]
| <code>void SetQuestPhase(int ) </code>
| <code>void SetQuestPhase(int a) </code>
| Set the current quest phase.
| Set the current quest phase.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetRenderingEnabled | SetRenderingEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetRenderingEnabled | SetRenderingEnabled]]
| <code>void SetRenderingEnabled(ehandle , bool ) </code>
| <code>void SetRenderingEnabled(ehandle a, bool b) </code>
| Set rendering on/off for an ''ehandle''
| Set rendering on/off for an ''ehandle''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopup | ShowGenericPopup]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopup | ShowGenericPopup]]
| <code>void ShowGenericPopup(string , string , string , string , int ) </code>
| <code>void ShowGenericPopup(string title, string content, string unknown, string unknown, int containerType) </code>
| Show a generic popup dialog for all players.
|  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopupToPlayer | ShowGenericPopupToPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopupToPlayer | ShowGenericPopupToPlayer]]
| <code>void ShowGenericPopupToPlayer(handle , string , string , string , string , int ) </code>
| <code>void ShowGenericPopupToPlayer(handle a, string b, string c, string d, string e, int f) </code>
| Show a generic popup dialog to a specific player.
| 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]]
| <code>void ShowMessage(string ) </code>
| <code>void ShowMessage(string a) </code>
| Print a hud message on all clients
| Print a hud message on all clients
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityFromTableSynchronous | SpawnEntityFromTableSynchronous]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityFromTableSynchronous | SpawnEntityFromTableSynchronous]]
| <code>handle SpawnEntityFromTableSynchronous(string , handle ) </code>
| <code>handle SpawnEntityFromTableSynchronous(string a, handle b) </code>
| Synchronously spawns a single entity from a ''table''
| Synchronously spawns a single entity from a ''table''
|-
|-
Line 469: Line 469:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableAsynchronous | SpawnEntityListFromTableAsynchronous]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableAsynchronous | SpawnEntityListFromTableAsynchronous]]
| <code>int SpawnEntityListFromTableAsynchronous(handle , handle ) </code>
| <code>int SpawnEntityListFromTableAsynchronous(handle a, handle b) </code>
| Asynchronously spawn an entity group from a list of spawn table's. A callback will be triggered when the spawning is complete
| Asynchronously spawn an entity group from a list of spawn table's. A callback will be triggered when the spawning is complete
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableSynchronous | SpawnEntityListFromTableSynchronous]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableSynchronous | SpawnEntityListFromTableSynchronous]]
| <code>handle SpawnEntityListFromTableSynchronous(handle ) </code>
| <code>handle SpawnEntityListFromTableSynchronous(handle a) </code>
| Synchronously spawn an entity group from a list of spawn table's.
| Synchronously spawn an entity group from a list of spawn table's.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineQuaternions | SplineQuaternions]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineQuaternions | SplineQuaternions]]
| <code>Quaternion SplineQuaternions(Quaternion , Quaternion , float ) </code>
| <code>Quaternion SplineQuaternions(Quaternion a, Quaternion b, float c) </code>
| (quaternion,quaternion,''float'') very basic interpolation of v0 to v1 over t on [0,1]
| (quaternion,quaternion,''float'') very basic interpolation of v0 to v1 over t on [0,1]
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineVectors | SplineVectors]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineVectors | SplineVectors]]
| <code>Vector SplineVectors(Vector , Vector , float ) </code>
| <code>Vector SplineVectors(Vector a, Vector b, float c) </code>
| (''vector'',''vector'',''float'') very basic interpolation of v0 to v1 over t on [0,1]
| (''vector'',''vector'',''float'') very basic interpolation of v0 to v1 over t on [0,1]
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StartSoundEvent | StartSoundEvent]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.StartSoundEvent | StartSoundEvent]]
| <code>void StartSoundEvent(string , handle ) </code>
| <code>void StartSoundEvent(string a, handle b) </code>
| Start a sound event
| Start a sound event
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopEffect | StopEffect]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopEffect | StopEffect]]
| <code>void StopEffect(handle , string ) </code>
| <code>void StopEffect(handle a, string b) </code>
| (hEntity, szEffectName)
| (hEntity, szEffectName)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToAllGameEvents | StopListeningToAllGameEvents]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToAllGameEvents | StopListeningToAllGameEvents]]
| <code>void StopListeningToAllGameEvents(handle ) </code>
| <code>void StopListeningToAllGameEvents(handle a) </code>
| Stop listening to all game events within a specific context.
| Stop listening to all game events within a specific context.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToGameEvent | StopListeningToGameEvent]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToGameEvent | StopListeningToGameEvent]]
| <code>bool StopListeningToGameEvent(int ) </code>
| <code>bool StopListeningToGameEvent(int a) </code>
| Stop listening to a particular game event.
| Stop listening to a particular game event.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundEvent | StopSoundEvent]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundEvent | StopSoundEvent]]
| <code>void StopSoundEvent(string , handle ) </code>
| <code>void StopSoundEvent(string a, handle b) </code>
| Stops a sound event
| Stops a sound event
|-
|-
Line 509: Line 509:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StringToFile | StringToFile]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.StringToFile | StringToFile]]
| <code>bool StringToFile(string , string ) </code>
| <code>bool StringToFile(string a, string b) </code>
| Store a ''string'' to a file for later reading
| Store a ''string'' to a file for later reading
|-
|-
Line 517: Line 517:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceCollideable | TraceCollideable]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceCollideable | TraceCollideable]]
| <code>bool TraceCollideable(handle ) </code>
| <code>bool TraceCollideable(handle a) </code>
| Pass ''table'' - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
| Pass ''table'' - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceHull | TraceHull]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceHull | TraceHull]]
| <code>bool TraceHull(handle ) </code>
| <code>bool TraceHull(handle a) </code>
| Pass ''table'' - Inputs: start, end, min, max, mask, ignore  -- outputs: pos, fraction, hit, enthit, startsolid
| Pass ''table'' - Inputs: start, end, min, max, mask, ignore  -- outputs: pos, fraction, hit, enthit, startsolid
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceLine | TraceLine]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceLine | TraceLine]]
| <code>bool TraceLine(handle ) </code>
| <code>bool TraceLine(handle a) </code>
| Pass ''table'' - Inputs: startpos, endpos, mask, ignore  -- outputs: pos, fraction, hit, enthit, startsolid
| Pass ''table'' - Inputs: startpos, endpos, mask, ignore  -- outputs: pos, fraction, hit, enthit, startsolid
|-
|-
| [[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 a) </code>
| Unload a spawn group by name
| Unload a spawn group by name
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroupByHandle | UnloadSpawnGroupByHandle]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroupByHandle | UnloadSpawnGroupByHandle]]
| <code>void UnloadSpawnGroupByHandle(int ) </code>
| <code>void UnloadSpawnGroupByHandle(int a) </code>
| Unload a spawn group by ''handle''
| Unload a spawn group by ''handle''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.UpdateEventPoints | UpdateEventPoints]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.UpdateEventPoints | UpdateEventPoints]]
| <code>void UpdateEventPoints(handle ) </code>
| <code>void UpdateEventPoints(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_Remove | UTIL_Remove]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_Remove | UTIL_Remove]]
| <code>void UTIL_Remove(handle ) </code>
| <code>void UTIL_Remove(handle a) </code>
| Removes the specified entity
| Removes the specified entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_RemoveImmediate | UTIL_RemoveImmediate]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_RemoveImmediate | UTIL_RemoveImmediate]]
| <code>void UTIL_RemoveImmediate(handle ) </code>
| <code>void UTIL_RemoveImmediate(handle a) </code>
| Immediately removes the specified entity
| Immediately removes the specified entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.VectorToAngles | VectorToAngles]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.VectorToAngles | VectorToAngles]]
| <code>QAngle VectorToAngles(Vector ) </code>
| <code>QAngle VectorToAngles(Vector a) </code>
| Get Qangles (with no roll) for a ''Vector''.
| Get Qangles (with no roll) for a ''Vector''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.Warning | Warning]]
| [[Dota 2 Workshop Tools/Scripting/API/Global.Warning | Warning]]
| <code>void Warning(string ) </code>
| <code>void Warning(string a) </code>
| Print a warning
| Print a warning
|}
|}
Line 559: Line 559:


=== CBaseEntity ===
=== CBaseEntity ===
''No Description Set''
''The base class for stuff''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 566: Line 566:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse | ApplyAbsVelocityImpulse]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse | ApplyAbsVelocityImpulse]]
| <code>void ApplyAbsVelocityImpulse(Vector ) </code>
| <code>void ApplyAbsVelocityImpulse(Vector a) </code>
| Apply a Velocity Impulse
| Apply a Velocity Impulse
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse | ApplyLocalAngularVelocityImpulse]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse | ApplyLocalAngularVelocityImpulse]]
| <code>void ApplyLocalAngularVelocityImpulse(Vector ) </code>
| <code>void ApplyLocalAngularVelocityImpulse(Vector a) </code>
| Apply an Ang Velocity Impulse
| Apply an Ang Velocity Impulse
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSound | EmitSound]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSound | EmitSound]]
| <code>void EmitSound(string soundName) </code>
| <code>void EmitSound(string soundName) </code>
| Plays a sound from this entity.
|
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams | EmitSoundParams]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams | EmitSoundParams]]
Line 594: Line 594:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria | GatherCriteria]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria | GatherCriteria]]
| <code>void GatherCriteria(handle ) </code>
| <code>void GatherCriteria(handle a) </code>
| Returns a ''table'' containing the criteria that would be used for response queries on this entity. This is the same as the ''table'' that is passed to response rule script function callbacks.
| Returns a ''table'' containing the criteria that would be used for response queries on this entity. This is the same as the ''table'' that is passed to response rule script function callbacks.
|-
|-
Line 638: Line 638:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext | GetContext]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext | GetContext]]
| <code>table GetContext(string ) </code>
| <code>table GetContext(string a) </code>
| GetContext( name ): looks up a context and returns it if available. May return ''string'', ''float'', or ''nil'' (if the context isn't found)
| GetContext( name ): looks up a context and returns it if available. May return ''string'', ''float'', or ''nil'' (if the context isn't found)
|-
|-
Line 722: Line 722:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction | OverrideFriction]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction | OverrideFriction]]
| <code>void OverrideFriction(float , float ) </code>
| <code>void OverrideFriction(float a, float b) </code>
| Takes duration, value for a temporary override
| Takes duration, value for a temporary override
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.PrecacheScriptSound | PrecacheScriptSound]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.PrecacheScriptSound | PrecacheScriptSound]]
| <code>void PrecacheScriptSound(string ) </code>
| <code>void PrecacheScriptSound(string a) </code>
| Precache a sound for later playing.
| Precache a sound for later playing.
|-
|-
Line 742: Line 742:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext | SetContext]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext | SetContext]]
| <code>void SetContext(string , string , float ) </code>
| <code>void SetContext(string a, string b, float c) </code>
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a ''string''. Will last for duration (set 0 to mean 'forever').
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a ''string''. Will last for duration (set 0 to mean 'forever').
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextNum | SetContextNum]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextNum | SetContextNum]]
| <code>void SetContextNum(string , float , float ) </code>
| <code>void SetContextNum(string a, float b, float c) </code>
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (''int'' or ''float''). Will last for duration (set 0 to mean 'forever').
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (''int'' or ''float''). Will last for duration (set 0 to mean 'forever').
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextThink | SetContextThink]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextThink | SetContextThink]]
| <code>void SetContextThink(string , handle , float ) </code>
| <code>void SetContextThink(string a, handle b, float c) </code>
| Set a think function on this entity.
| Set a think function on this entity.
|-
|-
Line 758: Line 758:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction | SetFriction]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction | SetFriction]]
| <code>void SetFriction(float ) </code>
| <code>void SetFriction(float a) </code>
| Set PLAYER friction, ignored for objects
| Set PLAYER friction, ignored for objects
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetGravity | SetGravity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetGravity | SetGravity]]
| <code>void SetGravity(float ) </code>
| <code>void SetGravity(float a) </code>
| Set PLAYER gravity, ignored for objects
| Set PLAYER gravity, ignored for objects
|-
|-
Line 786: Line 786:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent | SetParent]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent | SetParent]]
| <code>void SetParent(handle , string ) </code>
| <code>void SetParent(handle a, string b) </code>
| Set the parent for this entity.
| Set the parent for this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetRenderColor | SetRenderColor]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetRenderColor | SetRenderColor]]
| <code>void SetRenderColor(int , int , int ) </code>
| <code>void SetRenderColor(int a, int b, int c) </code>
| SetRenderColor( r, g, b ): Sets the render color of the entity.
| SetRenderColor( r, g, b ): Sets the render color of the entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetSize | SetSize]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetSize | SetSize]]
| <code>void SetSize(Vector , Vector ) </code>
| <code>void SetSize(Vector a, Vector b) </code>
| No Description Set
| No Description Set
|-
|-
Line 802: Line 802:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity | SetVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity | SetVelocity]]
| <code>void SetVelocity(Vector ) </code>
| <code>void SetVelocity(Vector a) </code>
| No Description Set
| No Description Set
|-
|-
Line 829: Line 829:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname | FindAllByClassname]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname | FindAllByClassname]]
| <code>table FindAllByClassname(string ) </code>
| <code>table FindAllByClassname(string a) </code>
| Finds all entities by class name. Returns an array containing all the found entities.
| Finds all entities by class name. Returns an array containing all the found entities.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassnameWithin | FindAllByClassnameWithin]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassnameWithin | FindAllByClassnameWithin]]
| <code>table FindAllByClassnameWithin(string , Vector , float ) </code>
| <code>table FindAllByClassnameWithin(string a, Vector b, float c) </code>
| Find entities by class name within a radius.
| Find entities by class name within a radius.
|-
|-
Line 914: Line 914:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput | ConnectOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput | ConnectOutput]]
| <code>void ConnectOutput(string , string ) </code>
| <code>void ConnectOutput(string a, string b) </code>
| Adds an I/O connection that will call the named function on this entity when the specified output fires.
| Adds an I/O connection that will call the named function on this entity when the specified output fires.
|-
|-
Line 922: Line 922:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput | DisconnectOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput | DisconnectOutput]]
| <code>void DisconnectOutput(string , string ) </code>
| <code>void DisconnectOutput(string a, string b) </code>
| Removes a connected script function from an I/O event on this entity.
| Removes a connected script function from an I/O event on this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectRedirectedOutput | DisconnectRedirectedOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectRedirectedOutput | DisconnectRedirectedOutput]]
| <code>void DisconnectRedirectedOutput(string , string , handle ) </code>
| <code>void DisconnectRedirectedOutput(string a, string b, handle c) </code>
| Removes a connected script function from an I/O event on the passed entity.
| Removes a connected script function from an I/O event on the passed entity.
|-
|-
Line 934: Line 934:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput | FireOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput | FireOutput]]
| <code>void FireOutput(string , handle , handle , table , float ) </code>
| <code>void FireOutput(string a, handle b, handle c, table d, float e) </code>
| Fire an entity output
| Fire an entity output
|-
|-
Line 954: Line 954:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr | GetIntAttr]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr | GetIntAttr]]
| <code>int GetIntAttr(string ) </code>
| <code>int GetIntAttr(string a) </code>
| Get Integer Attribute
| Get Integer Attribute
|-
|-
Line 978: Line 978:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput | RedirectOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput | RedirectOutput]]
| <code>void RedirectOutput(string , string , handle ) </code>
| <code>void RedirectOutput(string a, string b, handle c) </code>
| Adds an I/O connection that will call the named function on the passed entity when the specified output fires.
| Adds an I/O connection that will call the named function on the passed entity when the specified output fires.
|-
|-
Line 986: Line 986:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.SetIntAttr | SetIntAttr]]
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.SetIntAttr | SetIntAttr]]
| <code>void SetIntAttr(string , int ) </code>
| <code>void SetIntAttr(string a, int b) </code>
| Set Integer Attribute
| Set Integer Attribute
|}
|}
Line 1,008: Line 1,008:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]]
| <code>void CreateVisibilityNode(Vector , float , float ) </code>
| <code>void CreateVisibilityNode(Vector a, float b, float c) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,016: Line 1,016:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]]
| <code>void EndChannel(bool ) </code>
| <code>void EndChannel(bool a) </code>
| Param: ''bool'' bInterrupted
| Param: ''bool'' bInterrupted
|-
|-
Line 1,092: Line 1,092:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]]
| <code>int GetChannelledManaCostPerSecond(int ) </code>
| <code>int GetChannelledManaCostPerSecond(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,112: Line 1,112:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]]
| <code>float GetCooldown(int ) </code>
| <code>float GetCooldown(int a) </code>
| Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
| Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
|-
|-
Line 1,140: Line 1,140:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]]
| <code>int GetGoldCost(int ) </code>
| <code>int GetGoldCost(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]]
| <code>int GetGoldCostForUpgrade(int ) </code>
| <code>int GetGoldCostForUpgrade(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,160: Line 1,160:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]]
| <code>table GetLevelSpecialValueFor(string , int ) </code>
| <code>table GetLevelSpecialValueFor(string a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]]
| <code>int GetManaCost(int ) </code>
| <code>int GetManaCost(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,188: Line 1,188:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]]
| <code>table GetSpecialValueFor(string ) </code>
| <code>table GetSpecialValueFor(string a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,200: Line 1,200:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]]
| <code>bool HeroXPChange(float ) </code>
| <code>bool HeroXPChange(float a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,248: Line 1,248:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]]
| <code>bool IsOwnersGoldEnough(int ) </code>
| <code>bool IsOwnersGoldEnough(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,304: Line 1,304:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]]
| <code>void OnChannelFinish(bool ) </code>
| <code>void OnChannelFinish(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]]
| <code>void OnChannelThink(float ) </code>
| <code>void OnChannelThink(float a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,376: Line 1,376:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]]
| <code>void SetAbilityIndex(int ) </code>
| <code>void SetAbilityIndex(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]]
| <code>void SetActivated(bool ) </code>
| <code>void SetActivated(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]]
| <code>void SetChanneling(bool ) </code>
| <code>void SetChanneling(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]]
| <code>void SetHidden(bool ) </code>
| <code>void SetHidden(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]]
| <code>void SetInAbilityPhase(bool ) </code>
| <code>void SetInAbilityPhase(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetLevel | SetLevel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetLevel | SetLevel]]
| <code>void SetLevel(int ) </code>
| <code>void SetLevel(int a) </code>
| Sets the level of this ability.
| Sets the level of this ability.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint | SetOverrideCastPoint]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint | SetOverrideCastPoint]]
| <code>void SetOverrideCastPoint(float ) </code>
| <code>void SetOverrideCastPoint(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]]
| <code>void SetRefCountsModifiers(bool ) </code>
| <code>void SetRefCountsModifiers(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]]
| <code>void SetStolen(bool ) </code>
| <code>void SetStolen(bool a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,416: Line 1,416:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]]
| <code>void SpeakAbilityConcept(int ) </code>
| <code>void SpeakAbilityConcept(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,424: Line 1,424:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.StartCooldown | StartCooldown]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.StartCooldown | StartCooldown]]
| <code>void StartCooldown(float ) </code>
| <code>void StartCooldown(float a) </code>
| param: flCooldown
| param: flCooldown
|-
|-
Line 1,440: Line 1,440:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]]
| <code>void UseResources(bool , bool , bool ) </code>
| <code>void UseResources(bool a, bool b, bool c) </code>
| No Description Set
| No Description Set
|}
|}
Line 1,454: Line 1,454:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_Attack.SetPlaybackRate | SetPlaybackRate]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_Attack.SetPlaybackRate | SetPlaybackRate]]
| <code>void SetPlaybackRate(float ) </code>
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
| Override playbackrate
|}
|}
Line 1,468: Line 1,468:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_TailSpin.SetPlaybackRate | SetPlaybackRate]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_TailSpin.SetPlaybackRate | SetPlaybackRate]]
| <code>void SetPlaybackRate(float ) </code>
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
| Override playbackrate
|}
|}
Line 1,482: Line 1,482:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Leap.SetPlaybackRate | SetPlaybackRate]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Leap.SetPlaybackRate | SetPlaybackRate]]
| <code>void SetPlaybackRate(float ) </code>
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
| Override playbackrate
|}
|}
Line 1,496: Line 1,496:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Dive.SetPlaybackRate | SetPlaybackRate]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Dive.SetPlaybackRate | SetPlaybackRate]]
| <code>void SetPlaybackRate(float ) </code>
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
| Override playbackrate
|}
|}
Line 1,555: Line 1,555:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot | LaunchLoot]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot | LaunchLoot]]
| <code>void LaunchLoot(bool , float , float , Vector ) </code>
| <code>void LaunchLoot(bool a, float b, float c, Vector d) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetCurrentCharges | SetCurrentCharges]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetCurrentCharges | SetCurrentCharges]]
| <code>void SetCurrentCharges(int ) </code>
| <code>void SetCurrentCharges(int a) </code>
| Set the number of charges on this item
| Set the number of charges on this item
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaser | SetPurchaser]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaser | SetPurchaser]]
| <code>void SetPurchaser(handle ) </code>
| <code>void SetPurchaser(handle a) </code>
| Set the purchaser of record for this item.
| Set the purchaser of record for this item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaseTime | SetPurchaseTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaseTime | SetPurchaseTime]]
| <code>void SetPurchaseTime(float ) </code>
| <code>void SetPurchaseTime(float a) </code>
| Set the purchase time of this item
| Set the purchase time of this item
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetStacksWithOtherOwners | SetStacksWithOtherOwners]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetStacksWithOtherOwners | SetStacksWithOtherOwners]]
| <code>void SetStacksWithOtherOwners(bool ) </code>
| <code>void SetStacksWithOtherOwners(bool a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,600: Line 1,600:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.SetContainedItem | SetContainedItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.SetContainedItem | SetContainedItem]]
| <code>void SetContainedItem(handle ) </code>
| <code>void SetContainedItem(handle a) </code>
| Set the contained item.
| Set the contained item.
|}
|}
Line 1,606: Line 1,606:


=== CDOTA_Item_DataDriven ===
=== CDOTA_Item_DataDriven ===
''No Description Set''
''''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 1,613: Line 1,613:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_DataDriven.ApplyDataDrivenModifier | ApplyDataDrivenModifier]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_DataDriven.ApplyDataDrivenModifier | ApplyDataDrivenModifier]]
| <code>void ApplyDataDrivenModifier(handle , handle , string , handle ) </code>
| <code>void ApplyDataDrivenModifier(handle source, handle target, string modifier_name, handle modifierArgs) </code>
| Applies a data driven modifier to the target
|  
|}
|}


Line 1,680: Line 1,680:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit | SetKillCamUnit]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit | SetKillCamUnit]]
| <code>void SetKillCamUnit(handle ) </code>
| <code>void SetKillCamUnit(handle a) </code>
| Set the kill cam unit for this hero.
| Set the kill cam unit for this hero.
|-
|-
Line 1,699: Line 1,699:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup | AddAegisPickup]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup | AddAegisPickup]]
| <code>void AddAegisPickup(int ) </code>
| <code>void AddAegisPickup(int a) </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.AddClaimedFarm | AddClaimedFarm]]
| <code>void AddClaimedFarm(int , float ) </code>
| <code>void AddClaimedFarm(int a, float b) </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.AddGoldSpentOnSupport | AddGoldSpentOnSupport]]
| <code>void AddGoldSpentOnSupport(int , int ) </code>
| <code>void AddGoldSpentOnSupport(int a, int b) </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.AddRunePickup | AddRunePickup]]
| <code>void AddRunePickup(int ) </code>
| <code>void AddRunePickup(int a) </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.AreUnitsSharedWithPlayerID | AreUnitsSharedWithPlayerID]]
| <code>bool AreUnitsSharedWithPlayerID(int , int ) </code>
| <code>bool AreUnitsSharedWithPlayerID(int a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearKillsMatrix | ClearKillsMatrix]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearKillsMatrix | ClearKillsMatrix]]
| <code>void ClearKillsMatrix(int ) </code>
| <code>void ClearKillsMatrix(int a) </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.ClearLastHitMultikill | ClearLastHitMultikill]]
| <code>void ClearLastHitMultikill(int ) </code>
| <code>void ClearLastHitMultikill(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak | ClearLastHitStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak | ClearLastHitStreak]]
| <code>void ClearLastHitStreak(int ) </code>
| <code>void ClearLastHitStreak(int a) </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.ClearRawPlayerDamageMatrix | ClearRawPlayerDamageMatrix]]
| <code>void ClearRawPlayerDamageMatrix(int ) </code>
| <code>void ClearRawPlayerDamageMatrix(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak | ClearStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak | ClearStreak]]
| <code>void ClearStreak(int ) </code>
| <code>void ClearStreak(int a) </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.GetAegisPickups | GetAegisPickups]]
| <code>int GetAegisPickups(int ) </code>
| <code>int GetAegisPickups(int a) </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.GetAssists | GetAssists]]
| <code>int GetAssists(int ) </code>
| <code>int GetAssists(int a) </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.GetBroadcasterChannel | GetBroadcasterChannel]]
| <code><> GetBroadcasterChannel(int ) </code>
| <code><> GetBroadcasterChannel(int a) </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.GetBroadcasterChannelSlot | GetBroadcasterChannelSlot]]
| <code><> GetBroadcasterChannelSlot(int ) </code>
| <code><> GetBroadcasterChannelSlot(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies | GetClaimedDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies | GetClaimedDenies]]
| <code>int GetClaimedDenies(int ) </code>
| <code>int GetClaimedDenies(int a) </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.GetClaimedFarm | GetClaimedFarm]]
| <code>float GetClaimedFarm(int ) </code>
| <code>float GetClaimedFarm(int a) </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.GetClaimedMisses | GetClaimedMisses]]
| <code>int GetClaimedMisses(int ) </code>
| <code>int GetClaimedMisses(int a) </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.GetConnectionState | GetConnectionState]]
| <code><> GetConnectionState(int ) </code>
| <code><> GetConnectionState(int a) </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.GetCreepDamageTaken | GetCreepDamageTaken]]
| <code>int GetCreepDamageTaken(int ) </code>
| <code>int GetCreepDamageTaken(int a) </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.GetCustomBuybackCooldown | GetCustomBuybackCooldown]]
| <code>float GetCustomBuybackCooldown(int ) </code>
| <code>float GetCustomBuybackCooldown(int a) </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.GetCustomBuybackCost | GetCustomBuybackCost]]
| <code>int GetCustomBuybackCost(int ) </code>
| <code>int GetCustomBuybackCost(int a) </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.GetDamageDoneToHero | GetDamageDoneToHero]]
| <code>int GetDamageDoneToHero(int , int ) </code>
| <code>int GetDamageDoneToHero(int a, int b) </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.GetDeaths | GetDeaths]]
| <code>int GetDeaths(int ) </code>
| <code>int GetDeaths(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies | GetDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies | GetDenies]]
| <code>int GetDenies(int ) </code>
| <code>int GetDenies(int a) </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.GetEventPointsForPlayerID | GetEventPointsForPlayerID]]
| <code>int GetEventPointsForPlayerID(int ) </code>
| <code>int GetEventPointsForPlayerID(int a) </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.GetEventPremiumPointsGranted | GetEventPremiumPointsGranted]]
| <code>int GetEventPremiumPointsGranted(int ) </code>
| <code>int GetEventPremiumPointsGranted(int a) </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.GetEventRankGranted | GetEventRankGranted]]
| <code>int GetEventRankGranted(int ) </code>
| <code>int GetEventRankGranted(int a) </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.GetGold | GetGold]]
| <code>int GetGold(int ) </code>
| <code>int GetGold(int a) </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.GetGoldBagsCollected | GetGoldBagsCollected]]
| <code>int GetGoldBagsCollected(int ) </code>
| <code>int GetGoldBagsCollected(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath | GetGoldLostToDeath]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath | GetGoldLostToDeath]]
| <code>int GetGoldLostToDeath(int ) </code>
| <code>int GetGoldLostToDeath(int a) </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.GetGoldPerMin | GetGoldPerMin]]
| <code>float GetGoldPerMin(int ) </code>
| <code>float GetGoldPerMin(int a) </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.GetGoldSpentOnBuybacks | GetGoldSpentOnBuybacks]]
| <code>int GetGoldSpentOnBuybacks(int ) </code>
| <code>int GetGoldSpentOnBuybacks(int a) </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.GetGoldSpentOnConsumables | GetGoldSpentOnConsumables]]
| <code>int GetGoldSpentOnConsumables(int ) </code>
| <code>int GetGoldSpentOnConsumables(int a) </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.GetGoldSpentOnItems | GetGoldSpentOnItems]]
| <code>int GetGoldSpentOnItems(int ) </code>
| <code>int GetGoldSpentOnItems(int a) </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.GetGoldSpentOnSupport | GetGoldSpentOnSupport]]
| <code>int GetGoldSpentOnSupport(int ) </code>
| <code>int GetGoldSpentOnSupport(int a) </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.GetHealing | GetHealing]]
| <code>float GetHealing(int ) </code>
| <code>float GetHealing(int a) </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.GetHeroDamageTaken | GetHeroDamageTaken]]
| <code>int GetHeroDamageTaken(int ) </code>
| <code>int GetHeroDamageTaken(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills | GetKills]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills | GetKills]]
| <code>int GetKills(int ) </code>
| <code>int GetKills(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero | GetKillsDoneToHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero | GetKillsDoneToHero]]
| <code>int GetKillsDoneToHero(int , int ) </code>
| <code>int GetKillsDoneToHero(int a, int b) </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.GetLastHitMultikill | GetLastHitMultikill]]
| <code>int GetLastHitMultikill(int ) </code>
| <code>int GetLastHitMultikill(int a) </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.GetLastHits | GetLastHits]]
| <code>int GetLastHits(int ) </code>
| <code>int GetLastHits(int a) </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.GetLastHitStreak | GetLastHitStreak]]
| <code>int GetLastHitStreak(int ) </code>
| <code>int GetLastHitStreak(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 1,871: Line 1,871:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses | GetMisses]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses | GetMisses]]
| <code>int GetMisses(int ) </code>
| <code>int GetMisses(int a) </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.GetNearbyCreepDeaths | GetNearbyCreepDeaths]]
| <code>int GetNearbyCreepDeaths(int ) </code>
| <code>int GetNearbyCreepDeaths(int a) </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.GetNthCourierForTeam | GetNthCourierForTeam]]
| <code>handle GetNthCourierForTeam(int , int ) </code>
| <code>handle GetNthCourierForTeam(int a, int b) </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.GetNthPlayerIDOnTeam | GetNthPlayerIDOnTeam]]
| <code>int GetNthPlayerIDOnTeam(int , int ) </code>
| <code>int GetNthPlayerIDOnTeam(int a, int b) </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.GetNumConsumablesPurchased | GetNumConsumablesPurchased]]
| <code>int GetNumConsumablesPurchased(int ) </code>
| <code>int GetNumConsumablesPurchased(int a) </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.GetNumCouriersForTeam | GetNumCouriersForTeam]]
| <code>int GetNumCouriersForTeam(int ) </code>
| <code>int GetNumCouriersForTeam(int a) </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.GetNumItemsPurchased | GetNumItemsPurchased]]
| <code>int GetNumItemsPurchased(int ) </code>
| <code>int GetNumItemsPurchased(int a) </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.GetPlayer | GetPlayer]]
| <code>handle GetPlayer(int ) </code>
| <code>handle GetPlayer(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely | GetPlayerLoadedCompletely]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely | GetPlayerLoadedCompletely]]
| <code>bool GetPlayerLoadedCompletely(int ) </code>
| <code>bool GetPlayerLoadedCompletely(int a) </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.GetPlayerName | GetPlayerName]]
| <code>string GetPlayerName(int ) </code>
| <code>string GetPlayerName(int a) </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.GetPlayerReservedState | GetPlayerReservedState]]
| <code>bool GetPlayerReservedState(int ) </code>
| <code>bool GetPlayerReservedState(int a) </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.GetRawPlayerDamage | GetRawPlayerDamage]]
| <code>int GetRawPlayerDamage(int ) </code>
| <code>int GetRawPlayerDamage(int a) </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.GetReliableGold | GetReliableGold]]
| <code>int GetReliableGold(int ) </code>
| <code>int GetReliableGold(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRespawnSeconds | GetRespawnSeconds]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRespawnSeconds | GetRespawnSeconds]]
| <code>int GetRespawnSeconds(int ) </code>
| <code>int GetRespawnSeconds(int a) </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.GetRoshanKills | GetRoshanKills]]
| <code>int GetRoshanKills(int ) </code>
| <code>int GetRoshanKills(int a) </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.GetRunePickups | GetRunePickups]]
| <code>int GetRunePickups(int ) </code>
| <code>int GetRunePickups(int a) </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.GetSelectedHeroEntity | GetSelectedHeroEntity]]
| <code>handle GetSelectedHeroEntity(int ) </code>
| <code>handle GetSelectedHeroEntity(int a) </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.GetSelectedHeroID | GetSelectedHeroID]]
| <code>int GetSelectedHeroID(int ) </code>
| <code>int GetSelectedHeroID(int a) </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.GetSelectedHeroName | GetSelectedHeroName]]
| <code>string GetSelectedHeroName(int ) </code>
| <code>string GetSelectedHeroName(int a) </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.GetSteamAccountID | GetSteamAccountID]]
| <code><> GetSteamAccountID(int ) </code>
| <code><> GetSteamAccountID(int a) </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.GetStreak | GetStreak]]
| <code>int GetStreak(int ) </code>
| <code>int GetStreak(int a) </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.GetStuns | GetStuns]]
| <code>float GetStuns(int ) </code>
| <code>float GetStuns(int a) </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.GetTeam | GetTeam]]
| <code>int GetTeam(int ) </code>
| <code>int GetTeam(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeamKills | GetTeamKills]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeamKills | GetTeamKills]]
| <code>int GetTeamKills(int ) </code>
| <code>int GetTeamKills(int a) </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.GetTimeOfLastConsumablePurchase | GetTimeOfLastConsumablePurchase]]
| <code>float GetTimeOfLastConsumablePurchase(int ) </code>
| <code>float GetTimeOfLastConsumablePurchase(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath | GetTimeOfLastDeath]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath | GetTimeOfLastDeath]]
| <code>float GetTimeOfLastDeath(int ) </code>
| <code>float GetTimeOfLastDeath(int a) </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.GetTimeOfLastItemPurchase | GetTimeOfLastItemPurchase]]
| <code>float GetTimeOfLastItemPurchase(int ) </code>
| <code>float GetTimeOfLastItemPurchase(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold | GetTotalEarnedGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold | GetTotalEarnedGold]]
| <code>int GetTotalEarnedGold(int ) </code>
| <code>int GetTotalEarnedGold(int a) </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.GetTotalEarnedXP | GetTotalEarnedXP]]
| <code>int GetTotalEarnedXP(int ) </code>
| <code>int GetTotalEarnedXP(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalGoldSpent | GetTotalGoldSpent]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalGoldSpent | GetTotalGoldSpent]]
| <code>int GetTotalGoldSpent(int ) </code>
| <code>int GetTotalGoldSpent(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken | GetTowerDamageTaken]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken | GetTowerDamageTaken]]
| <code>int GetTowerDamageTaken(int ) </code>
| <code>int GetTowerDamageTaken(int a) </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.GetTowerKills | GetTowerKills]]
| <code>int GetTowerKills(int ) </code>
| <code>int GetTowerKills(int a) </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.GetUnitShareMaskForPlayer | GetUnitShareMaskForPlayer]]
| <code>int GetUnitShareMaskForPlayer(int , int ) </code>
| <code>int GetUnitShareMaskForPlayer(int a, int b) </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.GetUnreliableGold | GetUnreliableGold]]
| <code>int GetUnreliableGold(int ) </code>
| <code>int GetUnreliableGold(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetXPPerMin | GetXPPerMin]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetXPPerMin | GetXPPerMin]]
| <code>float GetXPPerMin(int ) </code>
| <code>float GetXPPerMin(int a) </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.HasRandomed | HasRandomed]]
| <code>bool HasRandomed(int ) </code>
| <code>bool HasRandomed(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,019: Line 2,019:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero | HasSelectedHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero | HasSelectedHero]]
| <code>bool HasSelectedHero(int ) </code>
| <code>bool HasSelectedHero(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,027: Line 2,027:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp | HeroLevelUp]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp | HeroLevelUp]]
| <code>void HeroLevelUp(int ) </code>
| <code>void HeroLevelUp(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,035: Line 2,035:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies | IncrementClaimedDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies | IncrementClaimedDenies]]
| <code>void IncrementClaimedDenies(int ) </code>
| <code>void IncrementClaimedDenies(int a) </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.IncrementClaimedMisses | IncrementClaimedMisses]]
| <code>void IncrementClaimedMisses(int ) </code>
| <code>void IncrementClaimedMisses(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,047: Line 2,047:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies | IncrementDenies]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies | IncrementDenies]]
| <code>void IncrementDenies(int ) </code>
| <code>void IncrementDenies(int a) </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.IncrementGoldBagsCollected | IncrementGoldBagsCollected]]
| <code>void IncrementGoldBagsCollected(int ) </code>
| <code>void IncrementGoldBagsCollected(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,059: Line 2,059:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| <code>void IncrementLastHitMultikill(int ) </code>
| <code>void IncrementLastHitMultikill(int a) </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.IncrementLastHits | IncrementLastHits]]
| <code>void IncrementLastHits(int ) </code>
| <code>void IncrementLastHits(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitStreak | IncrementLastHitStreak]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitStreak | IncrementLastHitStreak]]
| <code>void IncrementLastHitStreak(int ) </code>
| <code>void IncrementLastHitStreak(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses | IncrementMisses]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses | IncrementMisses]]
| <code>void IncrementMisses(int ) </code>
| <code>void IncrementMisses(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
| <code>void IncrementNearbyCreepDeaths(int ) </code>
| <code>void IncrementNearbyCreepDeaths(int a) </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.IncrementStreak | IncrementStreak]]
| <code>void IncrementStreak(int ) </code>
| <code>void IncrementStreak(int a) </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.IncrementTotalEarnedXP | IncrementTotalEarnedXP]]
| <code>void IncrementTotalEarnedXP(int , int ) </code>
| <code>void IncrementTotalEarnedXP(int a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsBroadcaster | IsBroadcaster]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsBroadcaster | IsBroadcaster]]
| <code>bool IsBroadcaster(int ) </code>
| <code>bool IsBroadcaster(int a) </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.IsDisableHelpSetForPlayerID | IsDisableHelpSetForPlayerID]]
| <code>bool IsDisableHelpSetForPlayerID(int , int ) </code>
| <code>bool IsDisableHelpSetForPlayerID(int a, int b) </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.IsFakeClient | IsFakeClient]]
| <code>bool IsFakeClient(int ) </code>
| <code>bool IsFakeClient(int a) </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.IsHeroSelected | IsHeroSelected]]
| <code>bool IsHeroSelected(string ) </code>
| <code>bool IsHeroSelected(string a) </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.IsHeroSharedWithPlayerID | IsHeroSharedWithPlayerID]]
| <code>bool IsHeroSharedWithPlayerID(int , int ) </code>
| <code>bool IsHeroSharedWithPlayerID(int a, int b) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,123: Line 2,123:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold | ModifyGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold | ModifyGold]]
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int ) </code>
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int d) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ReplaceHeroWith | ReplaceHeroWith]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ReplaceHeroWith | ReplaceHeroWith]]
| <code>handle ReplaceHeroWith(int , string , int , int ) </code>
| <code>handle ReplaceHeroWith(int a, string b, int c, int d) </code>
| (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
| (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetBuybackCostTime | ResetBuybackCostTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetBuybackCostTime | ResetBuybackCostTime]]
| <code>void ResetBuybackCostTime(int ) </code>
| <code>void ResetBuybackCostTime(int a) </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.ResetTotalEarnedGold | ResetTotalEarnedGold]]
| <code>void ResetTotalEarnedGold(int ) </code>
| <code>void ResetTotalEarnedGold(int a) </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.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| <code>void SetBuybackCooldownTime(int , float ) </code>
| <code>void SetBuybackCooldownTime(int a, float b) </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.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| <code>void SetBuybackGoldLimitTime(int , float ) </code>
| <code>void SetBuybackGoldLimitTime(int a, float b) </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.SetCameraTarget | SetCameraTarget]]
| <code>void SetCameraTarget(int , handle ) </code>
| <code>void SetCameraTarget(int a, handle b) </code>
| (playerID, entity) - force the given player's camera to follow the given entity
| (playerID, entity) - force the given player's camera to follow the given entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCooldown | SetCustomBuybackCooldown]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCooldown | SetCustomBuybackCooldown]]
| <code>void SetCustomBuybackCooldown(int , float ) </code>
| <code>void SetCustomBuybackCooldown(int a, float b) </code>
| Set the buyback cooldown for this player.
| Set the buyback cooldown for this player.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCost | SetCustomBuybackCost]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCost | SetCustomBuybackCost]]
| <code>void SetCustomBuybackCost(int , int ) </code>
| <code>void SetCustomBuybackCost(int a, int b) </code>
| Set the buyback cost for this player.
| Set the buyback cost for this player.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetGold | SetGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetGold | SetGold]]
| <code>void SetGold(int , int , bool ) </code>
| <code>void SetGold(int a, int b, bool c) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,171: Line 2,171:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime | SetLastBuybackTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime | SetLastBuybackTime]]
| <code>void SetLastBuybackTime(int , int ) </code>
| <code>void SetLastBuybackTime(int a, int b) </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.SetPlayerReservedState | SetPlayerReservedState]]
| <code>void SetPlayerReservedState(int , bool ) </code>
| <code>void SetPlayerReservedState(int a, bool b) </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.SetUnitShareMaskForPlayer | SetUnitShareMaskForPlayer]]
| <code>void SetUnitShareMaskForPlayer(int , int , int , bool ) </code>
| <code>void SetUnitShareMaskForPlayer(int a, int b, int c, bool d) </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.SpendGold | SpendGold]]
| <code>void SpendGold(int , int , int ) </code>
| <code>void SpendGold(int a, int b, int c) </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.UpdateTeamSlot | UpdateTeamSlot]]
| <code>void UpdateTeamSlot(int , int ) </code>
| <code>void UpdateTeamSlot(int a, int b) </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.WhoSelectedHero | WhoSelectedHero]]
| <code>int WhoSelectedHero(string ) </code>
| <code>int WhoSelectedHero(string a) </code>
| No Description Set
| No Description Set
|}
|}
Line 2,197: Line 2,197:


=== CDOTA_BaseNPC ===
=== CDOTA_BaseNPC ===
''No Description Set''
''''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 2,204: Line 2,204:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility | AddAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility | AddAbility]]
| <code>void AddAbility(string ) </code>
| <code>void AddAbility(string a) </code>
| Add an ability to this unit by name.
| Add an ability to this unit by name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddItem | AddItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddItem | AddItem]]
| <code>void AddItem(handle ) </code>
| <code>void AddItem(handle a) </code>
| Add an item to this unit's inventory.
| Add an item to this unit's inventory.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNewModifier | AddNewModifier]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNewModifier | AddNewModifier]]
| <code>void AddNewModifier(handle , handle , string , handle ) </code>
| <code>void AddNewModifier(handle caster, handle optionalSourceAbility, string modifierName, handle modifierData) </code>
| Add a modifier to this unit
|  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw | AddNoDraw]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw | AddNoDraw]]
Line 2,220: Line 2,220:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits | AlertNearbyUnits]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits | AlertNearbyUnits]]
| <code>void AlertNearbyUnits(handle , handle ) </code>
| <code>void AlertNearbyUnits(handle a, handle b) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,228: Line 2,228:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan | AttackNoEarlierThan]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan | AttackNoEarlierThan]]
| <code>void AttackNoEarlierThan(float ) </code>
| <code>void AttackNoEarlierThan(float a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,240: Line 2,240:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately | CastAbilityImmediately]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately | CastAbilityImmediately]]
| <code>void CastAbilityImmediately(handle , int ) </code>
| <code>void CastAbilityImmediately(handle a, int b) </code>
| Cast an ability immediately.
| Cast an ability immediately.
|-
|-
Line 2,248: Line 2,248:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition | CastAbilityOnPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition | CastAbilityOnPosition]]
| <code>void CastAbilityOnPosition(Vector , handle , int ) </code>
| <code>void CastAbilityOnPosition(Vector a, handle b, int c) </code>
| Cast an ability on a position.
| Cast an ability on a position.
|-
|-
Line 2,256: Line 2,256:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle | CastAbilityToggle]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle | CastAbilityToggle]]
| <code>void CastAbilityToggle(handle , int ) </code>
| <code>void CastAbilityToggle(handle a, int b) </code>
| Toggle an ability. ( hAbility, iPlayerIndex )
| Toggle an ability. ( hAbility, iPlayerIndex )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DisassembleItem | DisassembleItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DisassembleItem | DisassembleItem]]
| <code>void DisassembleItem(handle ) </code>
| <code>void DisassembleItem(handle a) </code>
| Disassemble the passed item in this unit's inventory.
| Disassemble the passed item in this unit's inventory.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPosition | DropItemAtPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPosition | DropItemAtPosition]]
| <code>void DropItemAtPosition(Vector , handle ) </code>
| <code>void DropItemAtPosition(Vector a, handle b) </code>
| Drop an item at a given point.
| 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]]
| <code>void DropItemAtPositionImmediate(handle , Vector ) </code>
| <code>void DropItemAtPositionImmediate(handle a, Vector b) </code>
| 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.EjectItemFromStash | EjectItemFromStash]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.EjectItemFromStash | EjectItemFromStash]]
| <code>void EjectItemFromStash(handle ) </code>
| <code>void EjectItemFromStash(handle a) </code>
| Drops the selected item out of this unit's stash.
| Drops the selected item out of this unit's stash.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.FindAbilityByName | FindAbilityByName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.FindAbilityByName | FindAbilityByName]]
| <code>handle FindAbilityByName(string ) </code>
| <code>handle FindAbilityByName(string a) </code>
| Retrieve an ability by name from the unit.
| Retrieve an ability by name from the unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ForceKill | ForceKill]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ForceKill | ForceKill]]
| <code>void ForceKill(bool ) </code>
| <code>void ForceKill(bool a) </code>
| Kill this unit immediately.
| Kill this unit immediately.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityByIndex | GetAbilityByIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityByIndex | GetAbilityByIndex]]
| <code>handle GetAbilityByIndex(int ) </code>
| <code>handle GetAbilityByIndex(int a) </code>
| Retrieve an ability by index from the unit.
| Retrieve an ability by index from the unit.
|-
|-
Line 2,372: Line 2,372:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint | GetCastPoint]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint | GetCastPoint]]
| <code>float GetCastPoint(bool ) </code>
| <code>float GetCastPoint(bool a) </code>
| Parameter: bAttack
| Parameter: bAttack
|-
|-
Line 2,460: Line 2,460:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot | GetItemInSlot]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot | GetItemInSlot]]
| <code>handle GetItemInSlot(int ) </code>
| <code>handle GetItemInSlot(int a) </code>
| Returns nth item in inventory slot (index is zero based)
| Returns nth item in inventory slot (index is zero based)
|-
|-
Line 2,508: Line 2,508:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex | GetModifierNameByIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex | GetModifierNameByIndex]]
| <code>string GetModifierNameByIndex(int ) </code>
| <code>string GetModifierNameByIndex(int a) </code>
| Get a modifier name by index.
| Get a modifier name by index.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMoveSpeedModifier | GetMoveSpeedModifier]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMoveSpeedModifier | GetMoveSpeedModifier]]
| <code>float GetMoveSpeedModifier(float ) </code>
| <code>float GetMoveSpeedModifier(float a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,556: Line 2,556:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit | GetRangeToUnit]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit | GetRangeToUnit]]
| <code>float GetRangeToUnit(handle ) </code>
| <code>float GetRangeToUnit(handle a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,584: Line 2,584:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana | GiveMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana | GiveMana]]
| <code>void GiveMana(float ) </code>
| <code>void GiveMana(float a) </code>
| Give mana to this unit, this can be used for mana gained by abilities or item usage.
| Give mana to this unit, this can be used for mana gained by abilities or item usage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAbility | HasAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAbility | HasAbility]]
| <code>bool HasAbility(string ) </code>
| <code>bool HasAbility(string a) </code>
| See whether this unit has an ability by name.
| See whether this unit has an ability by name.
|-
|-
Line 2,612: Line 2,612:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory | HasItemInInventory]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory | HasItemInInventory]]
| <code>bool HasItemInInventory(string ) </code>
| <code>bool HasItemInInventory(string a) </code>
| See whether this unit has an item by name.
| See whether this unit has an item by name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasModifier | HasModifier]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasModifier | HasModifier]]
| <code>bool HasModifier(string ) </code>
| <code>bool HasModifier(string a) </code>
| Sees if this unit has a given modifier
| Sees if this unit has a given modifier
|-
|-
Line 2,628: Line 2,628:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal | Heal]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal | Heal]]
| <code>void Heal(float , handle ) </code>
| <code>void Heal(float a, handle b) </code>
| Heal this unit.
| Heal this unit.
|-
|-
Line 2,644: Line 2,644:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers | InterruptMotionControllers]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers | InterruptMotionControllers]]
| <code>void InterruptMotionControllers(bool ) </code>
| <code>void InterruptMotionControllers(bool a) </code>
| Parameter boolean determines finding clear space.
| Parameter boolean determines finding clear space.
|-
|-
Line 2,664: Line 2,664:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity | IsAttackingEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity | IsAttackingEntity]]
| <code>bool IsAttackingEntity(handle ) </code>
| <code>bool IsAttackingEntity(handle a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,764: Line 2,764:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOpposingTeam | IsOpposingTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOpposingTeam | IsOpposingTeam]]
| <code>bool IsOpposingTeam(int ) </code>
| <code>bool IsOpposingTeam(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,788: Line 2,788:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPositionInRange | IsPositionInRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPositionInRange | IsPositionInRange]]
| <code>bool IsPositionInRange(Vector , float ) </code>
| <code>bool IsPositionInRange(Vector a, float b) </code>
| No Description Set
| No Description Set
|-
|-
Line 2,836: Line 2,836:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Kill | Kill]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Kill | Kill]]
| <code>void Kill(handle , handle ) </code>
| <code>void Kill(handle a, handle b) </code>
| Kills this NPC, with the params Ability and Attacker
| Kills this NPC, with the params Ability and Attacker
|-
|-
Line 2,848: Line 2,848:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleDueToAttack | MakeVisibleDueToAttack]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleDueToAttack | MakeVisibleDueToAttack]]
| <code>void MakeVisibleDueToAttack(int ) </code>
| <code>void MakeVisibleDueToAttack(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleToTeam | MakeVisibleToTeam]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleToTeam | MakeVisibleToTeam]]
| <code>void MakeVisibleToTeam(int , float ) </code>
| <code>void MakeVisibleToTeam(int a, float b) </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.ModifyHealth | ModifyHealth]]
| <code>void ModifyHealth(int , handle , bool , int ) </code>
| <code>void ModifyHealth(int a, handle b, bool c, int d) </code>
| Sets the health to a specific value, with optional flags or inflictors.
| Sets the health to a specific value, with optional flags or inflictors.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPC | MoveToNPC]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPC | MoveToNPC]]
| <code>void MoveToNPC(handle ) </code>
| <code>void MoveToNPC(handle a) </code>
| Move to follow a unit.
| Move to follow a unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPCToGiveItem | MoveToNPCToGiveItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPCToGiveItem | MoveToNPCToGiveItem]]
| <code>void MoveToNPCToGiveItem(handle , handle ) </code>
| <code>void MoveToNPCToGiveItem(handle a, handle b) </code>
| Give an item to another unit.
| Give an item to another unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPosition | MoveToPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPosition | MoveToPosition]]
| <code>void MoveToPosition(Vector ) </code>
| <code>void MoveToPosition(Vector a) </code>
| Issue a Move-To command
| Issue a Move-To command
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPositionAggressive | MoveToPositionAggressive]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPositionAggressive | MoveToPositionAggressive]]
| <code>void MoveToPositionAggressive(Vector ) </code>
| <code>void MoveToPositionAggressive(Vector a) </code>
| Issue an Attack-Move-To command
| Issue an Attack-Move-To command
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToTargetToAttack | MoveToTargetToAttack]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToTargetToAttack | MoveToTargetToAttack]]
| <code>void MoveToTargetToAttack(handle ) </code>
| <code>void MoveToTargetToAttack(handle a) </code>
| Move to a target to attack.
| Move to a target to attack.
|-
|-
Line 2,908: Line 2,908:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PerformAttack | PerformAttack]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PerformAttack | PerformAttack]]
| <code>void PerformAttack(handle , bool , bool , bool , bool ) </code>
| <code>void PerformAttack(handle a, bool b, bool c, bool d, bool e) </code>
| Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
| Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupDroppedItem | PickupDroppedItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupDroppedItem | PickupDroppedItem]]
| <code>void PickupDroppedItem(handle ) </code>
| <code>void PickupDroppedItem(handle a) </code>
| Pick up a dropped item.
| Pick up a dropped item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupRune | PickupRune]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupRune | PickupRune]]
| <code>void PickupRune(handle ) </code>
| <code>void PickupRune(handle a) </code>
| Pick up a rune.
| Pick up a rune.
|-
|-
Line 2,924: Line 2,924:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ReduceMana | ReduceMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ReduceMana | ReduceMana]]
| <code>void ReduceMana(float ) </code>
| <code>void ReduceMana(float a) </code>
| Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
| Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveAbility | RemoveAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveAbility | RemoveAbility]]
| <code>void RemoveAbility(string ) </code>
| <code>void RemoveAbility(string a) </code>
| Remove an ability from this unit by name.
| Remove an ability from this unit by name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveItem | RemoveItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveItem | RemoveItem]]
| <code>void RemoveItem(handle ) </code>
| <code>void RemoveItem(handle a) </code>
| Removes the passed item from this unit's inventory.
| Removes the passed item from this unit's inventory.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByName | RemoveModifierByName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByName | RemoveModifierByName]]
| <code>void RemoveModifierByName(string ) </code>
| <code>void RemoveModifierByName(string a) </code>
| Removes a modifier
| Removes a modifier
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByNameAndCaster | RemoveModifierByNameAndCaster]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByNameAndCaster | RemoveModifierByNameAndCaster]]
| <code>void RemoveModifierByNameAndCaster(string , handle ) </code>
| <code>void RemoveModifierByNameAndCaster(string a, handle b) </code>
| Removes a modifier that was cast by the given caster
| Removes a modifier that was cast by the given caster
|-
|-
Line 2,952: Line 2,952:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SellItem | SellItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SellItem | SellItem]]
| <code>void SellItem(handle ) </code>
| <code>void SellItem(handle a) </code>
| Sells the passed item in this unit's inventory.
| Sells the passed item in this unit's inventory.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAdditionalBattleMusicWeight | SetAdditionalBattleMusicWeight]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAdditionalBattleMusicWeight | SetAdditionalBattleMusicWeight]]
| <code>void SetAdditionalBattleMusicWeight(float ) </code>
| <code>void SetAdditionalBattleMusicWeight(float a) </code>
| Combat involving this creature will have this weight added to the music calcuations
| Combat involving this creature will have this weight added to the music calcuations
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttackCapability | SetAttackCapability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttackCapability | SetAttackCapability]]
| <code>void SetAttackCapability(int ) </code>
| <code>void SetAttackCapability(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttacking | SetAttacking]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttacking | SetAttacking]]
| <code>void SetAttacking(handle ) </code>
| <code>void SetAttacking(handle a) </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.SetBaseAttackTime | SetBaseAttackTime]]
| <code>void SetBaseAttackTime(float ) </code>
| <code>void SetBaseAttackTime(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMax | SetBaseDamageMax]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMax | SetBaseDamageMax]]
| <code>void SetBaseDamageMax(int ) </code>
| <code>void SetBaseDamageMax(int a) </code>
| Sets the minimum base damage.
| Sets the minimum base damage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMin | SetBaseDamageMin]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMin | SetBaseDamageMin]]
| <code>void SetBaseDamageMin(int ) </code>
| <code>void SetBaseDamageMin(int a) </code>
| Sets the minimum base damage.
| Sets the minimum base damage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseHealthRegen | SetBaseHealthRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseHealthRegen | SetBaseHealthRegen]]
| <code>void SetBaseHealthRegen(float ) </code>
| <code>void SetBaseHealthRegen(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMagicalResistanceValue | SetBaseMagicalResistanceValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMagicalResistanceValue | SetBaseMagicalResistanceValue]]
| <code>void SetBaseMagicalResistanceValue(float ) </code>
| <code>void SetBaseMagicalResistanceValue(float a) </code>
| Sets base magical armor value.
| Sets base magical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseManaRegen | SetBaseManaRegen]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseManaRegen | SetBaseManaRegen]]
| <code>void SetBaseManaRegen(float ) </code>
| <code>void SetBaseManaRegen(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMaxHealth | SetBaseMaxHealth]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMaxHealth | SetBaseMaxHealth]]
| <code>void SetBaseMaxHealth(float ) </code>
| <code>void SetBaseMaxHealth(float a) </code>
| Set a new base max health value.
| Set a new base max health value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMoveSpeed | SetBaseMoveSpeed]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMoveSpeed | SetBaseMoveSpeed]]
| <code>void SetBaseMoveSpeed(int ) </code>
| <code>void SetBaseMoveSpeed(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetControllableByPlayer | SetControllableByPlayer]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetControllableByPlayer | SetControllableByPlayer]]
| <code>void SetControllableByPlayer(int , bool ) </code>
| <code>void SetControllableByPlayer(int a, bool b) </code>
| Set this unit controllable by the player with the passed ID.
| Set this unit controllable by the player with the passed ID.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorCastTarget | SetCursorCastTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorCastTarget | SetCursorCastTarget]]
| <code>void SetCursorCastTarget(handle ) </code>
| <code>void SetCursorCastTarget(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorPosition | SetCursorPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorPosition | SetCursorPosition]]
| <code>void SetCursorPosition(Vector ) </code>
| <code>void SetCursorPosition(Vector a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorTargetingNothing | SetCursorTargetingNothing]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorTargetingNothing | SetCursorTargetingNothing]]
| <code>void SetCursorTargetingNothing(bool ) </code>
| <code>void SetCursorTargetingNothing(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDayTimeVisionRange | SetDayTimeVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDayTimeVisionRange | SetDayTimeVisionRange]]
| <code>void SetDayTimeVisionRange(int ) </code>
| <code>void SetDayTimeVisionRange(int a) </code>
| Set the base vision range.
| Set the base vision range.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDeathXP | SetDeathXP]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDeathXP | SetDeathXP]]
| <code>void SetDeathXP(int ) </code>
| <code>void SetDeathXP(int a) </code>
| Set the XP bounty on this unit
| Set the XP bounty on this unit
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetForceAttackTarget | SetForceAttackTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetForceAttackTarget | SetForceAttackTarget]]
| <code>void SetForceAttackTarget(handle ) </code>
| <code>void SetForceAttackTarget(handle a) </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.SetHasInventory | SetHasInventory]]
| <code>void SetHasInventory(bool ) </code>
| <code>void SetHasInventory(bool a) </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.SetHullRadius | SetHullRadius]]
| <code>void SetHullRadius(float ) </code>
| <code>void SetHullRadius(float a) </code>
| Set the collision hull radius of this NPC
| Set the collision hull radius of this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetIdleAcquire | SetIdleAcquire]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetIdleAcquire | SetIdleAcquire]]
| <code>void SetIdleAcquire(bool ) </code>
| <code>void SetIdleAcquire(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetInitialGoalEntity | SetInitialGoalEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetInitialGoalEntity | SetInitialGoalEntity]]
| <code>void SetInitialGoalEntity(handle ) </code>
| <code>void SetInitialGoalEntity(handle a) </code>
| Sets the initial waypoint goal for this NPC
| Sets the initial waypoint goal for this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMana | SetMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMana | SetMana]]
| <code>void SetMana(float ) </code>
| <code>void SetMana(float a) </code>
| Set the mana on this unit.
| Set the mana on this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMaximumGoldBounty | SetMaximumGoldBounty]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMaximumGoldBounty | SetMaximumGoldBounty]]
| <code>void SetMaximumGoldBounty(int ) </code>
| <code>void SetMaximumGoldBounty(int a) </code>
| Set the maximum gold bounty for this unit.
| Set the maximum gold bounty for this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMinimumGoldBounty | SetMinimumGoldBounty]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMinimumGoldBounty | SetMinimumGoldBounty]]
| <code>void SetMinimumGoldBounty(int ) </code>
| <code>void SetMinimumGoldBounty(int a) </code>
| Set the minimum gold bounty for this unit.
| Set the minimum gold bounty for this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMoveCapability | SetMoveCapability]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMoveCapability | SetMoveCapability]]
| <code>void SetMoveCapability(int ) </code>
| <code>void SetMoveCapability(int a) </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.SetMustReachEachGoalEntity | SetMustReachEachGoalEntity]]
| <code>void SetMustReachEachGoalEntity(bool ) </code>
| <code>void SetMustReachEachGoalEntity(bool a) </code>
| Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
| Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNeverMoveToClearSpace | SetNeverMoveToClearSpace]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNeverMoveToClearSpace | SetNeverMoveToClearSpace]]
| <code>void SetNeverMoveToClearSpace(bool ) </code>
| <code>void SetNeverMoveToClearSpace(bool a) </code>
| If set to true, we will never attempt to move this unit to clear space, even when it unphases.
| If set to true, we will never attempt to move this unit to clear space, even when it unphases.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNightTimeVisionRange | SetNightTimeVisionRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNightTimeVisionRange | SetNightTimeVisionRange]]
| <code>void SetNightTimeVisionRange(int ) </code>
| <code>void SetNightTimeVisionRange(int a) </code>
| Set the base vision range.
| Set the base vision range.
|-
|-
Line 3,076: Line 3,076:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetPhysicalArmorBaseValue | SetPhysicalArmorBaseValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetPhysicalArmorBaseValue | SetPhysicalArmorBaseValue]]
| <code>void SetPhysicalArmorBaseValue(float ) </code>
| <code>void SetPhysicalArmorBaseValue(float a) </code>
| Sets base physical armor value.
| Sets base physical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetRangedProjectileName | SetRangedProjectileName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetRangedProjectileName | SetRangedProjectileName]]
| <code>void SetRangedProjectileName(string ) </code>
| <code>void SetRangedProjectileName(string a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetStolenScepter | SetStolenScepter]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetStolenScepter | SetStolenScepter]]
| <code>void SetStolenScepter(bool ) </code>
| <code>void SetStolenScepter(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetUnitName | SetUnitName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetUnitName | SetUnitName]]
| <code>void SetUnitName(string ) </code>
| <code>void SetUnitName(string a) </code>
| No Description Set
| No Description Set
|-
|-
Line 3,096: Line 3,096:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SpendMana | SpendMana]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SpendMana | SpendMana]]
| <code>void SpendMana(float , handle ) </code>
| <code>void SpendMana(float a, handle b) </code>
| Spend mana from this unit, this can be used for spending mana from abilities or item usage.
| Spend mana from this unit, this can be used for spending mana from abilities or item usage.
|-
|-
Line 3,104: Line 3,104:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SwapAbilities | SwapAbilities]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SwapAbilities | SwapAbilities]]
| <code>void SwapAbilities(string , string , bool , bool ) </code>
| <code>void SwapAbilities(string a, string b, bool c, bool d) </code>
| Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, ''bool'' bEnable1, ''bool'' bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.
| Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, ''bool'' bEnable1, ''bool'' bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.
|-
|-
Line 3,116: Line 3,116:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerSpellAbsorb | TriggerSpellAbsorb]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerSpellAbsorb | TriggerSpellAbsorb]]
| <code>bool TriggerSpellAbsorb(handle ) </code>
| <code>bool TriggerSpellAbsorb(handle a) </code>
| Query whether the passed ability will trigger spell absorb on this unit.
| Query whether the passed ability will trigger spell absorb on this unit.
|-
|-
Line 3,126: Line 3,126:


=== CDOTA_BaseNPC_Hero ===
=== CDOTA_BaseNPC_Hero ===
''No Description Set''
''''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 3,133: Line 3,133:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.AddExperience | AddExperience]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.AddExperience | AddExperience]]
| <code>bool AddExperience(float , bool ) </code>
| <code>bool AddExperience(float amount, bool applyBotDifficultyScaling) </code>
| Params: Float XP, Bool applyBotDifficultyScaling
|  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.Buyback | Buyback]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.Buyback | Buyback]]
Line 3,177: Line 3,177:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAttacker | GetAttacker]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAttacker | GetAttacker]]
| <code>int GetAttacker(int ) </code>
| <code>int GetAttacker(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 3,333: Line 3,333:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasRoomForItem | HasRoomForItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasRoomForItem | HasRoomForItem]]
| <code>int HasRoomForItem(string , bool , bool ) </code>
| <code>int HasRoomForItem(string a, bool b, bool c) </code>
| 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.HeroLevelUp | HeroLevelUp]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HeroLevelUp | HeroLevelUp]]
| <code>void HeroLevelUp(bool ) </code>
| <code>void HeroLevelUp(bool a) </code>
| Levels up the hero, true or false to play effects.
| Levels up the hero, true or false to play effects.
|-
|-
Line 3,385: Line 3,385:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.KilledHero | KilledHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.KilledHero | KilledHero]]
| <code>void KilledHero(handle , handle ) </code>
| <code>void KilledHero(handle a, handle b) </code>
| Args: Hero, Inflictor
| Args: Hero, Inflictor
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyAgility | ModifyAgility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyAgility | ModifyAgility]]
| <code>void ModifyAgility(float ) </code>
| <code>void ModifyAgility(float a) </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|-
|-
Line 3,397: Line 3,397:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyIntellect | ModifyIntellect]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyIntellect | ModifyIntellect]]
| <code>void ModifyIntellect(float ) </code>
| <code>void ModifyIntellect(float a) </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyStrength | ModifyStrength]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyStrength | ModifyStrength]]
| <code>void ModifyStrength(float ) </code>
| <code>void ModifyStrength(float a) </code>
| Adds passed value to base attribute value, then calls CalculateStatBonus.
| Adds passed value to base attribute value, then calls CalculateStatBonus.
|-
|-
Line 3,413: Line 3,413:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RespawnHero | RespawnHero]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RespawnHero | RespawnHero]]
| <code>void RespawnHero(bool , bool , bool ) </code>
| <code>void RespawnHero(bool buyback, bool unknown1, bool unknown2) </code>
| Respawn this hero.
|  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetAbilityPoints | SetAbilityPoints]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetAbilityPoints | SetAbilityPoints]]
| <code>void SetAbilityPoints(int ) </code>
| <code>void SetAbilityPoints(int a) </code>
| Sets the current unspent ability point's.
| Sets the current unspent ability point's.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseAgility | SetBaseAgility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseAgility | SetBaseAgility]]
| <code>void SetBaseAgility(float ) </code>
| <code>void SetBaseAgility(float a) </code>
| 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.SetBaseIntellect | SetBaseIntellect]]
| <code>void SetBaseIntellect(float ) </code>
| <code>void SetBaseIntellect(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseStrength | SetBaseStrength]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseStrength | SetBaseStrength]]
| <code>void SetBaseStrength(float ) </code>
| <code>void SetBaseStrength(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| <code>void SetBuybackCooldownTime(float ) </code>
| <code>void SetBuybackCooldownTime(float a) </code>
| Sets the buyback cooldown time.
| Sets the buyback cooldown time.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuyBackDisabledByReapersScythe | SetBuyBackDisabledByReapersScythe]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuyBackDisabledByReapersScythe | SetBuyBackDisabledByReapersScythe]]
| <code>void SetBuyBackDisabledByReapersScythe(bool ) </code>
| <code>void SetBuyBackDisabledByReapersScythe(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| <code>void SetBuybackGoldLimitTime(float ) </code>
| <code>void SetBuybackGoldLimitTime(float a) </code>
| Set the amount of time gold gain is limited after buying back.
| Set the amount of time gold gain is limited after buying back.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetCustomDeathXP | SetCustomDeathXP]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetCustomDeathXP | SetCustomDeathXP]]
| <code>void SetCustomDeathXP(int ) </code>
| <code>void SetCustomDeathXP(int a) </code>
| Sets a custom experience value for this hero. {{tip|GameRules boolean must be set for this to work!}}
| Sets a custom experience value for this hero. {{tip|GameRules boolean must be set for this to work!}}
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetGold | SetGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetGold | SetGold]]
| <code>void SetGold(int , bool ) </code>
| <code>void SetGold(int a, bool b) </code>
| Sets the gold amount for the player owning this hero
| Sets the gold amount for the player owning this hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetPlayerID | SetPlayerID]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetPlayerID | SetPlayerID]]
| <code>void SetPlayerID(int ) </code>
| <code>void SetPlayerID(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetRespawnPosition | SetRespawnPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetRespawnPosition | SetRespawnPosition]]
| <code>void SetRespawnPosition(Vector ) </code>
| <code>void SetRespawnPosition(Vector a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetTimeUntilRespawn | SetTimeUntilRespawn]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetTimeUntilRespawn | SetTimeUntilRespawn]]
| <code>void SetTimeUntilRespawn(float ) </code>
| <code>void SetTimeUntilRespawn(float a) </code>
| No Description Set
| No Description Set
|-
|-
Line 3,469: Line 3,469:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SpendGold | SpendGold]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SpendGold | SpendGold]]
| <code>void SpendGold(int , int ) </code>
| <code>void SpendGold(int a, int b) </code>
| Args: ''int'' nGold, ''int'' nReason
| Args: ''int'' nGold, ''int'' nReason
|-
|-
Line 3,477: Line 3,477:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UpgradeAbility | UpgradeAbility]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UpgradeAbility | UpgradeAbility]]
| <code>void UpgradeAbility(handle ) </code>
| <code>void UpgradeAbility(handle a) </code>
| This upgrades the passed ability if it exists and the hero has enough ability point's.
| This upgrades the passed ability if it exists and the hero has enough ability point's.
|-
|-
Line 3,494: Line 3,494:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.AddItemDrop | AddItemDrop]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.AddItemDrop | AddItemDrop]]
| <code>void AddItemDrop(handle ) </code>
| <code>void AddItemDrop(handle a) </code>
| Add the specified item drop to this creature
| Add the specified item drop to this creature
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.CreatureLevelUp | CreatureLevelUp]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.CreatureLevelUp | CreatureLevelUp]]
| <code>void CreatureLevelUp(int ) </code>
| <code>void CreatureLevelUp(int a) </code>
| Level the creature up by the specified number of levels
| Level the creature up by the specified number of levels
|-
|-
Line 3,506: Line 3,506:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetArmorGain | SetArmorGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetArmorGain | SetArmorGain]]
| <code>void SetArmorGain(float ) </code>
| <code>void SetArmorGain(float a) </code>
| Set the armor gained per level on this creature.
| 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 a) </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.SetBountyGain | SetBountyGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetBountyGain | SetBountyGain]]
| <code>void SetBountyGain(int ) </code>
| <code>void SetBountyGain(int a) </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.SetChampion | SetChampion]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetChampion | SetChampion]]
| <code>void SetChampion(bool ) </code>
| <code>void SetChampion(bool a) </code>
| Flag this unit as a champion creature.
| Flag this unit as a champion creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDamageGain | SetDamageGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDamageGain | SetDamageGain]]
| <code>void SetDamageGain(int ) </code>
| <code>void SetDamageGain(int a) </code>
| 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.SetDisableResistanceGain | SetDisableResistanceGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDisableResistanceGain | SetDisableResistanceGain]]
| <code>void SetDisableResistanceGain(float ) </code>
| <code>void SetDisableResistanceGain(float a) </code>
| Set the disable 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]]
| <code>void SetHPGain(int ) </code>
| <code>void SetHPGain(int a) </code>
| 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.SetHPRegenGain | SetHPRegenGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPRegenGain | SetHPRegenGain]]
| <code>void SetHPRegenGain(float ) </code>
| <code>void SetHPRegenGain(float a) </code>
| Set the hit point's regen gained per level on this creature.
| Set the hit point's regen gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMagicResistanceGain | SetMagicResistanceGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMagicResistanceGain | SetMagicResistanceGain]]
| <code>void SetMagicResistanceGain(float ) </code>
| <code>void SetMagicResistanceGain(float a) </code>
| Set the magic resistance gained per level on this creature.
| Set the magic resistance 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.SetManaGain | SetManaGain]]
| <code>void SetManaGain(int ) </code>
| <code>void SetManaGain(int a) </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.SetManaRegenGain | SetManaRegenGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetManaRegenGain | SetManaRegenGain]]
| <code>void SetManaRegenGain(float ) </code>
| <code>void SetManaRegenGain(float a) </code>
| Set the mana point's regen gained per level on this creature.
| Set the mana point's regen gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMoveSpeedGain | SetMoveSpeedGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMoveSpeedGain | SetMoveSpeedGain]]
| <code>void SetMoveSpeedGain(int ) </code>
| <code>void SetMoveSpeedGain(int a) </code>
| Set the move speed gained per level on this creature.
| Set the move speed gained per level on this creature.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetXPGain | SetXPGain]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetXPGain | SetXPGain]]
| <code>void SetXPGain(int ) </code>
| <code>void SetXPGain(int a) </code>
| Set the xp reward gained per level on this creature.
| Set the xp reward gained per level on this creature.
|}
|}
Line 3,571: Line 3,571:
|-
|-
| [[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 a) </code>
| Set the invulnerability counter of this building.
| Set the invulnerability counter of this building.
|}
|}
Line 3,632: Line 3,632:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GrantItem | GrantItem]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GrantItem | GrantItem]]
| <code>void GrantItem(string , bool ) </code>
| <code>void GrantItem(string a, bool b) </code>
| ( sItemName ) - grant an item to the unit by name.
| ( sItemName ) - grant an item to the unit by name.
|-
|-
Line 3,640: Line 3,640:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsFacing | IsFacing]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsFacing | IsFacing]]
| <code>bool IsFacing(Vector , float ) </code>
| <code>bool IsFacing(Vector a, float b) </code>
| ( vecTargetPosition, flAngleTolerance ) - returns true if the unit is within flAngleTolerance degrees of the target position
| ( vecTargetPosition, flAngleTolerance ) - returns true if the unit is within flAngleTolerance degrees of the target position
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetBlocking | SetBlocking]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetBlocking | SetBlocking]]
| <code>void SetBlocking(bool ) </code>
| <code>void SetBlocking(bool a) </code>
| ( bShouldBlock ) - Set the blocking state of this unit.
| ( 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]]
| <code>void SetMaxSpeed(float ) </code>
| <code>void SetMaxSpeed(float a) </code>
| ( flMaxSpeed ) - sets unit's max speed
| ( flMaxSpeed ) - sets unit's max speed
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetEntity | SetMovementTargetEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetEntity | SetMovementTargetEntity]]
| <code>void SetMovementTargetEntity(handle , float ) </code>
| <code>void SetMovementTargetEntity(handle a, float b) </code>
| ( hTargetEntity, flTargetRange ) - Try to move this unit to the given range from the target entity.
| ( hTargetEntity, flTargetRange ) - Try to move this unit to the given range from the target entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetPosition | SetMovementTargetPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetPosition | SetMovementTargetPosition]]
| <code>void SetMovementTargetPosition(Vector , float ) </code>
| <code>void SetMovementTargetPosition(Vector a, float b) </code>
| ( vecTargetPosition, flTargetRange ) - Try to move this unit to the given range from the target point.
| ( vecTargetPosition, flTargetRange ) - Try to move this unit to the given range from the target point.
|-
|-
| [[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 a) </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]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeAngle | SetSightConeAngle]]
| <code>void SetSightConeAngle(float ) </code>
| <code>void SetSightConeAngle(float a) </code>
| ( flAngleDegrees ) - sets angle in which the unit can see things up to sight range
| ( flAngleDegrees ) - sets angle in which the unit can see things up to sight range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeRange | SetSightConeRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeRange | SetSightConeRange]]
| <code>void SetSightConeRange(float ) </code>
| <code>void SetSightConeRange(float a) </code>
| ( fRange ) - set range of unit's sight cone
| ( fRange ) - set range of unit's sight cone
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetTurnRate | SetTurnRate]]
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetTurnRate | SetTurnRate]]
| <code>void SetTurnRate(float ) </code>
| <code>void SetTurnRate(float a) </code>
| ( flTurnRate ) - sets unit's turn rate in degrees per second
| ( flTurnRate ) - sets unit's turn rate in degrees per second
|}
|}
Line 3,689: Line 3,689:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetAlwaysShowPlayerInventory | SetAlwaysShowPlayerInventory]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetAlwaysShowPlayerInventory | SetAlwaysShowPlayerInventory]]
| <code>void SetAlwaysShowPlayerInventory(bool ) </code>
| <code>void SetAlwaysShowPlayerInventory(bool a) </code>
| Show the player hero's inventory in the HUD, regardless of what unit is selected.
| Show the player hero's inventory in the HUD, regardless of what unit is selected.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBotThinkingEnabled | SetBotThinkingEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBotThinkingEnabled | SetBotThinkingEnabled]]
| <code>void SetBotThinkingEnabled(bool ) </code>
| <code>void SetBotThinkingEnabled(bool a) </code>
| Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc.
| Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBuybackEnabled | SetBuybackEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBuybackEnabled | SetBuybackEnabled]]
| <code>void SetBuybackEnabled(bool ) </code>
| <code>void SetBuybackEnabled(bool a) </code>
| Enables or disables buyback completely
| Enables or disables buyback completely
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCameraDistanceOverride | SetCameraDistanceOverride]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCameraDistanceOverride | SetCameraDistanceOverride]]
| <code>void SetCameraDistanceOverride(float ) </code>
| <code>void SetCameraDistanceOverride(float a) </code>
| Set a different camera distance; dota default is 1134.
| Set a different camera distance; dota default is 1134.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCooldownEnabled | SetCustomBuybackCooldownEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCooldownEnabled | SetCustomBuybackCooldownEnabled]]
| <code>void SetCustomBuybackCooldownEnabled(bool ) </code>
| <code>void SetCustomBuybackCooldownEnabled(bool a) </code>
| Turns on capability to define custom buyback cooldowns.
| 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]]
| <code>void SetCustomBuybackCostEnabled(bool ) </code>
| <code>void SetCustomBuybackCostEnabled(bool a) </code>
| Turns on capability to define custom buyback costs.
| Turns on capability to define custom buyback costs.
|-
|-
Line 3,717: Line 3,717:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomXPRequiredToReachNextLevel | SetCustomXPRequiredToReachNextLevel]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomXPRequiredToReachNextLevel | SetCustomXPRequiredToReachNextLevel]]
| <code>void SetCustomXPRequiredToReachNextLevel(handle ) </code>
| <code>void SetCustomXPRequiredToReachNextLevel(handle a) </code>
| Allows definition of a ''table'' of hero XP values.
| Allows definition of a ''table'' of hero XP values.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetFogOfWarDisabled | SetFogOfWarDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetFogOfWarDisabled | SetFogOfWarDisabled]]
| <code>void SetFogOfWarDisabled(bool ) </code>
| <code>void SetFogOfWarDisabled(bool a) </code>
| Turn the fog of war on or off.
| Turn the fog of war on or off.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetGoldSoundDisabled | SetGoldSoundDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetGoldSoundDisabled | SetGoldSoundDisabled]]
| <code>void SetGoldSoundDisabled(bool ) </code>
| <code>void SetGoldSoundDisabled(bool a) </code>
| Turn the sound when gold is acquired off/on. Takes a ''bool''.
| Turn the sound when gold is acquired off/on. Takes a ''bool''.
|-
|-
Line 3,733: Line 3,733:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRecommendedItemsDisabled | SetRecommendedItemsDisabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRecommendedItemsDisabled | SetRecommendedItemsDisabled]]
| <code>void SetRecommendedItemsDisabled(bool ) </code>
| <code>void SetRecommendedItemsDisabled(bool a) </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.SetRemoveIllusionsOnDeath | SetRemoveIllusionsOnDeath]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRemoveIllusionsOnDeath | SetRemoveIllusionsOnDeath]]
| <code>void SetRemoveIllusionsOnDeath(bool ) </code>
| <code>void SetRemoveIllusionsOnDeath(bool a) </code>
| Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds.
| Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValue | SetTopBarTeamValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValue | SetTopBarTeamValue]]
| <code>void SetTopBarTeamValue(int , int ) </code>
| <code>void SetTopBarTeamValue(int a, int b) </code>
| 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.SetTopBarTeamValuesOverride | SetTopBarTeamValuesOverride]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesOverride | SetTopBarTeamValuesOverride]]
| <code>void SetTopBarTeamValuesOverride(bool ) </code>
| <code>void SetTopBarTeamValuesOverride(bool a) </code>
| Override the values of the team values on the top game bar.
| Override the values of the team values on the top game bar.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesVisible | SetTopBarTeamValuesVisible]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesVisible | SetTopBarTeamValuesVisible]]
| <code>void SetTopBarTeamValuesVisible(bool ) </code>
| <code>void SetTopBarTeamValuesVisible(bool a) </code>
| Turning on/off the team values on the top game bar.
| Turning on/off the team values on the top game bar.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTowerBackdoorProtectionEnabled | SetTowerBackdoorProtectionEnabled]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTowerBackdoorProtectionEnabled | SetTowerBackdoorProtectionEnabled]]
| <code>void SetTowerBackdoorProtectionEnabled(bool ) </code>
| <code>void SetTowerBackdoorProtectionEnabled(bool a) </code>
| Enables/Disables tower backdoor protection
| Enables/Disables tower backdoor protection
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetUseCustomHeroLevels | SetUseCustomHeroLevels]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetUseCustomHeroLevels | SetUseCustomHeroLevels]]
| <code>void SetUseCustomHeroLevels(bool ) </code>
| <code>void SetUseCustomHeroLevels(bool a) </code>
| Turn on custom-defined XP values for hero level ups. The ''table'' should be defined before switching this on.
| Turn on custom-defined XP values for hero level ups. The ''table'' should be defined before switching this on.
|}
|}
Line 3,770: Line 3,770:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.AddSubquest | AddSubquest]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.AddSubquest | AddSubquest]]
| <code>void AddSubquest(handle ) </code>
| <code>void AddSubquest(handle a) </code>
| Add a subquest to this quest
| Add a subquest to this quest
|-
|-
Line 3,778: Line 3,778:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquest | GetSubquest]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquest | GetSubquest]]
| <code>handle GetSubquest(int ) </code>
| <code>handle GetSubquest(int a) </code>
| Finds a subquest from this quest by index
| Finds a subquest from this quest by index
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquestByName | GetSubquestByName]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquestByName | GetSubquestByName]]
| <code>handle GetSubquestByName(string ) </code>
| <code>handle GetSubquestByName(string a) </code>
| Finds a subquest from this quest by name
| Finds a subquest from this quest by name
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.RemoveSubquest | RemoveSubquest]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.RemoveSubquest | RemoveSubquest]]
| <code>void RemoveSubquest(handle ) </code>
| <code>void RemoveSubquest(handle a) </code>
| Remove a subquest from this quest
| Remove a subquest from this quest
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceString | SetTextReplaceString]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceString | SetTextReplaceString]]
| <code>void SetTextReplaceString(string ) </code>
| <code>void SetTextReplaceString(string a) </code>
| Set the text replace ''string'' for this quest
| Set the text replace ''string'' for this quest
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceValue | SetTextReplaceValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceValue | SetTextReplaceValue]]
| <code>void SetTextReplaceValue(int , int ) </code>
| <code>void SetTextReplaceValue(int a, int b) </code>
| Set a quest value
| Set a quest value
|}
|}
Line 3,811: Line 3,811:
|-
|-
| [[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 a) </code>
| Set the text replace ''string'' for this subquest
| Set the text replace ''string'' for this subquest
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceValue | SetTextReplaceValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceValue | SetTextReplaceValue]]
| <code>void SetTextReplaceValue(int , int ) </code>
| <code>void SetTextReplaceValue(int a, int b) </code>
| Set a subquest value
| Set a subquest value
|}
|}
Line 3,828: Line 3,828:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPhysicsComponent.ExpensiveInstantRayCast | ExpensiveInstantRayCast]]
| [[Dota 2 Workshop Tools/Scripting/API/CPhysicsComponent.ExpensiveInstantRayCast | ExpensiveInstantRayCast]]
| <code>bool ExpensiveInstantRayCast(Vector , Vector , handle ) </code>
| <code>bool ExpensiveInstantRayCast(Vector a, Vector b, handle c) </code>
| Do an instant (i.e. blocking) Ray Cast. Will do a handle/queue version later. Don't plan to use this for real!
| Do an instant (i.e. blocking) Ray Cast. Will do a handle/queue version later. Don't plan to use this for real!
|}
|}
Line 3,853: Line 3,853:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.SetSpawnCallback | SetSpawnCallback]]
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.SetSpawnCallback | SetSpawnCallback]]
| <code>void SetSpawnCallback(handle , handle ) </code>
| <code>void SetSpawnCallback(handle a, handle b) </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.
|}
|}
Line 3,866: Line 3,866:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddImpulseAtPosition | AddImpulseAtPosition]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddImpulseAtPosition | AddImpulseAtPosition]]
| <code>void AddImpulseAtPosition(Vector , Vector ) </code>
| <code>void AddImpulseAtPosition(Vector a, Vector b) </code>
| Apply an impulse at a worldspace position to the physics
| Apply an impulse at a worldspace position to the physics
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddVelocity | AddVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddVelocity | AddVelocity]]
| <code>void AddVelocity(Vector , Vector ) </code>
| <code>void AddVelocity(Vector a, Vector b) </code>
| Add linear and angular velocity to the physics object
| Add linear and angular velocity to the physics object
|-
|-
Line 3,886: Line 3,886:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.LookupSequence | LookupSequence]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.LookupSequence | LookupSequence]]
| <code><> LookupSequence(string ) </code>
| <code><> LookupSequence(string a) </code>
| Returns a sequence id given a name
| Returns a sequence id given a name
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SequenceDuration | SequenceDuration]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SequenceDuration | SequenceDuration]]
| <code>float SequenceDuration(string ) </code>
| <code>float SequenceDuration(string a) </code>
| 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.SetAngularVelocity | SetAngularVelocity]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAngularVelocity | SetAngularVelocity]]
| <code>void SetAngularVelocity(Vector ) </code>
| <code>void SetAngularVelocity(Vector a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAnimation | SetAnimation]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAnimation | SetAnimation]]
| <code>void SetAnimation(string ) </code>
| <code>void SetAnimation(string a) </code>
| Pass ''string'' for the animation to play on this model
| Pass ''string'' for the animation to play on this model
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetBodyGroup | SetBodyGroup]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetBodyGroup | SetBodyGroup]]
| <code>void SetBodyGroup(string ) </code>
| <code>void SetBodyGroup(string a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetMaterialGroup | SetMaterialGroup]]
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetMaterialGroup | SetMaterialGroup]]
| <code>void SetMaterialGroup(utlstringtoken ) </code>
| <code>void SetMaterialGroup(utlstringtoken a) </code>
| No Description Set
| No Description Set
|-
|-
Line 3,916: Line 3,916:


=== CBaseAnimating ===
=== CBaseAnimating ===
''No Description Set''
''A class containing functions involved in animations''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 3,923: Line 3,923:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentAngles | GetAttachmentAngles]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentAngles | GetAttachmentAngles]]
| <code>Vector GetAttachmentAngles(int ) </code>
| <code>Vector GetAttachmentAngles(int a) </code>
| Get the attachement id's angles as a p,y,r ''vector''
| Get the attachement id's angles as a p,y,r ''vector''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentOrigin | GetAttachmentOrigin]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentOrigin | GetAttachmentOrigin]]
| <code>Vector GetAttachmentOrigin(int ) </code>
| <code>Vector GetAttachmentOrigin(int a) </code>
| Get the attachement id's origin ''vector''
| Get the attachement id's origin ''vector''
|-
|-
Line 3,935: Line 3,935:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.ScriptLookupAttachment | ScriptLookupAttachment]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.ScriptLookupAttachment | ScriptLookupAttachment]]
| <code>int ScriptLookupAttachment(string ) </code>
| <code>int ScriptLookupAttachment(string a) </code>
| Get the named attachment id
| Get the named attachment id
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetBodygroup | SetBodygroup]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetBodygroup | SetBodygroup]]
| <code>void SetBodygroup(int , int ) </code>
| <code>void SetBodygroup(int a, int b) </code>
| Sets a bodygroup
| 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 scale) </code>
| ( flScale ) - set scale of entity's model
| Sets the model's scale to <i>scale</i>, <br/>so if a unit had its model scale at 1, and you use <i>SetModelScale(<b>10.0</b>)</i>, it would set the scale to <b>10.0</b>.
|-
|-
| [[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 a, float b) </code>
| Set the specified pose parameter to the specified value
| Set the specified pose parameter to the specified value
|}
|}
Line 3,970: Line 3,970:


=== ProjectileManager ===
=== ProjectileManager ===
''No Description Set''
''The projectile manager, it manages projectiles.''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 3,977: Line 3,977:
|-
|-
| [[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 a) </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]]
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateTrackingProjectile | CreateTrackingProjectile]]
| <code>void CreateTrackingProjectile(handle ) </code>
| <code>void CreateTrackingProjectile(handle a) </code>
| Creates a tracking projectile
| Creates a tracking projectile
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.DestroyLinearProjectile | DestroyLinearProjectile]]
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.DestroyLinearProjectile | DestroyLinearProjectile]]
| <code>void DestroyLinearProjectile(int ) </code>
| <code>void DestroyLinearProjectile(int a) </code>
| Destroys the linear projectile matching the argument ID
| Destroys the linear projectile matching the argument ID
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.ProjectileDodge | ProjectileDodge]]
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.ProjectileDodge | ProjectileDodge]]
| <code>void ProjectileDodge(handle ) </code>
| <code>void ProjectileDodge(handle a) </code>
| Makes the specified unit dodge projectiles
| Makes the specified unit dodge projectiles
|}
|}
Line 4,010: Line 4,010:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.IsTouching | IsTouching]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.IsTouching | IsTouching]]
| <code>bool IsTouching(handle ) </code>
| <code>bool IsTouching(handle a) </code>
| Checks whether the passed entity is touching the trigger.
| Checks whether the passed entity is touching the trigger.
|}
|}
Line 4,027: Line 4,027:
|-
|-
| [[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 a) </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.SpawnEntityAtLocation | SpawnEntityAtLocation]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtLocation | SpawnEntityAtLocation]]
| <code>void SpawnEntityAtLocation(Vector , Vector ) </code>
| <code>void SpawnEntityAtLocation(Vector a, Vector b) </code>
| Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll)
| Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtNamedEntityOrigin | SpawnEntityAtNamedEntityOrigin]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtNamedEntityOrigin | SpawnEntityAtNamedEntityOrigin]]
| <code>void SpawnEntityAtNamedEntityOrigin(string ) </code>
| <code>void SpawnEntityAtNamedEntityOrigin(string a) </code>
| Create an entity at the location of a named entity
| Create an entity at the location of a named entity
|}
|}
Line 4,048: Line 4,048:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAVoteSystem.StartVote | StartVote]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAVoteSystem.StartVote | StartVote]]
| <code>void StartVote(handle ) </code>
| <code>void StartVote(handle a) </code>
| Starts a vote, based upon a ''table'' of parameters
| Starts a vote, based upon a ''table'' of parameters
|}
|}
Line 4,061: Line 4,061:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CMarkupVolumeTagged.HasTag | HasTag]]
| [[Dota 2 Workshop Tools/Scripting/API/CMarkupVolumeTagged.HasTag | HasTag]]
| <code>bool HasTag(string ) </code>
| <code>bool HasTag(string a) </code>
| Does this volume have the given tag.
| Does this volume have the given tag.
|}
|}
Line 4,074: Line 4,074:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.AddResource | AddResource]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.AddResource | AddResource]]
| <code>void AddResource(string ) </code>
| <code>void AddResource(string a) </code>
| Precaches a specific resource
| 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 a) </code>
| Reads a spawn key
| Reads a spawn key
|}
|}
Line 4,091: Line 4,091:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptKeyValues.GetValue | GetValue]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptKeyValues.GetValue | GetValue]]
| <code>table GetValue(string ) </code>
| <code>table GetValue(string a) </code>
| Reads a spawn key
| Reads a spawn key
|}
|}
Line 4,114: Line 4,114:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.GetParticleReplacement | GetParticleReplacement]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.GetParticleReplacement | GetParticleReplacement]]
| <code>string GetParticleReplacement(string , handle ) </code>
| <code>string GetParticleReplacement(string a, handle b) </code>
| No Description Set
| No Description Set
|-
|-
Line 4,122: Line 4,122:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleAlwaysSimulate | SetParticleAlwaysSimulate]]
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleAlwaysSimulate | SetParticleAlwaysSimulate]]
| <code>void SetParticleAlwaysSimulate(int ) </code>
| <code>void SetParticleAlwaysSimulate(int a) </code>
| No Description Set
| No Description Set
|-
|-
Line 4,130: Line 4,130:
|-
|-
| [[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 a, int b, handle c, int d, string e, Vector f, bool g) </code>
| No Description Set
| No Description Set
|}
|}
Line 4,164: Line 4,164:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.AddOutput | AddOutput]]
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.AddOutput | AddOutput]]
| <code>void AddOutput(string , string ) </code>
| <code>void AddOutput(string a, string b) </code>
| Add an output
| 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 a) </code>
| Initialize with number of outputs
| Initialize with number of outputs
|}
|}
Line 4,181: Line 4,181:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetFarRange | SetFarRange]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetFarRange | SetFarRange]]
| <code>void SetFarRange(float ) </code>
| <code>void SetFarRange(float a) </code>
| Set light maximum range
| Set light maximum range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetLinearAttenuation | SetLinearAttenuation]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetLinearAttenuation | SetLinearAttenuation]]
| <code>void SetLinearAttenuation(float ) </code>
| <code>void SetLinearAttenuation(float a) </code>
| Set light linear 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]]
| <code>void SetNearRange(float ) </code>
| <code>void SetNearRange(float a) </code>
| Set light minimum range
| Set light minimum range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetQuadraticAttenuation | SetQuadraticAttenuation]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetQuadraticAttenuation | SetQuadraticAttenuation]]
| <code>void SetQuadraticAttenuation(float ) </code>
| <code>void SetQuadraticAttenuation(float a) </code>
| Set light quadratic attenuation value
| Set light quadratic attenuation value
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetVolumetrics | SetVolumetrics]]
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetVolumetrics | SetVolumetrics]]
| <code>void SetVolumetrics(bool , float , float , int , float ) </code>
| <code>void SetVolumetrics(bool a, float b, float c, int d, float e) </code>
| Turn on/off light volumetrics: ''bool'' bOn, ''float'' flIntensity, ''float'' flNoise, ''int'' nPlanes, ''float'' flPlaneOffset
| Turn on/off light volumetrics: ''bool'' bOn, ''float'' flIntensity, ''float'' flNoise, ''int'' nPlanes, ''float'' flPlaneOffset
|}
|}
Line 4,210: Line 4,210:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryColor | QueryColor]]
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryColor | QueryColor]]
| <code>Vector QueryColor(utlstringtoken , Vector ) </code>
| <code>Vector QueryColor(utlstringtoken a, Vector b) </code>
| Query color data for this key
| Query color data for this key
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryFloat | QueryFloat]]
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryFloat | QueryFloat]]
| <code>float QueryFloat(utlstringtoken , float ) </code>
| <code>float QueryFloat(utlstringtoken a, float b) </code>
| Query ''float'' 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]]
| <code>int QueryInt(utlstringtoken , int ) </code>
| <code>int QueryInt(utlstringtoken a, int b) </code>
| Query ''int'' data for this key
| Query ''int'' data for this key
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryNumber | QueryNumber]]
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryNumber | QueryNumber]]
| <code>float QueryNumber(utlstringtoken , float ) </code>
| <code>float QueryNumber(utlstringtoken a, float b) </code>
| Query number data for this key
| Query number data for this key
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryString | QueryString]]
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryString | QueryString]]
| <code>string QueryString(utlstringtoken , string ) </code>
| <code>string QueryString(utlstringtoken a, string b) </code>
| Query ''string'' data for this key
| 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 a, Vector b) </code>
| Query ''vector'' data for this key
| Query ''vector'' data for this key
|}
|}
Line 4,253: Line 4,253:


=== CDOTAGamerules ===
=== CDOTAGamerules ===
''No Description Set''
''''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 4,328: Line 4,328:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SendCustomMessage | SendCustomMessage]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SendCustomMessage | SendCustomMessage]]
| <code>void SendCustomMessage(string , int , int ) </code>
| <code>void SendCustomMessage(string message, int teamID, int unknown(1?)) </code>
| Sends a ''string'' to the defined team.
| Displays a line of text in the left textbox (where usually deaths/denies/buysbacks are announced). This function takes restricted HTML as input! (&lt;br&gt;,&lt;u&gt;,&lt;font&gt;)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCreepMinimapIconScale | SetCreepMinimapIconScale]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCreepMinimapIconScale | SetCreepMinimapIconScale]]
Line 4,336: Line 4,336:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCustomGameDifficulty | SetCustomGameDifficulty]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCustomGameDifficulty | SetCustomGameDifficulty]]
| <code>void SetCustomGameDifficulty(int ) </code>
| <code>void SetCustomGameDifficulty(int a) </code>
| Set the difficulty level of the custom game mode
| 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]]
| <code>void SetFirstBloodActive(bool ) </code>
| <code>void SetFirstBloodActive(bool a) </code>
| Sets whether First Blood has been triggered.
| Sets whether First Blood has been triggered.
|-
|-
Line 4,348: Line 4,348:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldPerTick | SetGoldPerTick]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldPerTick | SetGoldPerTick]]
| <code>void SetGoldPerTick(int ) </code>
| <code>void SetGoldPerTick(int a) </code>
| Set the auto gold increase per timed ''int''erval.
| Set the auto gold increase per timed interval.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldTickTime | SetGoldTickTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldTickTime | SetGoldTickTime]]
| <code>void SetGoldTickTime(float ) </code>
| <code>void SetGoldTickTime(float a) </code>
| Set the time ''int''erval between auto gold increases.
| Set the time ''int''erval between auto gold increases.
|-
|-
Line 4,368: Line 4,368:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetNianFightStartTime | SetNianFightStartTime]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetNianFightStartTime | SetNianFightStartTime]]
| <code>void SetNianFightStartTime(float ) </code>
| <code>void SetNianFightStartTime(float a) </code>
| Sets the start time for the Nian fight
| Sets the start time for the Nian fight
|-
|-
Line 4,408: Line 4,408:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseBaseGoldBountyOnHeroes | SetUseBaseGoldBountyOnHeroes]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseBaseGoldBountyOnHeroes | SetUseBaseGoldBountyOnHeroes]]
| <code>void SetUseBaseGoldBountyOnHeroes(bool ) </code>
| <code>void SetUseBaseGoldBountyOnHeroes(bool a) </code>
| Heroes will use the basic NPC functionality for determining their bounty, rather than DOTA specific formulas.
| Heroes will use the basic NPC functionality for determining their bounty, rather than DOTA specific formulas.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseCustomHeroXPValues | SetUseCustomHeroXPValues]]
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseCustomHeroXPValues | SetUseCustomHeroXPValues]]
| <code>void SetUseCustomHeroXPValues(bool ) </code>
| <code>void SetUseCustomHeroXPValues(bool a) </code>
| Allows heroes in the map to give a specific amount of XP (this value must be set).
| Allows heroes in the map to give a specific amount of XP (this value must be set).
|-
|-
Line 4,445: Line 4,445:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetBloomScale | SetBloomScale]]
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetBloomScale | SetBloomScale]]
| <code>void SetBloomScale(float ) </code>
| <code>void SetBloomScale(float a) </code>
| Sets bloom scale for this tonemap controller
| 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]]
| <code>void SetMaxExposure(float ) </code>
| <code>void SetMaxExposure(float a) </code>
| Sets max exposure for this tonemap controller
| Sets max exposure for this tonemap controller
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetMinExposure | SetMinExposure]]
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetMinExposure | SetMinExposure]]
| <code>void SetMinExposure(float ) </code>
| <code>void SetMinExposure(float a) </code>
| Sets min exposure for this tonemap controller
| Sets min exposure for this tonemap controller
|}
|}
Line 4,466: Line 4,466:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Axis | Axis]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Axis | Axis]]
| <code>void Axis(Vector , Quaternion , float , bool , float ) </code>
| <code>void Axis(Vector a, Quaternion b, float c, bool d, float e) </code>
| Draws an axis. Specify origin + orientation in world space.
| Draws an axis. Specify origin + orientation in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Box | Box]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Box | Box]]
| <code>void Box(Vector , Vector , int , int , int , int , bool , float ) </code>
| <code>void Box(Vector a, Vector b, int c, int d, int e, int f, bool g, float h) </code>
| Draws a world-space axis-aligned box. Specify bounds in world space.
| Draws a world-space axis-aligned box. Specify bounds in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.BoxAngles | BoxAngles]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.BoxAngles | BoxAngles]]
| <code>void BoxAngles(Vector , Vector , Vector , Quaternion , int , int , int , int , bool , float ) </code>
| <code>void BoxAngles(Vector a, Vector b, Vector c, Quaternion d, int e, int f, int g, int h, bool i, float j) </code>
| Draws an oriented box at the origin. Specify bounds in local space.
| Draws an oriented box at the origin. Specify bounds in local space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Capsule | Capsule]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Capsule | Capsule]]
| <code>void Capsule(Vector , Quaternion , float , float , int , int , int , int , bool , float ) </code>
| <code>void Capsule(Vector a, Quaternion b, float c, float d, int e, int f, int g, int h, bool i, float j) </code>
| Draws a capsule. Specify base in world space.
| Draws a capsule. Specify base in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Circle | Circle]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Circle | Circle]]
| <code>void Circle(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| <code>void Circle(Vector a, Quaternion b, float c, int d, int e, int f, int g, bool h, float i) </code>
| Draws a circle. Specify center in world space.
| Draws a circle. Specify center in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.CircleScreenOriented | CircleScreenOriented]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.CircleScreenOriented | CircleScreenOriented]]
| <code>void CircleScreenOriented(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void CircleScreenOriented(Vector a, float b, int c, int d, int e, int f, bool g, float h) </code>
| Draws a circle oriented to the screen. Specify center in world space.
| Draws a circle oriented to the screen. Specify center in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cone | Cone]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cone | Cone]]
| <code>void Cone(Vector , Vector , float , float , int , int , int , int , bool , float ) </code>
| <code>void Cone(Vector a, Vector b, float c, float d, int e, int f, int g, int h, bool i, float j) </code>
| Draws a wireframe cone. Specify endpoint and direction in world space.
| Draws a wireframe cone. Specify endpoint and direction in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross | Cross]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross | Cross]]
| <code>void Cross(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void Cross(Vector a, float b, int c, int d, int e, int f, bool g, float h) </code>
| Draws a screen-aligned cross. Specify origin in world space.
| Draws a screen-aligned cross. Specify origin in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3D | Cross3D]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3D | Cross3D]]
| <code>void Cross3D(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void Cross3D(Vector a, float b, int c, int d, int e, int f, bool g, float h) </code>
| 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.Cross3DOriented | Cross3DOriented]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3DOriented | Cross3DOriented]]
| <code>void Cross3DOriented(Vector , Quaternion , float , int , int , int , int , bool , float ) </code>
| <code>void Cross3DOriented(Vector a, Quaternion b, float c, int d, int e, int f, int g, bool h, float i) </code>
| Draws an oriented cross. Specify origin in world space.
| Draws an oriented cross. Specify origin in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.DrawTickMarkedLine | DrawTickMarkedLine]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.DrawTickMarkedLine | DrawTickMarkedLine]]
| <code>void DrawTickMarkedLine(Vector , Vector , float , int , int , int , int , int , bool , float ) </code>
| <code>void DrawTickMarkedLine(Vector a, Vector b, float c, int d, int e, int f, int g, int h, bool i, float j) </code>
| 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.EntityAttachments | EntityAttachments]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAttachments | EntityAttachments]]
| <code>void EntityAttachments(ehandle , float ) </code>
| <code>void EntityAttachments(ehandle a, float b) </code>
| Draws the attachments of the entity
| Draws the attachments of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAxis | EntityAxis]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAxis | EntityAxis]]
| <code>void EntityAxis(ehandle , float , bool , float ) </code>
| <code>void EntityAxis(ehandle a, float b, bool c, float d) </code>
| Draws the axis of the entity origin
| Draws the axis of the entity origin
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityBounds | EntityBounds]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityBounds | EntityBounds]]
| <code>void EntityBounds(ehandle , int , int , int , int , bool , float ) </code>
| <code>void EntityBounds(ehandle a, int b, int c, int d, int e, bool f, float g) </code>
| Draws bounds of an entity
| Draws bounds of an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntitySkeleton | EntitySkeleton]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntitySkeleton | EntitySkeleton]]
| <code>void EntitySkeleton(ehandle , float ) </code>
| <code>void EntitySkeleton(ehandle a, float b) </code>
| Draws the skeleton of the entity
| Draws the skeleton of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityText | EntityText]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityText | EntityText]]
| <code>void EntityText(ehandle , int , string , int , int , int , int , float ) </code>
| <code>void EntityText(ehandle a, int b, string c, int d, int e, int f, int g, float h) </code>
| Draws text on an entity
| Draws text on an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.FilledRect2D | FilledRect2D]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.FilledRect2D | FilledRect2D]]
| <code>void FilledRect2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| <code>void FilledRect2D(Vector2D a, Vector2D b, int c, int d, int e, int f, float g) </code>
| Draws a screen-space filled 2D rectangle. Coordinates are in pixels.
| Draws a screen-space filled 2D rectangle. Coordinates are in pixels.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.HorzArrow | HorzArrow]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.HorzArrow | HorzArrow]]
| <code>void HorzArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| <code>void HorzArrow(Vector a, Vector b, float c, int d, int e, int f, int g, bool h, float i) </code>
| Draws a horizontal arrow. Specify endpoint's in world space.
| Draws a horizontal arrow. Specify endpoint's in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line | Line]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line | Line]]
| <code>void Line(Vector , Vector , int , int , int , int , bool , float ) </code>
| <code>void Line(Vector a, Vector b, int c, int d, int e, int f, bool g, float h) </code>
| Draws a line between two point's
| Draws a line between two point's
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line2D | Line2D]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line2D | Line2D]]
| <code>void Line2D(Vector2D , Vector2D , int , int , int , int , float ) </code>
| <code>void Line2D(Vector2D a, Vector2D b, int c, int d, int e, int f, float g) </code>
| Draws a line between two point's in screenspace
| Draws a line between two point's in screenspace
|-
|-
Line 4,550: Line 4,550:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushAndClearDebugOverlayScope | PushAndClearDebugOverlayScope]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushAndClearDebugOverlayScope | PushAndClearDebugOverlayScope]]
| <code>void PushAndClearDebugOverlayScope(utlstringtoken ) </code>
| <code>void PushAndClearDebugOverlayScope(utlstringtoken a) </code>
| Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id.
| Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushDebugOverlayScope | PushDebugOverlayScope]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushDebugOverlayScope | PushDebugOverlayScope]]
| <code>void PushDebugOverlayScope(utlstringtoken ) </code>
| <code>void PushDebugOverlayScope(utlstringtoken a) </code>
| Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
| Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
|-
|-
| [[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 a) </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.SolidCone | SolidCone]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SolidCone | SolidCone]]
| <code>void SolidCone(Vector , Vector , float , float , int , int , int , int , bool , float ) </code>
| <code>void SolidCone(Vector a, Vector b, float c, float d, int e, int f, int g, int h, bool i, float j) </code>
| 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.Sphere | Sphere]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Sphere | Sphere]]
| <code>void Sphere(Vector , float , int , int , int , int , bool , float ) </code>
| <code>void Sphere(Vector a, float b, int c, int d, int e, int f, bool g, float h) </code>
| Draws a wireframe sphere. Specify center in world space.
| Draws a wireframe sphere. Specify center in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SweptBox | SweptBox]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SweptBox | SweptBox]]
| <code>void SweptBox(Vector , Vector , Vector , Vector , Quaternion , int , int , int , int , float ) </code>
| <code>void SweptBox(Vector a, Vector b, Vector c, Vector d, Quaternion e, int f, int g, int h, int i, float j) </code>
| Draws a swept box. Specify endpoint's in world space and the bounds in local space.
| Draws a swept box. Specify endpoint's in world space and the bounds in local space.
|-
|-
| [[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 a, int b, string c, float d, int e, int f, int g, int h, float i) </code>
| Draws 2D text. Specify origin in world space.
| Draws 2D text. Specify origin in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Texture | Texture]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Texture | Texture]]
| <code>void Texture(string , Vector2D , Vector2D , int , int , int , int , Vector2D , Vector2D , float ) </code>
| <code>void Texture(string a, Vector2D b, Vector2D c, int d, int e, int f, int g, Vector2D h, Vector2D i, float j) </code>
| Draws a screen-space texture. Coordinates are in pixels.
| Draws a screen-space texture. Coordinates are in pixels.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Triangle | Triangle]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Triangle | Triangle]]
| <code>void Triangle(Vector , Vector , Vector , int , int , int , int , bool , float ) </code>
| <code>void Triangle(Vector a, Vector b, Vector c, int d, int e, int f, int g, bool h, float i) </code>
| Draws a filled triangle. Specify vertices in world space.
| Draws a filled triangle. Specify vertices in world space.
|-
|-
Line 4,590: Line 4,590:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VectorText3D | VectorText3D]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VectorText3D | VectorText3D]]
| <code>void VectorText3D(Vector , Quaternion , string , int , int , int , int , bool , float ) </code>
| <code>void VectorText3D(Vector a, Quaternion b, string c, int d, int e, int f, int g, bool h, float i) </code>
| Draws 3D text. Specify origin + orientation in world space.
| Draws 3D text. Specify origin + orientation in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VertArrow | VertArrow]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VertArrow | VertArrow]]
| <code>void VertArrow(Vector , Vector , float , int , int , int , int , bool , float ) </code>
| <code>void VertArrow(Vector a, Vector b, float c, int d, int e, int f, int g, bool h, float i) </code>
| Draws a vertical arrow. Specify endpoint's in world space.
| Draws a vertical arrow. Specify endpoint's in world space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.YawArrow | YawArrow]]
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.YawArrow | YawArrow]]
| <code>void YawArrow(Vector , float , float , float , int , int , int , int , bool , float ) </code>
| <code>void YawArrow(Vector a, float b, float c, float d, int e, int f, int g, int h, bool i, float j) </code>
| Draws a arrow associated with a specific yaw. Specify endpoint's in world space.
| Draws a arrow associated with a specific yaw. Specify endpoint's in world space.
|}
|}
Line 4,604: Line 4,604:


=== CBaseFlex ===
=== CBaseFlex ===
''No Description Set''
''Animated characters who have vertex flex capability (Hi hex6)''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 4,615: Line 4,615:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetSceneByIndex | GetSceneByIndex]]
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetSceneByIndex | GetSceneByIndex]]
| <code>handle GetSceneByIndex(int ) </code>
| <code>handle GetSceneByIndex(int a) </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,628: Line 4,628:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.AddBroadcastTeamTarget | AddBroadcastTeamTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.AddBroadcastTeamTarget | AddBroadcastTeamTarget]]
| <code>void AddBroadcastTeamTarget(int ) </code>
| <code>void AddBroadcastTeamTarget(int a) </code>
| Adds a team (by index) to the broadcast list
| Adds a team (by index) to the broadcast list
|-
|-
Line 4,644: Line 4,644:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindNamedEntity | FindNamedEntity]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindNamedEntity | FindNamedEntity]]
| <code>handle FindNamedEntity(string ) </code>
| <code>handle FindNamedEntity(string a) </code>
| given an entity reference, such as !target, get actual entity from scene object
| given an entity reference, such as !target, get actual entity from scene object
|-
|-
Line 4,656: Line 4,656:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.LoadSceneFromString | LoadSceneFromString]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.LoadSceneFromString | LoadSceneFromString]]
| <code>bool LoadSceneFromString(string , string ) </code>
| <code>bool LoadSceneFromString(string a, string b) </code>
| given a dummy scene name and a vcd ''string'', load the scene
| given a dummy scene name and a vcd ''string'', load the scene
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.RemoveBroadcastTeamTarget | RemoveBroadcastTeamTarget]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.RemoveBroadcastTeamTarget | RemoveBroadcastTeamTarget]]
| <code>void RemoveBroadcastTeamTarget(int ) </code>
| <code>void RemoveBroadcastTeamTarget(int a) </code>
| 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.Start | Start]]
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Start | Start]]
| <code>void Start(handle ) </code>
| <code>void Start(handle a) </code>
| Start scene playback, takes activatorEntity as param
| Start scene playback, takes activatorEntity as param
|}
|}
Line 4,670: Line 4,670:


=== GridNav ===
=== GridNav ===
''No Description Set''
''A class that can communicate with the gridnav, useful for seeing if stuff should be able to move''
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function  
! Function  
Line 4,677: Line 4,677:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterX | GridPosToWorldCenterX]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterX | GridPosToWorldCenterX]]
| <code>float GridPosToWorldCenterX(int ) </code>
| <code>float GridPosToWorldCenterX(int a) </code>
| Get the X position of the center of a given X index
| Get the X position of the center of a given X index
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterY | GridPosToWorldCenterY]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterY | GridPosToWorldCenterY]]
| <code>float GridPosToWorldCenterY(int ) </code>
| <code>float GridPosToWorldCenterY(int a) </code>
| Get the Y position of the center of a given Y index
| Get the Y position of the center of a given Y index
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsBlocked | IsBlocked]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsBlocked | IsBlocked]]
| <code>bool IsBlocked(Vector ) </code>
| <code>bool IsBlocked(Vector a) </code>
| Checks whether the given position is blocked
| Checks whether the given position is blocked
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsNearbyTree | IsNearbyTree]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsNearbyTree | IsNearbyTree]]
| <code>bool IsNearbyTree(Vector , float , bool ) </code>
| <code>bool IsNearbyTree(Vector position, float radius, bool c) </code>
| (position, radius, checkFullTreeRadius?) Checks whether there are any trees overlapping the given point
|
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsTraversable | IsTraversable]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsTraversable | IsTraversable]]
| <code>bool IsTraversable(Vector ) </code>
| <code>bool IsTraversable(Vector a) </code>
| Checks whether the given position is traversable
| Checks whether the given position is traversable
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.RegrowAllTrees | RegrowAllTrees]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.RegrowAllTrees | RegrowAllTrees]]
| <code>void RegrowAllTrees() </code>
| <code>void RegrowAllTrees() </code>
| Causes all trees in the map to regrow
|
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosX | WorldToGridPosX]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosX | WorldToGridPosX]]
| <code>int WorldToGridPosX(float ) </code>
| <code>int WorldToGridPosX(float a) </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.WorldToGridPosY | WorldToGridPosY]]
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosY | WorldToGridPosY]]
| <code>int WorldToGridPosY(float ) </code>
| <code>int WorldToGridPosY(float a) </code>
| Get the Y index of a given world Y position
| Get the Y index of a given world Y position
|}
|}
Line 4,736: Line 4,736:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetInt | GetInt]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetInt | GetInt]]
| <code>table GetInt(string ) </code>
| <code>table GetInt(string a) </code>
| GetInt(name) : returns the convar as an ''int''. May return ''nil'' if no such convar.
| GetInt(name) : returns the convar as an ''int''. May return ''nil'' if no such convar.
|-
|-
Line 4,760: Line 4,760:
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetInt | SetInt]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetInt | SetInt]]
| <code>void SetInt(string , int ) </code>
| <code>void SetInt(string a, int b) </code>
| SetInt(name, val) : sets the value of the convar to the ''int''.
| SetInt(name, val) : sets the value of the convar to the ''int''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetStr | SetStr]]
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetStr | SetStr]]
| <code>void SetStr(string , string ) </code>
| <code>void SetStr(string a, string b) </code>
| SetStr(name, val) : sets the value of the convar to the ''string''.
| SetStr(name, val) : sets the value of the convar to the ''string''.
|}
|}

Revision as of 00:29, 9 August 2014

Note.pngNote: This page is automatically generated. Any changes may be overwritten

Accessing the DOTA 2 Scripting API from Lua

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

Global

Global functions. These can be called without any class

Function Signature Description
AngleDiff float AngleDiff(float ang1, float ang2) Returns the number of degrees difference between two yaw angles
AppendToLogFile void AppendToLogFile(string a, string b) Appends a string to a log file on the server
ApplyDamage float ApplyDamage(handle DamageTable) Pass table - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.
AxisAngleToQuaternion Quaternion AxisAngleToQuaternion(Vector a, float b) (vector,float) constructs a quaternion representing a rotation by angle around the specified vector axis
CancelEntityIOEvents void CancelEntityIOEvents(ehandle a) Create all I/O events for a particular entity
CreateEffect bool CreateEffect(handle a) Pass table - Inputs: entity, effect
CreateHeroForPlayer handle CreateHeroForPlayer(string a, handle b) 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 item_name, handle owner, handle owner) Creates an item with classname item_name that owner can use.
CreateItemOnPositionSync handle CreateItemOnPositionSync(Vector a, handle b) Create a physical item at a given location
CreateTrigger handle CreateTrigger(Vector a, Vector b, Vector c) CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger
CreateTriggerRadiusApproximate handle CreateTriggerRadiusApproximate(Vector a, float b) CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided
CreateUnitByName handle CreateUnitByName(string a, Vector b, bool c, handle d, handle e, int f) Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
CreateUnitByNameAsync int CreateUnitByNameAsync(string a, Vector b, bool c, handle d, handle e, int f, handle g) Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
cvar_getf float cvar_getf(string a) Gets the value of the given cvar, as a float.
cvar_setf bool cvar_setf(string a, float b) Sets the value of the given cvar, as a float.
DebugBreak void DebugBreak() Breaks in the debugger
DebugDrawBox void DebugDrawBox(Vector a, Vector b, Vector c, int d, int e, int f, int g, float h) Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration )
DebugDrawBoxDirection void DebugDrawBoxDirection(Vector a, Vector b, Vector c, Vector d, Vector e, float f, float g) Draw a debug forward box (cent, min, max, forward, vRgb, a, duration)
DebugDrawCircle void DebugDrawCircle(Vector a, Vector b, float c, float d, bool e, float f) 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 a, Vector b, int c, int d, int e, bool f, float g) Draw a debug overlay line (origin, target, r, g, b, ztest, duration)
DebugDrawLine_vCol void DebugDrawLine_vCol(Vector a, Vector b, Vector c, bool d, float e) Draw a debug line using color vec (start, end, vRgb, a, ztest, duration)
DebugDrawScreenTextLine void DebugDrawScreenTextLine(float a, float b, int c, string d, int e, int f, int g, int h, float i) Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration)
DebugDrawSphere void DebugDrawSphere(Vector a, Vector b, float c, float d, bool e, float f) Draw a debug sphere (center, vRgb, a, rad, ztest, duration)
DebugDrawText void DebugDrawText(Vector a, string b, bool c, float d) Draw text in 3d (origin, text, bViewCheck, duration)
DebugScreenTextPretty void DebugScreenTextPretty(float a, float b, int c, string d, int e, int f, int g, int h, float i, string j, int k, bool l) Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
DoEntFire void DoEntFire(string a, string b, string c, float d, handle e, handle f) EntFire: Generate an entity i/o event ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
DoEntFireByInstanceHandle void DoEntFireByInstanceHandle(handle a, string b, string c, float d, handle e, handle f) EntFireByHandle:Generate and entity i/o event
DoIncludeScript bool DoIncludeScript(string a, handle b) Execute a script (internal)
DoScriptAssert void DoScriptAssert(bool a, string b) ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog.
DoUniqueString string DoUniqueString(string a) 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 a) Play named sound for all players
EmitSoundOn void EmitSoundOn(string a, handle b) Play named sound on Entity
EmitSoundOnClient void EmitSoundOnClient(string a, handle b) Play named sound only on the client for the passed in player
EntIndexToHScript handle EntIndexToHScript(int a) Turn an entity index integer to an HScript representing that entity's script instance.
ExecuteOrderFromTable void ExecuteOrderFromTable(handle a) Issue an order from a script table
ExponentialDecay float ExponentialDecay(float a, float b, float c) Smooth curve decreasing slower as it approaches zero
FileToString string FileToString(string a) Reads a string from a file to send to script
FindClearSpaceForUnit void FindClearSpaceForUnit(handle a, Vector b, bool c) Place a unit somewhere not already occupied.
FindUnitsInRadius table FindUnitsInRadius(int a, Vector b, handle c, float d, int e, int f, int g, int h, bool i) Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
FireEntityIOInputNameOnly void FireEntityIOInputNameOnly(ehandle a, string b) Fire Entity's Action Input w/no data
FireEntityIOInputString void FireEntityIOInputString(ehandle a, string b, string c) Fire Entity's Action Input with passed String - you own the memory
FireEntityIOInputVec void FireEntityIOInputVec(ehandle a, string b, Vector c) Fire Entity's Action Input with passed Vector ( hEntity, szActionName, vector )
FireGameEvent void FireGameEvent(string eventName, handle parameterTable) Fire a pre-defined event, which can be found either in custom_events.txt or in dota's resource/*.res
FireGameEventLocal void FireGameEventLocal(string a, handle b) 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 a, int b) No Description Set
GetFrostyPointsForRound int GetFrostyPointsForRound(int a, int b, int c) No Description Set
GetGoldFrostyBoostAmount float GetGoldFrostyBoostAmount(int a, int b) No Description Set
GetGoldFrostyPointsForRound int GetGoldFrostyPointsForRound(int a, int b, int c) No Description Set
GetGroundPosition Vector GetGroundPosition(Vector a, handle b) 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 a, string b) Get the longest delay for all events attached to an output
GetPhysAngularVelocity Vector GetPhysAngularVelocity(handle a) Get Angular Velocity for VPHYS or normal object
GetPhysVelocity Vector GetPhysVelocity(handle a) 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 a, string b) 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 a) Returns true if the entity is valid and marked for deletion.
IsValidEntity bool IsValidEntity(handle a) Checks to see if the given hScript is a valid entity
ListenToGameEvent int ListenToGameEvent(string a, handle b, handle c) 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 a) Creates a table from the specified keyvalues text file
LoadKeyValuesFromString table LoadKeyValuesFromString(string a) Creates a table from the specified keyvalues string
MakeStringToken int MakeStringToken(string a) Checks to see if the given hScript is a valid entity
Msg void Msg(string a) Print a message
PauseGame void PauseGame(bool a) Pause or unpause the game.
PlayerInstanceFromIndex handle PlayerInstanceFromIndex(int a) Get a script instance of a player by index.
PrecacheEntityFromTable void PrecacheEntityFromTable(string a, handle b, handle c) Precache an entity from KeyValues in table
PrecacheEntityListFromTable void PrecacheEntityListFromTable(handle a, handle b) Precache a list of entity KeyValues table's
PrecacheItemByNameAsync void PrecacheItemByNameAsync(string a, handle b) Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished.
PrecacheItemByNameSync void PrecacheItemByNameSync(string a, handle b) Precaches a DOTA item by its dota_npc_items.txt name
PrecacheModel void PrecacheModel(string a, handle b) ( modelName, context ) - Manually precache a single model
PrecacheResource void PrecacheResource(string a, string b, handle c) Manually precache a single resource
PrecacheUnitByNameAsync void PrecacheUnitByNameAsync(string a, handle b) Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished.
PrecacheUnitByNameSync void PrecacheUnitByNameSync(string a, handle b) Precaches a DOTA unit by its dota_npc_units.txt name
PrintLinkedConsoleMessage void PrintLinkedConsoleMessage(string a, string b) Print a console message with a linked console command
RandomFloat float RandomFloat(float a, float b) Get a random float within a range
RandomInt int RandomInt(int a, int b) Get a random int within a range
RandomVector Vector RandomVector(float a) Get a random 2D vector. Argument (float) is the minimum length of the returned vector.
RegisterSpawnGroupFilterProxy void RegisterSpawnGroupFilterProxy(string a) Create a C proxy for a script-based spawn group filter
ReloadMOTD void ReloadMOTD() Reloads the MotD file
RemoveSpawnGroupFilterProxy void RemoveSpawnGroupFilterProxy(string a) Remove the C proxy for a script-based spawn group filter
RollPercentage bool RollPercentage(int a) 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 a, QAngle b) Rotate a QAngle by another QAngle.
RotatePosition Vector RotatePosition(Vector a, QAngle b, Vector c) Rotate a Vector around a point.
RotateQuaternionByAxisAngle Quaternion RotateQuaternionByAxisAngle(Quaternion a, Vector b, float c) Rotates a quaternion by the specified angle around the specified vector axis
RotationDelta QAngle RotationDelta(QAngle a, QAngle b) Find the delta between two QAngles.
rr_AddDecisionRule bool rr_AddDecisionRule(handle a) Add a rule to the decision database.
rr_CommitAIResponse bool rr_CommitAIResponse(handle a, handle b) 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 a, handle b, handle c) 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 a, float b, float c, float d, float e, int f, bool g) 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 a) No Description Set
SendToConsole void SendToConsole(string a) Send a string to the console as a client command
SendToServerConsole void SendToServerConsole(string a) Send a string to the console as a server command
SetOpvarFloatAll void SetOpvarFloatAll(string a, string b, string c, float d) Sets an opvar value for all players
SetOpvarFloatPlayer void SetOpvarFloatPlayer(string a, string b, string c, float d, handle e) Sets an opvar value for a single player ( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
SetQuestName void SetQuestName(string a) Set the current quest name.
SetQuestPhase void SetQuestPhase(int a) Set the current quest phase.
SetRenderingEnabled void SetRenderingEnabled(ehandle a, bool b) Set rendering on/off for an ehandle
ShowGenericPopup void ShowGenericPopup(string title, string content, string unknown, string unknown, int containerType)
ShowGenericPopupToPlayer void ShowGenericPopupToPlayer(handle a, string b, string c, string d, string e, int f) Show a generic popup dialog to a specific player.
ShowMessage void ShowMessage(string a) Print a hud message on all clients
SpawnEntityFromTableSynchronous handle SpawnEntityFromTableSynchronous(string a, handle b) 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 a, handle b) 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 a) Synchronously spawn an entity group from a list of spawn table's.
SplineQuaternions Quaternion SplineQuaternions(Quaternion a, Quaternion b, float c) (quaternion,quaternion,float) very basic interpolation of v0 to v1 over t on [0,1]
SplineVectors Vector SplineVectors(Vector a, Vector b, float c) (vector,vector,float) very basic interpolation of v0 to v1 over t on [0,1]
StartSoundEvent void StartSoundEvent(string a, handle b) Start a sound event
StopEffect void StopEffect(handle a, string b) (hEntity, szEffectName)
StopListeningToAllGameEvents void StopListeningToAllGameEvents(handle a) Stop listening to all game events within a specific context.
StopListeningToGameEvent bool StopListeningToGameEvent(int a) Stop listening to a particular game event.
StopSoundEvent void StopSoundEvent(string a, handle b) Stops a sound event
StopSoundOn void StopSoundOn(string soundName, handle playingEntity) Stop named sound on Entity
StringToFile bool StringToFile(string a, string b) Store a string to a file for later reading
Time float Time() Get the current server time
TraceCollideable bool TraceCollideable(handle a) Pass table - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
TraceHull bool TraceHull(handle a) Pass table - Inputs: start, end, min, max, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
TraceLine bool TraceLine(handle a) Pass table - Inputs: startpos, endpos, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
UnloadSpawnGroup void UnloadSpawnGroup(string a) Unload a spawn group by name
UnloadSpawnGroupByHandle void UnloadSpawnGroupByHandle(int a) Unload a spawn group by handle
UpdateEventPoints void UpdateEventPoints(handle a) No Description Set
UTIL_Remove void UTIL_Remove(handle a) Removes the specified entity
UTIL_RemoveImmediate void UTIL_RemoveImmediate(handle a) Immediately removes the specified entity
VectorToAngles QAngle VectorToAngles(Vector a) Get Qangles (with no roll) for a Vector.
Warning void Warning(string a) Print a warning


CBaseEntity

The base class for stuff

Function Signature Description
ApplyAbsVelocityImpulse void ApplyAbsVelocityImpulse(Vector a) Apply a Velocity Impulse
ApplyLocalAngularVelocityImpulse void ApplyLocalAngularVelocityImpulse(Vector a) Apply an Ang Velocity Impulse
EmitSound void EmitSound(string soundName)
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 a) 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 a) 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 a, float b) Takes duration, value for a temporary override
PrecacheScriptSound void PrecacheScriptSound(string a) 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 a, string b, float c) 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 a, float b, float c) 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 a, handle b, float c) 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 a) Set PLAYER friction, ignored for objects
SetGravity void SetGravity(float a) 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 a, string b) Set the parent for this entity.
SetRenderColor void SetRenderColor(int a, int b, int c) SetRenderColor( r, g, b ): Sets the render color of the entity.
SetSize void SetSize(Vector a, Vector b) No Description Set
SetTeam void SetTeam(int team) No Description Set
SetVelocity void SetVelocity(Vector a) 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 a) Finds all entities by class name. Returns an array containing all the found entities.
FindAllByClassnameWithin table FindAllByClassnameWithin(string a, Vector b, float c) 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 a, string b) 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 a, string b) Removes a connected script function from an I/O event on this entity.
DisconnectRedirectedOutput void DisconnectRedirectedOutput(string a, string b, handle c) Removes a connected script function from an I/O event on the passed entity.
entindex int entindex() No Description Set
FireOutput void FireOutput(string a, handle b, handle c, table d, float e) 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 a) 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 a, string b, handle c) 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 a, int b) 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 a, float b, float c) No Description Set
DecrementModifierRefCount void DecrementModifierRefCount() No Description Set
EndChannel void EndChannel(bool a) 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 a) 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 a) 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 a) No Description Set
GetGoldCostForUpgrade int GetGoldCostForUpgrade(int a) 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 a, int b) No Description Set
GetManaCost int GetManaCost(int a) 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 a) No Description Set
GetStolenActivityModifier string GetStolenActivityModifier() No Description Set
GetToggleState bool GetToggleState() No Description Set
HeroXPChange bool HeroXPChange(float a) 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 a) 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 a) No Description Set
OnChannelThink void OnChannelThink(float a) 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 a) No Description Set
SetActivated void SetActivated(bool a) No Description Set
SetChanneling void SetChanneling(bool a) No Description Set
SetHidden void SetHidden(bool a) No Description Set
SetInAbilityPhase void SetInAbilityPhase(bool a) No Description Set
SetLevel void SetLevel(int a) Sets the level of this ability.
SetOverrideCastPoint void SetOverrideCastPoint(float a) No Description Set
SetRefCountsModifiers void SetRefCountsModifiers(bool a) No Description Set
SetStolen void SetStolen(bool a) No Description Set
ShouldUseResources bool ShouldUseResources() No Description Set
SpeakAbilityConcept void SpeakAbilityConcept(int a) No Description Set
SpeakTrigger bool SpeakTrigger() No Description Set
StartCooldown void StartCooldown(float a) param: flCooldown
ToggleAbility void ToggleAbility() No Description Set
ToggleAutoCast void ToggleAutoCast() No Description Set
UpgradeAbility void UpgradeAbility() No Description Set
UseResources void UseResources(bool a, bool b, bool c) No Description Set


CDOTA_Ability_Animation_Attack

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float a) Override playbackrate


CDOTA_Ability_Animation_TailSpin

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float a) Override playbackrate


CDOTA_Ability_Nian_Leap

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float a) Override playbackrate


CDOTA_Ability_Nian_Dive

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float a) 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 a, float b, float c, Vector d) No Description Set
SetCurrentCharges void SetCurrentCharges(int a) Set the number of charges on this item
SetPurchaser void SetPurchaser(handle a) Set the purchaser of record for this item.
SetPurchaseTime void SetPurchaseTime(float a) Set the purchase time of this item
SetStacksWithOtherOwners void SetStacksWithOtherOwners(bool a) 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 a) Set the contained item.


CDOTA_Item_DataDriven

'

Function Signature Description
ApplyDataDrivenModifier void ApplyDataDrivenModifier(handle source, handle target, string modifier_name, handle modifierArgs)


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


CDOTA_BaseNPC

'

Function Signature Description
AddAbility void AddAbility(string a) Add an ability to this unit by name.
AddItem void AddItem(handle a) Add an item to this unit's inventory.
AddNewModifier void AddNewModifier(handle caster, handle optionalSourceAbility, string modifierName, handle modifierData)
AddNoDraw void AddNoDraw() Adds the no draw flag.
AlertNearbyUnits void AlertNearbyUnits(handle a, handle b) No Description Set
AngerNearbyUnits void AngerNearbyUnits() No Description Set
AttackNoEarlierThan void AttackNoEarlierThan(float a) No Description Set
AttackReady bool AttackReady() No Description Set
BoundingRadius2D float BoundingRadius2D() No Description Set
CastAbilityImmediately void CastAbilityImmediately(handle a, int b) Cast an ability immediately.
CastAbilityNoTarget void CastAbilityNoTarget(handle ability, int playerIndex) Cast an ability with no target. ( hAbility, iPlayerIndex )
CastAbilityOnPosition void CastAbilityOnPosition(Vector a, handle b, int c) 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 a, int b) Toggle an ability. ( hAbility, iPlayerIndex )
DisassembleItem void DisassembleItem(handle a) Disassemble the passed item in this unit's inventory.
DropItemAtPosition void DropItemAtPosition(Vector a, handle b) Drop an item at a given point.
DropItemAtPositionImmediate void DropItemAtPositionImmediate(handle a, Vector b) Immediately drop a carried item at a given position.
EjectItemFromStash void EjectItemFromStash(handle a) Drops the selected item out of this unit's stash.
FindAbilityByName handle FindAbilityByName(string a) Retrieve an ability by name from the unit.
ForceKill void ForceKill(bool a) Kill this unit immediately.
GetAbilityByIndex handle GetAbilityByIndex(int a) 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 a) 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 a) 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 a) Get a modifier name by index.
GetMoveSpeedModifier float GetMoveSpeedModifier(float a) 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 a) 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 a) Give mana to this unit, this can be used for mana gained by abilities or item usage.
HasAbility bool HasAbility(string a) 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 a) See whether this unit has an item by name.
HasModifier bool HasModifier(string a) Sees if this unit has a given modifier
HasMovementCapability bool HasMovementCapability() No Description Set
HasScepter bool HasScepter() No Description Set
Heal void Heal(float a, handle b) Heal this unit.
Hold void Hold() Hold position.
Interrupt void Interrupt() No Description Set
InterruptChannel void InterruptChannel() No Description Set
InterruptMotionControllers void InterruptMotionControllers(bool a) 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 a) 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 a) 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 a, float b) 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 a, handle b) 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 a) No Description Set
MakeVisibleToTeam void MakeVisibleToTeam(int a, float b) No Description Set
ModifyHealth void ModifyHealth(int a, handle b, bool c, int d) Sets the health to a specific value, with optional flags or inflictors.
MoveToNPC void MoveToNPC(handle a) Move to follow a unit.
MoveToNPCToGiveItem void MoveToNPCToGiveItem(handle a, handle b) Give an item to another unit.
MoveToPosition void MoveToPosition(Vector a) Issue a Move-To command
MoveToPositionAggressive void MoveToPositionAggressive(Vector a) Issue an Attack-Move-To command
MoveToTargetToAttack void MoveToTargetToAttack(handle a) 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 a, bool b, bool c, bool d, bool e) Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
PickupDroppedItem void PickupDroppedItem(handle a) Pick up a dropped item.
PickupRune void PickupRune(handle a) Pick up a rune.
ProvidesVision bool ProvidesVision() No Description Set
ReduceMana void ReduceMana(float a) Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
RemoveAbility void RemoveAbility(string a) Remove an ability from this unit by name.
RemoveItem void RemoveItem(handle a) Removes the passed item from this unit's inventory.
RemoveModifierByName void RemoveModifierByName(string a) Removes a modifier
RemoveModifierByNameAndCaster void RemoveModifierByNameAndCaster(string a, handle b) 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 a) Sells the passed item in this unit's inventory.
SetAdditionalBattleMusicWeight void SetAdditionalBattleMusicWeight(float a) Combat involving this creature will have this weight added to the music calcuations
SetAttackCapability void SetAttackCapability(int a) No Description Set
SetAttacking void SetAttacking(handle a) No Description Set
SetBaseAttackTime void SetBaseAttackTime(float a) No Description Set
SetBaseDamageMax void SetBaseDamageMax(int a) Sets the minimum base damage.
SetBaseDamageMin void SetBaseDamageMin(int a) Sets the minimum base damage.
SetBaseHealthRegen void SetBaseHealthRegen(float a) No Description Set
SetBaseMagicalResistanceValue void SetBaseMagicalResistanceValue(float a) Sets base magical armor value.
SetBaseManaRegen void SetBaseManaRegen(float a) No Description Set
SetBaseMaxHealth void SetBaseMaxHealth(float a) Set a new base max health value.
SetBaseMoveSpeed void SetBaseMoveSpeed(int a) No Description Set
SetControllableByPlayer void SetControllableByPlayer(int a, bool b) Set this unit controllable by the player with the passed ID.
SetCursorCastTarget void SetCursorCastTarget(handle a) No Description Set
SetCursorPosition void SetCursorPosition(Vector a) No Description Set
SetCursorTargetingNothing void SetCursorTargetingNothing(bool a) No Description Set
SetDayTimeVisionRange void SetDayTimeVisionRange(int a) Set the base vision range.
SetDeathXP void SetDeathXP(int a) Set the XP bounty on this unit
SetForceAttackTarget void SetForceAttackTarget(handle a) No Description Set
SetHasInventory void SetHasInventory(bool a) No Description Set
SetHullRadius void SetHullRadius(float a) Set the collision hull radius of this NPC
SetIdleAcquire void SetIdleAcquire(bool a) No Description Set
SetInitialGoalEntity void SetInitialGoalEntity(handle a) Sets the initial waypoint goal for this NPC
SetMana void SetMana(float a) Set the mana on this unit.
SetMaximumGoldBounty void SetMaximumGoldBounty(int a) Set the maximum gold bounty for this unit.
SetMinimumGoldBounty void SetMinimumGoldBounty(int a) Set the minimum gold bounty for this unit.
SetMoveCapability void SetMoveCapability(int a) No Description Set
SetMustReachEachGoalEntity void SetMustReachEachGoalEntity(bool a) Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
SetNeverMoveToClearSpace void SetNeverMoveToClearSpace(bool a) If set to true, we will never attempt to move this unit to clear space, even when it unphases.
SetNightTimeVisionRange void SetNightTimeVisionRange(int a) 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 a) Sets base physical armor value.
SetRangedProjectileName void SetRangedProjectileName(string a) No Description Set
SetStolenScepter void SetStolenScepter(bool a) No Description Set
SetUnitName void SetUnitName(string a) No Description Set
ShouldIdleAcquire bool ShouldIdleAcquire() No Description Set
SpendMana void SpendMana(float a, handle b) 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 a, string b, bool c, bool d) 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 a) Query whether the passed ability will trigger spell absorb on this unit.
UnitCanRespawn bool UnitCanRespawn() No Description Set


CDOTA_BaseNPC_Hero

'

Function Signature Description
AddExperience bool AddExperience(float amount, 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 a) 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 a, bool b, bool c) Args: const char* pItemName, bool bIncludeStashCombines, bool bAllowSelling
HeroLevelUp void HeroLevelUp(bool a) 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 a, handle b) Args: Hero, Inflictor
ModifyAgility void ModifyAgility(float a) 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 a) Adds passed value to base attribute value, then calls CalculateStatBonus.
ModifyStrength void ModifyStrength(float a) 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 buyback, bool unknown1, bool unknown2)
SetAbilityPoints void SetAbilityPoints(int a) Sets the current unspent ability point's.
SetBaseAgility void SetBaseAgility(float a) No Description Set
SetBaseIntellect void SetBaseIntellect(float a) No Description Set
SetBaseStrength void SetBaseStrength(float a) No Description Set
SetBuybackCooldownTime void SetBuybackCooldownTime(float a) Sets the buyback cooldown time.
SetBuyBackDisabledByReapersScythe void SetBuyBackDisabledByReapersScythe(bool a) No Description Set
SetBuybackGoldLimitTime void SetBuybackGoldLimitTime(float a) Set the amount of time gold gain is limited after buying back.
SetCustomDeathXP void SetCustomDeathXP(int a) Sets a custom experience value for this hero.
Tip.pngTip:GameRules boolean must be set for this to work!
SetGold void SetGold(int a, bool b) Sets the gold amount for the player owning this hero
SetPlayerID void SetPlayerID(int a) No Description Set
SetRespawnPosition void SetRespawnPosition(Vector a) No Description Set
SetTimeUntilRespawn void SetTimeUntilRespawn(float a) No Description Set
ShouldDoFlyHeightVisual bool ShouldDoFlyHeightVisual() No Description Set
SpendGold void SpendGold(int a, int b) Args: int nGold, int nReason
UnitCanRespawn bool UnitCanRespawn() No Description Set
UpgradeAbility void UpgradeAbility(handle a) 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 a) Add the specified item drop to this creature
CreatureLevelUp void CreatureLevelUp(int a) Level the creature up by the specified number of levels
IsChampion bool IsChampion() Is this unit a champion?
SetArmorGain void SetArmorGain(float a) Set the armor gained per level on this creature.
SetAttackTimeGain void SetAttackTimeGain(float a) Set the attack time gained per level on this creature.
SetBountyGain void SetBountyGain(int a) Set the bounty gold gained per level on this creature.
SetChampion void SetChampion(bool a) Flag this unit as a champion creature.
SetDamageGain void SetDamageGain(int a) Set the damage gained per level on this creature.
SetDisableResistanceGain void SetDisableResistanceGain(float a) Set the disable resistance gained per level on this creature.
SetHPGain void SetHPGain(int a) Set the hit point's gained per level on this creature.
SetHPRegenGain void SetHPRegenGain(float a) Set the hit point's regen gained per level on this creature.
SetMagicResistanceGain void SetMagicResistanceGain(float a) Set the magic resistance gained per level on this creature.
SetManaGain void SetManaGain(int a) Set the mana point's gained per level on this creature.
SetManaRegenGain void SetManaRegenGain(float a) Set the mana point's regen gained per level on this creature.
SetMoveSpeedGain void SetMoveSpeedGain(int a) Set the move speed gained per level on this creature.
SetXPGain void SetXPGain(int a) 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 a) 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 a, bool b) ( sItemName ) - grant an item to the unit by name.
IsBlocking bool IsBlocking() is this unit blocking?
IsFacing bool IsFacing(Vector a, float b) ( vecTargetPosition, flAngleTolerance ) - returns true if the unit is within flAngleTolerance degrees of the target position
SetBlocking void SetBlocking(bool a) ( bShouldBlock ) - Set the blocking state of this unit.
SetMaxSpeed void SetMaxSpeed(float a) ( flMaxSpeed ) - sets unit's max speed
SetMovementTargetEntity void SetMovementTargetEntity(handle a, float b) ( hTargetEntity, flTargetRange ) - Try to move this unit to the given range from the target entity.
SetMovementTargetPosition void SetMovementTargetPosition(Vector a, float b) ( vecTargetPosition, flTargetRange ) - Try to move this unit to the given range from the target point.
SetSensingSphereRange void SetSensingSphereRange(float a) ( flSightRange ) - set range of unit's 360 degree sensing sphere
SetSightConeAngle void SetSightConeAngle(float a) ( flAngleDegrees ) - sets angle in which the unit can see things up to sight range
SetSightConeRange void SetSightConeRange(float a) ( fRange ) - set range of unit's sight cone
SetTurnRate void SetTurnRate(float a) ( 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 a) Show the player hero's inventory in the HUD, regardless of what unit is selected.
SetBotThinkingEnabled void SetBotThinkingEnabled(bool a) Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc.
SetBuybackEnabled void SetBuybackEnabled(bool a) Enables or disables buyback completely
SetCameraDistanceOverride void SetCameraDistanceOverride(float a) Set a different camera distance; dota default is 1134.
SetCustomBuybackCooldownEnabled void SetCustomBuybackCooldownEnabled(bool a) Turns on capability to define custom buyback cooldowns.
SetCustomBuybackCostEnabled void SetCustomBuybackCostEnabled(bool a) 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 a) Allows definition of a table of hero XP values.
SetFogOfWarDisabled void SetFogOfWarDisabled(bool a) Turn the fog of war on or off.
SetGoldSoundDisabled void SetGoldSoundDisabled(bool a) 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 a) Turn the panel for showing recommended items at the shop off/on. Takes a bool.
SetRemoveIllusionsOnDeath void SetRemoveIllusionsOnDeath(bool a) Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds.
SetTopBarTeamValue void SetTopBarTeamValue(int a, int b) Set the team values on the top game bar.
SetTopBarTeamValuesOverride void SetTopBarTeamValuesOverride(bool a) Override the values of the team values on the top game bar.
SetTopBarTeamValuesVisible void SetTopBarTeamValuesVisible(bool a) Turning on/off the team values on the top game bar.
SetTowerBackdoorProtectionEnabled void SetTowerBackdoorProtectionEnabled(bool a) Enables/Disables tower backdoor protection
SetUseCustomHeroLevels void SetUseCustomHeroLevels(bool a) 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 a) Add a subquest to this quest
CompleteQuest void CompleteQuest() Mark this quest complete
GetSubquest handle GetSubquest(int a) Finds a subquest from this quest by index
GetSubquestByName handle GetSubquestByName(string a) Finds a subquest from this quest by name
RemoveSubquest void RemoveSubquest(handle a) Remove a subquest from this quest
SetTextReplaceString void SetTextReplaceString(string a) Set the text replace string for this quest
SetTextReplaceValue void SetTextReplaceValue(int a, int b) Set a quest value


CDotaSubquestBase

No Description Set

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


CPhysicsComponent

No Description Set

Function Signature Description
ExpensiveInstantRayCast bool ExpensiveInstantRayCast(Vector a, Vector b, handle c) 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 a, handle b) 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 a, Vector b) Apply an impulse at a worldspace position to the physics
AddVelocity void AddVelocity(Vector a, Vector b) 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 a) Returns a sequence id given a name
SequenceDuration float SequenceDuration(string a) Returns the duration in seconds of the specified sequence
SetAngularVelocity void SetAngularVelocity(Vector a) No Description Set
SetAnimation void SetAnimation(string a) Pass string for the animation to play on this model
SetBodyGroup void SetBodyGroup(string a) No Description Set
SetMaterialGroup void SetMaterialGroup(utlstringtoken a) No Description Set
SetVelocity void SetVelocity(Vector velocity) No Description Set


CBaseAnimating

A class containing functions involved in animations

Function Signature Description
GetAttachmentAngles Vector GetAttachmentAngles(int a) Get the attachement id's angles as a p,y,r vector
GetAttachmentOrigin Vector GetAttachmentOrigin(int a) Get the attachement id's origin vector
IsSequenceFinished bool IsSequenceFinished() Ask whether the main sequence is done playing
ScriptLookupAttachment int ScriptLookupAttachment(string a) Get the named attachment id
SetBodygroup void SetBodygroup(int a, int b) Sets a bodygroup
SetModelScale void SetModelScale(float scale) Sets the model's scale to scale,
so if a unit had its model scale at 1, and you use SetModelScale(10.0), it would set the scale to 10.0.
SetPoseParameter float SetPoseParameter(string a, float b) 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

The projectile manager, it manages projectiles.

Function Signature Description
CreateLinearProjectile int CreateLinearProjectile(handle a) Creates a linear projectile and returns the projectile ID
CreateTrackingProjectile void CreateTrackingProjectile(handle a) Creates a tracking projectile
DestroyLinearProjectile void DestroyLinearProjectile(int a) Destroys the linear projectile matching the argument ID
ProjectileDodge void ProjectileDodge(handle a) 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 a) 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 a) Create an entity at the location of a specified entity instance
SpawnEntityAtLocation void SpawnEntityAtLocation(Vector a, Vector b) Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll)
SpawnEntityAtNamedEntityOrigin void SpawnEntityAtNamedEntityOrigin(string a) Create an entity at the location of a named entity


CDOTAVoteSystem

No Description Set

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


CMarkupVolumeTagged

No Description Set

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


CScriptPrecacheContext

No Description Set

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


CScriptKeyValues

No Description Set

Function Signature Description
GetValue table GetValue(string a) 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 a, handle b) No Description Set
ReleaseParticleIndex void ReleaseParticleIndex(int particleId) Frees the specified particle index
SetParticleAlwaysSimulate void SetParticleAlwaysSimulate(int a) 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 a, int b, handle c, int d, string e, Vector f, bool g) 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 a, string b) Add an output
Init void Init(int a) Initialize with number of outputs


CEnvProjectedTexture

No Description Set

Function Signature Description
SetFarRange void SetFarRange(float a) Set light maximum range
SetLinearAttenuation void SetLinearAttenuation(float a) Set light linear attenuation value
SetNearRange void SetNearRange(float a) Set light minimum range
SetQuadraticAttenuation void SetQuadraticAttenuation(float a) Set light quadratic attenuation value
SetVolumetrics void SetVolumetrics(bool a, float b, float c, int d, float e) 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 a, Vector b) Query color data for this key
QueryFloat float QueryFloat(utlstringtoken a, float b) Query float data for this key
QueryInt int QueryInt(utlstringtoken a, int b) Query int data for this key
QueryNumber float QueryNumber(utlstringtoken a, float b) Query number data for this key
QueryString string QueryString(utlstringtoken a, string b) Query string data for this key
QueryVector Vector QueryVector(utlstringtoken a, Vector b) 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

'

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 message, int teamID, int unknown(1?)) Displays a line of text in the left textbox (where usually deaths/denies/buysbacks are announced). This function takes restricted HTML as input! (<br>,<u>,<font>)
SetCreepMinimapIconScale void SetCreepMinimapIconScale(float scale) Scale the creep icons on the minimap.
SetCustomGameDifficulty void SetCustomGameDifficulty(int a) Set the difficulty level of the custom game mode
SetFirstBloodActive void SetFirstBloodActive(bool a) Sets whether First Blood has been triggered.
SetGameWinner void SetGameWinner(int team) Makes ths specified team win
SetGoldPerTick void SetGoldPerTick(int a) Set the auto gold increase per timed interval.
SetGoldTickTime void SetGoldTickTime(float a) 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 a) 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 a) Heroes will use the basic NPC functionality for determining their bounty, rather than DOTA specific formulas.
SetUseCustomHeroXPValues void SetUseCustomHeroXPValues(bool a) 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 a) Sets bloom scale for this tonemap controller
SetMaxExposure void SetMaxExposure(float a) Sets max exposure for this tonemap controller
SetMinExposure void SetMinExposure(float a) Sets min exposure for this tonemap controller


CDebugOverlayScriptHelper

No Description Set

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


CBaseFlex

Animated characters who have vertex flex capability (Hi hex6)

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


CSceneEntity

No Description Set

Function Signature Description
AddBroadcastTeamTarget void AddBroadcastTeamTarget(int a) 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 a) 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 a, string b) given a dummy scene name and a vcd string, load the scene
RemoveBroadcastTeamTarget void RemoveBroadcastTeamTarget(int a) Removes a team (by index) from the broadcast list
Start void Start(handle a) Start scene playback, takes activatorEntity as param


GridNav

A class that can communicate with the gridnav, useful for seeing if stuff should be able to move

Function Signature Description
GridPosToWorldCenterX float GridPosToWorldCenterX(int a) Get the X position of the center of a given X index
GridPosToWorldCenterY float GridPosToWorldCenterY(int a) Get the Y position of the center of a given Y index
IsBlocked bool IsBlocked(Vector a) Checks whether the given position is blocked
IsNearbyTree bool IsNearbyTree(Vector position, float radius, bool c)
IsTraversable bool IsTraversable(Vector a) Checks whether the given position is traversable
RegrowAllTrees void RegrowAllTrees()
WorldToGridPosX int WorldToGridPosX(float a) Get the X index of a given world X position
WorldToGridPosY int WorldToGridPosY(float a) 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 a) 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 a, int b) SetInt(name, val) : sets the value of the convar to the int.
SetStr void SetStr(string a, string b) SetStr(name, val) : sets the value of the convar to the string.