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

From Valve Developer Community
Jump to navigation Jump to search
m (Using L template for links)
 
(7 intermediate revisions by 4 users not shown)
Line 3: Line 3:
==='''Доступ к API сценариям DOTA 2 из Lua''' ===
==='''Доступ к API сценариям DOTA 2 из Lua''' ===


Хотя Lua и является языком с  [http://pixs.ru/showimage/LuaDynamic_3456377_28163795.jpg Динамической типизацией], движок Dota 2 в основном написан на C++,и он является  [http://en.wikipedia.org/wiki/Type_system#Static_type-checking Статически типизированным]. Таким образом,при вызове API вам нужно будет знать свои типы данных.  
| Lua является языком с  [http://pixs.ru/showimage/LuaDynamic_3456377_28163795.jpg Динамической типизацией], движок Dota 2 в основном написан на C++,и он является  [http://en.wikipedia.org/wiki/Type_system#Static_type-checking Статически типизированным]. Таким образом,при вызове API вам нужно будет знать свои типы данных.<br />
(Если вы попытаетесь передать неправильный тип функции API, вы получите сообщение об ошибке в Vconsole.)
(Если вы попытаетесь передать неправильный тип функции API, вы получите сообщение об ошибке в Vconsole.)
__TOC__
__TOC__
Line 14: Line 14:
! Описание
! Описание
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.AddFOWViewer | AddFOWViewer]] Есть пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.AddFOWViewer|AddFOWViewer}} Есть пример.
| <code>void Add[https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Level_Design/Dota/Fog_of_War FOW]Viewer(int int_1, Vector Vector_2, float float_3, float float_4, bool bool_5) </code>
| <code>void Add[https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Level_Design/Dota/Fog_of_War FOW]Viewer(int int_1, Vector Vector_2, float float_3, float float_4, bool bool_5) </code>
| Добавить временный обзор (засвет) для конкретной команды ( nTeamID, vLocation, flRadius, flDuration, bObstructedVision)
| Добавить временный обзор (засвет) для конкретной команды ( nTeamID, vLocation, flRadius, flDuration, bObstructedVision)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.AngleDiff | AngleDiff]] Есть пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.AngleDiff|AngleDiff}} Есть пример.
| <code>float AngleDiff(float ang1, float ang2) </code>
| <code>float AngleDiff(float ang1, float ang2) </code>
| Возвращает(просчитывает,выводит,показывает)[https://im0-tub-ru.yandex.net/i?id=3c23e9efacbd66b9cb9edd9d57cae19c-l&n=13 разность двух углов].
| Возвращает(просчитывает,выводит,показывает)[https://im0-tub-ru.yandex.net/i?id=3c23e9efacbd66b9cb9edd9d57cae19c-l&n=13 разность двух углов].
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.AppendToLogFile | AppendToLogFile]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.AppendToLogFile|AppendToLogFile}}
| <code>void AppendToLogFile(string string_1, string string_2) </code>
| <code>void AppendToLogFile(string string_1, string string_2) </code>
| Добавление [http://pixs.ru/showimage/type2png_5005661_28168331.png ''string''] в LogFile на сервер.
| Добавление [http://pixs.ru/showimage/type2png_5005661_28168331.png ''string''] в LogFile на сервер.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ApplyDamage | ApplyDamage]] Есть пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ApplyDamage|ApplyDamage}} Есть пример.
| <code>float ApplyDamage(handle DamageTable) </code>
| <code>float ApplyDamage(handle DamageTable) </code>
|  Применить урон по юниту с вводными таблицы :victim, attacker, damage, damage_type, damage_flags, ability
|  Применить урон по юниту с вводными таблицы :victim, attacker, damage, damage_type, damage_flags, ability
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.AxisAngleToQuaternion | AxisAngleToQuaternion]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.AxisAngleToQuaternion|AxisAngleToQuaternion}}
| <code>Quaternion AxisAngleToQuaternion(Vector Vector_1, float float_2) </code>
| <code>Quaternion AxisAngleToQuaternion(Vector Vector_1, float float_2) </code>
| ([http://codelessons.ru/cplusplus/vektory-v-c-dlya-nachinayushhix.html''vector''],[http://pixs.ru/showimage/type2png_5005661_28168331.png''float'']) строит кватернион, представляющий поворот на угол вокруг указанной векторной оси.
| ([http://codelessons.ru/cplusplus/vektory-v-c-dlya-nachinayushhix.html''vector''],[http://pixs.ru/showimage/type2png_5005661_28168331.png''float'']) строит кватернион, представляющий поворот на угол вокруг указанной векторной оси.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CalcClosestPointOnEntityOBB | CalcClosestPointOnEntityOBB]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CalcClosestPointOnEntityOBB|CalcClosestPointOnEntityOBB}} Пример.
| <code>Vector CalcClosestPointOnEntityOBB(handle handle_1, Vector Vector_2) </code>
| <code>Vector CalcClosestPointOnEntityOBB(handle handle_1, Vector Vector_2) </code>
| Вычисляет ближайшую точку OBB объекта.
| Вычисляет ближайшую точку OBB объекта.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CalcDistanceBetweenEntityOBB | CalcDistanceBetweenEntityOBB]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CalcDistanceBetweenEntityOBB|CalcDistanceBetweenEntityOBB}} Пример.
| <code>float CalcDistanceBetweenEntityOBB(handle handle_1, handle handle_2) </code>
| <code>float CalcDistanceBetweenEntityOBB(handle handle_1, handle handle_2) </code>
| Вычисляет расстояние между двумя объектами OBB.Отрицательное возвращаемое значение указывает на ошибку ввода.Возвращаемое значение нуля указывает, что OBB перекрывают друг-друга.
| Вычисляет расстояние между двумя объектами OBB.Отрицательное возвращаемое значение указывает на ошибку ввода.Возвращаемое значение нуля указывает, что OBB перекрывают друг-друга.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CalcDistanceToLineSegment2D | CalcDistanceToLineSegment2D]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CalcDistanceToLineSegment2D|CalcDistanceToLineSegment2D}}
| <code>float CalcDistanceToLineSegment2D(Vector vector_1, Vector vector_2, Vector vector_3) </code>
| <code>float CalcDistanceToLineSegment2D(Vector vector_1, Vector vector_2, Vector vector_3) </code>
| Вычисляет расстояние от точки до линии [https://im0-tub-ru.yandex.net/i?id=a3e199aa181f53eb6b4d9eb70322b7df-l&n=13 сегмента].
| Вычисляет расстояние от точки до линии [https://im0-tub-ru.yandex.net/i?id=a3e199aa181f53eb6b4d9eb70322b7df-l&n=13 сегмента].
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CancelEntityIOEvents | CancelEntityIOEvents]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CancelEntityIOEvents|CancelEntityIOEvents}}
| <code>void CancelEntityIOEvents([https://developer.valvesoftware.com/wiki/CHandle#EHANDLE ehandle] ehandle_1) </code>
| <code>void CancelEntityIOEvents([https://developer.valvesoftware.com/wiki/CHandle#EHANDLE ehandle] ehandle_1) </code>
| Создает все входящие и исходящие события, для определенного объекта.
| Создает все входящие и исходящие события, для определенного объекта.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ClearTeamCustomHealthbarColor | ClearTeamCustomHealthbarColor]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ClearTeamCustomHealthbarColor|ClearTeamCustomHealthbarColor}} Пример.
| <code>void ClearTeam[https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Beta_Release_Notes#Custom_Healthbar_Colors CustomHealthbarColor](int int_1) </code>
| <code>void ClearTeam[https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Beta_Release_Notes#Custom_Healthbar_Colors CustomHealthbarColor](int int_1) </code>
| Очистить индивидуальный цвет хилбара( teamNumber - использовать номер команды )
| Очистить индивидуальный цвет хилбара( teamNumber - использовать номер команды )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateEffect | CreateEffect]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateEffect|CreateEffect}}
| <code>bool CreateEffect(handle handle_1) </code>
| <code>bool CreateEffect(handle handle_1) </code>
| Передает в ''таблицу'' - вводные данные о : entity, effect
| Передает в ''таблицу'' - вводные данные о : entity, effect
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer | CreateHeroForPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer|CreateHeroForPlayer}}
| <code>handle CreateHeroForPlayer(string unitName, handle player) </code>
| <code>handle CreateHeroForPlayer(string unitName, handle player) </code>
| Создает героя Доты в соответствии с прописанным именем и сетом в dota_npc_units.txt и устанавливает его,как управляемого игроком героя.
| Создает героя Доты в соответствии с прописанным именем и сетом в dota_npc_units.txt и устанавливает его,как управляемого игроком героя.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateHTTPRequest | CreateHTTPRequestScriptVM]] Пример.  
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateHTTPRequest|CreateHTTPRequestScriptVM}} Пример.  
| <code>handle CreateHTTPRequestScriptVM(string string_1, string string_2) </code>
| <code>handle CreateHTTPRequestScriptVM(string string_1, string string_2) </code>
| Создайте HTTP-запрос. Недавно переименован из CreateHTTPRequest.  
| Создайте HTTP-запрос. Недавно переименован из CreateHTTPRequest.  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItem | CreateItem]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateItem|CreateItem}}
| <code>handle CreateItem(string item_name, handle owner, handle owner) </code>
| <code>handle CreateItem(string item_name, handle owner, handle owner) </code>
| Создает элемент с именем класса ''item_name'', которую [https://developer.valvesoftware.com/wiki/Owner ''owner''](владелец) может использовать.
| Создает элемент с именем класса ''item_name'', которую [https://developer.valvesoftware.com/wiki/Owner ''owner''](владелец) может использовать.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionForLaunch | CreateItemOnPositionForLaunch]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionForLaunch|CreateItemOnPositionForLaunch}} Пример.
| <code>handle CreateItemOnPositionForLaunch(Vector Vector_1, handle handle_2) </code>
| <code>handle CreateItemOnPositionForLaunch(Vector Vector_1, handle handle_2) </code>
| Создает физический элемент в заданном месте, может появится в воздухе (но не замещает собой пространство)
| Создает физический элемент в заданном месте, может появится в воздухе (но не замещает собой пространство)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionSync | CreateItemOnPositionSync]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionSync|CreateItemOnPositionSync}}
| <code>handle CreateItemOnPositionSync(Vector Vector_1, handle handle_2) </code>
| <code>handle CreateItemOnPositionSync(Vector Vector_1, handle handle_2) </code>
| Создает физического объекта в заданном месте.
| Создает физического объекта в заданном месте.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateModifierThinker | CreateModifierThinker]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateModifierThinker|CreateModifierThinker}} Пример.
| <code>handle CreateModifierThinker(handle handle_1, handle handle_2, string string_3, handle handle_4, Vector Vector_5, int int_6, bool bool_7) </code>
| <code>handle CreateModifierThinker(handle handle_1, handle handle_2, string string_3, handle handle_4, Vector Vector_5, int int_6, bool bool_7) </code>
| Создает модификатор, не связанный с NPC. ( hCaster, hAbility, modifierName, paramTable, vOrigin, nTeamNumber, bPhantomBlocker )
| Создает модификатор, не связанный с NPC. ( hCaster, hAbility, modifierName, paramTable, vOrigin, nTeamNumber, bPhantomBlocker )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTempTree | CreateTempTree]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateTempTree|CreateTempTree}} Пример.
| <code>void CreateTempTree(Vector Vector_1, float float_2) </code>
| <code>void CreateTempTree(Vector Vector_1, float float_2) </code>
| Создает временно существующее дерево.
| Создает временно существующее дерево.
(vLocation-(Место) flDuration-(Продолжительность)).
(vLocation-(Место) flDuration-(Продолжительность)).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTrigger | CreateTrigger]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateTrigger|CreateTrigger}}
| <code>handle CreateTrigger(Vector Vector_1, Vector Vector_2, Vector Vector_3) </code>
| <code>handle CreateTrigger(Vector Vector_1, Vector Vector_2, Vector Vector_3) </code>
| Создает Trigger( vecMin, vecMax ) : Создает [http://www.gamedev.ru/terms/AABB AABB] trigger
| Создает Trigger( vecMin, vecMax ) : Создает [http://www.gamedev.ru/terms/AABB AABB] trigger
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTriggerRadiusApproximate | CreateTriggerRadiusApproximate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateTriggerRadiusApproximate|CreateTriggerRadiusApproximate}}
| <code>handle CreateTriggerRadiusApproximate(Vector Vector_1, float float_2) </code>
| <code>handle CreateTriggerRadiusApproximate(Vector Vector_1, float float_2) </code>
| CreateTriggerRadiusApproximate( vecOrigin, flRadius ) :Создает и убирает триггер AABB, размер которого больше предусмотренного радиуса.
| CreateTriggerRadiusApproximate( vecOrigin, flRadius ) :Создает и убирает триггер AABB, размер которого больше предусмотренного радиуса.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByName | CreateUnitByName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByName|CreateUnitByName}}
| <code>handle CreateUnitByName(string string_1, Vector Vector_2, bool bool_3, handle handle_4, handle handle_5, int int_6) </code>
| <code>handle CreateUnitByName(string string_1, Vector Vector_2, bool bool_3, handle handle_4, handle handle_5, int int_6) </code>
|  Создает юнита Доты в соответствии с прописанными настройками в dota_npc_units.txt( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
|  Создает юнита Доты в соответствии с прописанными настройками в dota_npc_units.txt( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByNameAsync | CreateUnitByNameAsync]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByNameAsync|CreateUnitByNameAsync}}
| <code>int CreateUnitByNameAsync(string string_1, Vector Vector_2, bool bool_3, handle handle_4, handle handle_5, int int_6, handle handle_7) </code>
| <code>int CreateUnitByNameAsync(string string_1, Vector Vector_2, bool bool_3, handle handle_4, handle handle_5, int int_6, handle handle_7) </code>
| Создает юнита Доты в соответствии с прописанными настройками в dota_npc_units.txt Тоже самое что и выше,только с одной дополнительной функцией.
| Создает юнита Доты в соответствии с прописанными настройками в dota_npc_units.txt Тоже самое что и выше,только с одной дополнительной функцией.
( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitFromTable | CreateUnitFromTable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitFromTable|CreateUnitFromTable}}
| <code>handle CreateUnitFromTable(handle handle_1, Vector Vector_2) </code>
| <code>handle CreateUnitFromTable(handle handle_1, Vector Vector_2) </code>
| Создает новый объект, управляемый данными, с указанной таблицей.
| Создает новый объект, управляемый данными, с указанной таблицей.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_getf | cvar_getf]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.cvar_getf|cvar_getf}}
| <code>float cvar_getf(string string_1) </code>
| <code>float cvar_getf(string string_1) </code>
| Возвращает значение данного cvar как ''float''.
| Возвращает значение данного cvar как ''float''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_setf | cvar_setf]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.cvar_setf|cvar_setf}}
| <code>bool cvar_setf(string string_1, float float_2) </code>
| <code>bool cvar_setf(string string_1, float float_2) </code>
| Устанавливает значение данного cvar как ''float''.
| Устанавливает значение данного cvar как ''float''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugBreak | DebugBreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugBreak|DebugBreak}}
| <code>void DebugBreak() </code>
| <code>void DebugBreak() </code>
| Пауза в отладчике
| Пауза в отладчике
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBox | DebugDrawBox]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBox|DebugDrawBox}}
| <code>void DebugDrawBox(Vector origin, Vector min, Vector max, int r, int g, int b, int a, float duration) </code>
| <code>void DebugDrawBox(Vector origin, Vector min, Vector max, int r, int g, int b, int a, float duration) </code>
| Рисует бокс наложения отладки.
| Рисует бокс наложения отладки.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBoxDirection | DebugDrawBoxDirection]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBoxDirection|DebugDrawBoxDirection}}
| <code>void DebugDrawBoxDirection(Vector Vector_1, Vector Vector_2, Vector Vector_3, Vector Vector_4, Vector Vector_5, float float_6, float float_7) </code>
| <code>void DebugDrawBoxDirection(Vector Vector_1, Vector Vector_2, Vector Vector_3, Vector Vector_4, Vector Vector_5, float float_6, float float_7) </code>
| Рисует бокс наложения отладки по направлению.(cent, min, max, forward, vRgb, a, duration)
| Рисует бокс наложения отладки по направлению.(cent, min, max, forward, vRgb, a, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawCircle | DebugDrawCircle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawCircle|DebugDrawCircle}}
| <code>void DebugDrawCircle(Vector Vector_1, Vector Vector_2, float float_3, float float_4, bool bool_5, float float_6) </code>
| <code>void DebugDrawCircle(Vector Vector_1, Vector Vector_2, float float_3, float float_4, bool bool_5, float float_6) </code>
| Рисует круг отладки. (center, vRgb, a, rad, ztest, duration)
| Рисует круг отладки. (center, vRgb, a, rad, ztest, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawClear | DebugDrawClear]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawClear|DebugDrawClear}}
| <code>void DebugDrawClear() </code>
| <code>void DebugDrawClear() </code>
| Удаляет все отладочные наложения.
| Удаляет все отладочные наложения.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine | DebugDrawLine]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine|DebugDrawLine}}
| <code>void DebugDrawLine(Vector Vector_1, Vector Vector_2, int int_3, int int_4, int int_5, bool bool_6, float float_7) </code>
| <code>void DebugDrawLine(Vector Vector_1, Vector Vector_2, int int_3, int int_4, int int_5, bool bool_6, float float_7) </code>
| Рисует линию отладки. (origin, target, r, g, b, ztest, duration)
| Рисует линию отладки. (origin, target, r, g, b, ztest, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine_vCol | DebugDrawLine_vCol]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine_vCol|DebugDrawLine_vCol}}
| <code>void DebugDrawLine_vCol(Vector Vector_1, Vector Vector_2, Vector Vector_3, bool bool_4, float float_5) </code>
| <code>void DebugDrawLine_vCol(Vector Vector_1, Vector Vector_2, Vector Vector_3, bool bool_4, float float_5) </code>
| Рисует линию отладки используя цвет vec.(start, end, vRgb, a, ztest, duration)
| Рисует линию отладки используя цвет vec.(start, end, vRgb, a, ztest, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawScreenTextLine | DebugDrawScreenTextLine]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawScreenTextLine|DebugDrawScreenTextLine}}
| <code>void DebugDrawScreenTextLine(float float_1, float float_2, int int_3, string string_4, int int_5, int int_6, int int_7, int int_8, float float_9) </code>
| <code>void DebugDrawScreenTextLine(float float_1, float float_2, int int_3, string string_4, int int_5, int int_6, int int_7, int int_8, float float_9) </code>
| Рисует линию отладки с текстом над ней. (x, y, lineOffset, text, r, g, b, a, duration)
| Рисует линию отладки с текстом над ней. (x, y, lineOffset, text, r, g, b, a, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawSphere | DebugDrawSphere]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawSphere|DebugDrawSphere}}
| <code>void DebugDrawSphere(Vector Vector_1, Vector Vector_2, float float_3, float float_4, bool bool_5, float float_6) </code>
| <code>void DebugDrawSphere(Vector Vector_1, Vector Vector_2, float float_3, float float_4, bool bool_5, float float_6) </code>
| Рисует сферу отладки.(center, vRgb, a, rad, ztest, duration)
| Рисует сферу отладки.(center, vRgb, a, rad, ztest, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawText | DebugDrawText]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawText|DebugDrawText}}
| <code>void DebugDrawText(Vector Vector_1, string string_2, bool bool_3, float float_4) </code>
| <code>void DebugDrawText(Vector Vector_1, string string_2, bool bool_3, float float_4) </code>
| Рисует текст в 3D.(origin, text, bViewCheck, duration)
| Рисует текст в 3D.(origin, text, bViewCheck, duration)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugScreenTextPretty | DebugScreenTextPretty]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DebugScreenTextPretty|DebugScreenTextPretty}}
| <code>void DebugScreenTextPretty(float float_1, float float_2, int int_3, string string_4, int int_5, int int_6, int int_7, int int_8, float float_9, string string_10, int int_11, bool bool_12) </code>
| <code>void DebugScreenTextPretty(float float_1, float float_2, int int_3, string string_4, int int_5, int int_6, int int_7, int int_8, float float_9, string string_10, int int_11, bool bool_12) </code>
| Рисует приятный отладочный текст. (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
| Рисует приятный отладочный текст. (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoCleaveAttack | DoCleaveAttack]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DoCleaveAttack|DoCleaveAttack}} Пример.
| <code>int DoCleaveAttack(handle handle_1, handle handle_2, handle handle_3, float float_4, float float_5, string string_6) </code>
| <code>int DoCleaveAttack(handle handle_1, handle handle_2, handle handle_3, float float_4, float float_5, string string_6) </code>
| (hAttacker, hTarget, hAbility, fDamage, fStartRadius, fEndRadius, fDistance, effectName)
| (hAttacker, hTarget, hAbility, fDamage, fStartRadius, fEndRadius, fDistance, effectName)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFire | DoEntFire]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DoEntFire|DoEntFire}}
| <code>void DoEntFire(string string_1, string string_2, string string_3, float float_4, handle handle_5, handle handle_6) </code>
| <code>void DoEntFire(string string_1, string string_2, string string_3, float float_4, handle handle_5, handle handle_6) </code>
| EntFire: Создает события ввода / вывода объекта ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
| EntFire: Создает события ввода / вывода объекта ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFireByInstanceHandle | DoEntFireByInstanceHandle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DoEntFireByInstanceHandle|DoEntFireByInstanceHandle}}
| <code>void DoEntFireByInstanceHandle(handle handle_1, string string_2, string string_3, float float_4, handle handle_5, handle handle_6) </code>
| <code>void DoEntFireByInstanceHandle(handle handle_1, string string_2, string string_3, float float_4, handle handle_5, handle handle_6) </code>
| EntFireByHandle:Создает события ввода / вывода объекта
| EntFireByHandle:Создает события ввода / вывода объекта
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoIncludeScript | DoIncludeScript]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DoIncludeScript|DoIncludeScript}}
| <code>bool DoIncludeScript(string string_1, handle handle_2) </code>
| <code>bool DoIncludeScript(string string_1, handle handle_2) </code>
| Выполнить скрипт (внутренний)
| Выполнить скрипт (внутренний)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoScriptAssert | DoScriptAssert]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DoScriptAssert|DoScriptAssert}}
| <code>void DoScriptAssert(bool bool_1, string string_2) </code>
| <code>void DoScriptAssert(bool bool_1, string string_2) </code>
| ScriptAssert:Задает переданное значение которое является [https://ru.wikipedia.org/wiki/%D0%A3%D1%82%D0%B2%D0%B5%D1%80%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5) Assert-Утверждение]. Входящие данные являются числовыми, выводятся данные и отображаются в диалоговом окне подтверждения.
| ScriptAssert:Задает переданное значение которое является [https://ru.wikipedia.org/wiki/%D0%A3%D1%82%D0%B2%D0%B5%D1%80%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5) Assert-Утверждение]. Входящие данные являются числовыми, выводятся данные и отображаются в диалоговом окне подтверждения.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoUniqueString | DoUniqueString]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.DoUniqueString|DoUniqueString}}
| <code>string DoUniqueString(string string_1) </code>
| <code>string DoUniqueString(string string_1) </code>
| UniqueString:Создание строки, которая гарантирует уникальность во время выполнения сценария VM, сценария с необязательной корневой строкой. Полезен для добавления данных в таблицу, если неизвестно, какие ключи уже используются в этой таблице.
| UniqueString:Создание строки, которая гарантирует уникальность во время выполнения сценария VM, сценария с необязательной корневой строкой. Полезен для добавления данных в таблицу, если неизвестно, какие ключи уже используются в этой таблице.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSound | EmitAnnouncerSound]] Пример.  
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSound|EmitAnnouncerSound}} Пример.  
| <code>void EmitAnnouncerSound(string string_1) </code>
| <code>void EmitAnnouncerSound(string string_1) </code>
| Воспроизвести голос спикера для всех игроков.
| Воспроизвести голос спикера для всех игроков.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForPlayer | EmitAnnouncerSoundForPlayer]] Пример.  
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForPlayer|EmitAnnouncerSoundForPlayer}} Пример.  
| <code>void EmitAnnouncerSoundForPlayer(string string_1, int int_2) </code>
| <code>void EmitAnnouncerSoundForPlayer(string string_1, int int_2) </code>
| Воспроизвести голос спикера для игрока.
| Воспроизвести голос спикера для игрока.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForTeam | EmitAnnouncerSoundForTeam]] Пример.  
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForTeam|EmitAnnouncerSoundForTeam}} Пример.  
| <code>void EmitAnnouncerSoundForTeam(string string_1, int int_2) </code>
| <code>void EmitAnnouncerSoundForTeam(string string_1, int int_2) </code>
| Воспроизвести голос спикера для команды.
| Воспроизвести голос спикера для команды.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForTeamOnLocation | EmitAnnouncerSoundForTeamOnLocation]] Пример.  
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForTeamOnLocation|EmitAnnouncerSoundForTeamOnLocation}} Пример.  
| <code>void EmitAnnouncerSoundForTeamOnLocation(string string_1, int int_2, Vector Vector_3) </code>
| <code>void EmitAnnouncerSoundForTeamOnLocation(string string_1, int int_2, Vector Vector_3) </code>
| Воспроизвести голос спикера для команды в определенном месте.
| Воспроизвести голос спикера для команды в определенном месте.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound | EmitGlobalSound]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound|EmitGlobalSound}}
| <code>void EmitGlobalSound(string string_1) </code>
| <code>void EmitGlobalSound(string string_1) </code>
| Воспроизвести звук с определенным названием для всех игроков.
| Воспроизвести звук с определенным названием для всех игроков.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOn | EmitSoundOn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOn|EmitSoundOn}}
| <code>void EmitSoundOn(string string_1, handle handle_2) </code>
| <code>void EmitSoundOn(string string_1, handle handle_2) </code>
| Воспроизвести звук с определенным названием.
| Воспроизвести звук с определенным названием.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnClient | EmitSoundOnClient]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnClient|EmitSoundOnClient}}
| <code>void EmitSoundOnClient(string string_1, handle handle_2) </code>
| <code>void EmitSoundOnClient(string string_1, handle handle_2) </code>
| Воспроизвести звук с определенным названием для данного игрока.
| Воспроизвести звук с определенным названием для данного игрока.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnLocationForAllies | EmitSoundOnLocationForAllies]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnLocationForAllies|EmitSoundOnLocationForAllies}} Пример.
| <code>void EmitSoundOnLocationForAllies(Vector Vector_1, string string_2, handle handle_3) </code>
| <code>void EmitSoundOnLocationForAllies(Vector Vector_1, string string_2, handle handle_3) </code>
| Воспроизведение звука в месте нахождения юнита,слышат только союзники. (vLocation, soundName, hCaster
| Воспроизведение звука в месте нахождения юнита,слышат только союзники. (vLocation, soundName, hCaster
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnLocationWithCaster | EmitSoundOnLocationWithCaster]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnLocationWithCaster|EmitSoundOnLocationWithCaster}} Пример.
| <code>void EmitSoundOnLocationWithCaster(Vector Vector_1, string string_2, handle handle_3) </code>
| <code>void EmitSoundOnLocationWithCaster(Vector Vector_1, string string_2, handle handle_3) </code>
| Воспроизведение звука в месте нахождения юнита. (vLocation, soundName, hCaster).
| Воспроизведение звука в месте нахождения юнита. (vLocation, soundName, hCaster).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.EntIndexToHScript | EntIndexToHScript]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.EntIndexToHScript|EntIndexToHScript}}
| <code>handle EntIndexToHScript(int int_1) </code>
| <code>handle EntIndexToHScript(int int_1) </code>
| Преобразует целочисленный индекс объекта в HScript,который представляет собой,сценарий данного объекта.
| Преобразует целочисленный индекс объекта в HScript,который представляет собой,сценарий данного объекта.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExecuteOrderFromTable | ExecuteOrderFromTable]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ExecuteOrderFromTable|ExecuteOrderFromTable}} Пример.
| <code>void ExecuteOrderFromTable(handle handle_1) </code>
| <code>void ExecuteOrderFromTable(handle handle_1) </code>
| Выполняет запрос из таблицы скриптов.
| Выполняет запрос из таблицы скриптов.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExponentialDecay | ExponentialDecay]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ExponentialDecay|ExponentialDecay}}
| <code>float ExponentialDecay(float float_1, float float_2, float float_3) </code>
| <code>float ExponentialDecay(float float_1, float float_2, float float_3) </code>
| Сглаживание кривой,становится медленнее,при приближается к нулю.
| Сглаживание кривой,становится медленнее,при приближается к нулю.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FileToString | FileToString]] Читать обязательно.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FileToString|FileToString}} Читать обязательно.
| <code>string FileToString(string a) </code>
| <code>string FileToString(string a) </code>
| Считывает [http://proginfo.ru/string/''string''] строчные данные из файла,для отправки в скрипт.
| Считывает [http://proginfo.ru/string/''string''] строчные данные из файла,для отправки в скрипт.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindClearSpaceForUnit | FindClearSpaceForUnit]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FindClearSpaceForUnit|FindClearSpaceForUnit}}
| <code>bool FindClearSpaceForUnit(handle handle_1, Vector Vector_2, bool bool_3) </code>
| <code>bool FindClearSpaceForUnit(handle handle_1, Vector Vector_2, bool bool_3) </code>
| Размещает юнит в пустом (не занятом) месте.
| Размещает юнит в пустом (не занятом) месте.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInRadius | FindUnitsInRadius]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInRadius|FindUnitsInRadius}} Пример.
| <code>table FindUnitsInRadius(int teamNumber, Vector position, handle cacheUnit, float radius, int teamFilter, int typeFilter, int flagFilter, int order, bool canGrowCache) </code>
| <code>table FindUnitsInRadius(int teamNumber, Vector position, handle cacheUnit, float radius, int teamFilter, int typeFilter, int flagFilter, int order, bool canGrowCache) </code>
| Поиск юнитов в заданном радиусе по заданным флагам(критериям). ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
| Поиск юнитов в заданном радиусе по заданным флагам(критериям). ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInLine | FindUnitsInLine]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInLine|FindUnitsInLine}} Пример.
| <code>table FindUnitsInLine(int teamNumber, Vector vStartPos, Vector vEndPos, handle cacheUnit, float width, int teamFilter, int typeFilter, int flagFilter) </code>
| <code>table FindUnitsInLine(int teamNumber, Vector vStartPos, Vector vEndPos, handle cacheUnit, float width, int teamFilter, int typeFilter, int flagFilter) </code>
| Поиск юнитов в заданном векторе по заданным флагам(критериям) ( iTeamNumber, vStartPos, vEndPos, hCacheUnit, flWidth, iTeamFilter, iTypeFilter, iFlagFilter)
| Поиск юнитов в заданном векторе по заданным флагам(критериям) ( iTeamNumber, vStartPos, vEndPos, hCacheUnit, flWidth, iTeamFilter, iTypeFilter, iFlagFilter)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputNameOnly | FireEntityIOInputNameOnly]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputNameOnly|FireEntityIOInputNameOnly}}
| <code>void FireEntityIOInputNameOnly(ehandle ehandle_1, string string_2) </code>
| <code>void FireEntityIOInputNameOnly(ehandle ehandle_1, string string_2) </code>
|  Запускает элемент действие объекта,предмета без вводных данных.
|  Запускает элемент действие объекта,предмета без вводных данных.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputString | FireEntityIOInputString]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputString|FireEntityIOInputString}}
| <code>void FireEntityIOInputString(ehandle ehandle_1, string string_2, string string_3) </code>
| <code>void FireEntityIOInputString(ehandle ehandle_1, string string_2, string string_3) </code>
| Запускает элемент действие объекта,предмета с заданной последовательностью - при доступной памяти.
| Запускает элемент действие объекта,предмета с заданной последовательностью - при доступной памяти.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputVec | FireEntityIOInputVec]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputVec|FireEntityIOInputVec}}
| <code>void FireEntityIOInputVec(ehandle ehandle_1, string string_2, Vector Vector_3) </code>
| <code>void FireEntityIOInputVec(ehandle ehandle_1, string string_2, Vector Vector_3) </code>
| Запускает элемент действие объекта,предмета с выбранным вектором ''Vector'' ( hEntity, szActionName, vector )
| Запускает элемент действие объекта,предмета с выбранным вектором ''Vector'' ( hEntity, szActionName, vector )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEvent | FireGameEvent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FireGameEvent|FireGameEvent}}
| <code>void FireGameEvent(string eventName, handle parameterTable) </code>
| <code>void FireGameEvent(string eventName, handle parameterTable) </code>
| Запускает заранее определенное событие, которое можно найти в custom_events.txt либо в dota's resource/*.res
| Запускает заранее определенное событие, которое можно найти в custom_events.txt либо в dota's resource/*.res
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEventLocal | FireGameEventLocal]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FireGameEventLocal|FireGameEventLocal}}
| <code>void FireGameEventLocal(string string_1, handle handle_2) </code>
| <code>void FireGameEventLocal(string string_1, handle handle_2) </code>
| Запускает игровое событие без трансляции на клиент игры.
| Запускает игровое событие без трансляции на клиент игры.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.FrameTime | FrameTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.FrameTime|FrameTime}}
| <code>float FrameTime() </code>
| <code>float FrameTime() </code>
| Выдает время потраченное на сервере за последний период.
| Выдает время потраченное на сервере за последний период.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetEntityIndexForTreeId | GetEntityIndexForTreeId]] Пример.
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetEntityIndexForTreeId|GetEntityIndexForTreeId}} Пример.
| <code><unknown> GetEntityIndexForTreeId(unsigned unsigned_1) </code>
| <code><unknown> GetEntityIndexForTreeId(unsigned unsigned_1) </code>
|  Выдает индекс объекта для идентификации в структуре,указанную как entindex_target из DOTA_UNIT_ORDER_CAST_TARGET_TREE.
|  Выдает индекс объекта для идентификации в структуре,указанную как entindex_target из DOTA_UNIT_ORDER_CAST_TARGET_TREE.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrameCount | GetFrameCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetFrameCount|GetFrameCount}}
| <code>int GetFrameCount() </code>
| <code>int GetFrameCount() </code>
| Показывает текущее количество кадров.
| Показывает текущее количество кадров.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyBoostAmount | GetFrostyBoostAmount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyBoostAmount|GetFrostyBoostAmount}}
| <code>float GetFrostyBoostAmount(int a, int b) </code>
| <code>float GetFrostyBoostAmount(int a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyPointsForRound | GetFrostyPointsForRound]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyPointsForRound|GetFrostyPointsForRound}}
| <code>int GetFrostyPointsForRound(int a, int b, int c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyBoostAmount|GetGoldFrostyBoostAmount}}
| <code>float GetGoldFrostyBoostAmount(int a, int b) </code>
| <code>float GetGoldFrostyBoostAmount(int a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyPointsForRound | GetGoldFrostyPointsForRound]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyPointsForRound|GetGoldFrostyPointsForRound}}
| <code>int GetGoldFrostyPointsForRound(int a, int b, int c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetGroundPosition|GetGroundPosition}}
| <code>Vector GetGroundPosition(Vector a, handle b) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetListenServerHost | GetListenServerHost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetListenServerHost|GetListenServerHost}}
| <code>handle GetListenServerHost() </code>
| <code>handle GetListenServerHost() </code>
| Get the local player on a listen server.
| Get the local player on a listen server.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMapName | GetMapName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetMapName|GetMapName}}
| <code>string GetMapName() </code>
| <code>string GetMapName() </code>
| Get the name of the map.
| Get the name of the map.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMaxOutputDelay | GetMaxOutputDelay]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetMaxOutputDelay|GetMaxOutputDelay}}
| <code>float GetMaxOutputDelay(ehandle a, string b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetPhysAngularVelocity|GetPhysAngularVelocity}}
| <code>Vector GetPhysAngularVelocity(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetPhysVelocity|GetPhysVelocity}}
| <code>Vector GetPhysVelocity(handle a) </code>
| <code>Vector GetPhysVelocity(handle a) </code>
| Get Velocity for VPHYS or normal object
| Get Velocity for VPHYS or normal object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetSystemDate | GetSystemDate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetSystemDate|GetSystemDate}}
| <code>string GetSystemDate() </code>
| <code>string GetSystemDate() </code>
| Get the current real world date
| Get the current real world date
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetSystemTime | GetSystemTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetSystemTime|GetSystemTime}}
| <code>string GetSystemTime() </code>
| <code>string GetSystemTime() </code>
| Get the current real world time
| Get the current real world time
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxX | GetWorldMaxX]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxX|GetWorldMaxX}}
| <code>float GetWorldMaxX() </code>
| <code>float GetWorldMaxX() </code>
| Gets the world's maximum X position.
| Gets the world's maximum X position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxY | GetWorldMaxY]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxY|GetWorldMaxY}}
| <code>float GetWorldMaxY() </code>
| <code>float GetWorldMaxY() </code>
| Gets the world's maximum Y position.
| Gets the world's maximum Y position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinX | GetWorldMinX]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinX|GetWorldMinX}}
| <code>float GetWorldMinX() </code>
| <code>float GetWorldMinX() </code>
| Gets the world's minimum X position.
| Gets the world's minimum X position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinY | GetWorldMinY]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinY|GetWorldMinY}}
| <code>float GetWorldMinY() </code>
| <code>float GetWorldMinY() </code>
| Gets the world's minimum Y position.
| Gets the world's minimum Y position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.InitLogFile | InitLogFile]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.InitLogFile|InitLogFile}}
| <code>void InitLogFile(string a, string b) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsDedicatedServer | IsDedicatedServer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.IsDedicatedServer|IsDedicatedServer}}
| <code>bool IsDedicatedServer() </code>
| <code>bool IsDedicatedServer() </code>
| Returns true if this server is a dedicated server.
| Returns true if this server is a dedicated server.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsMarkedForDeletion | IsMarkedForDeletion]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.IsMarkedForDeletion|IsMarkedForDeletion}}
| <code>bool IsMarkedForDeletion(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.IsValidEntity|IsValidEntity}}
| <code>bool IsValidEntity(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ListenToGameEvent|ListenToGameEvent}}
| <code>int ListenToGameEvent(string EventName, handle functionNameToCall, handle context) </code>
| <code>int ListenToGameEvent(string EventName, handle functionNameToCall, handle context) </code>
| Register as a listener for a game event from script.
| Register as a listener for a game event from script.


{{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.}}
{{tip|In addition to listening for {{L|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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValues|LoadKeyValues}}
| <code>table LoadKeyValues(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValuesFromString|LoadKeyValuesFromString}}
| <code>table LoadKeyValuesFromString(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.MakeStringToken|MakeStringToken}}
| <code>int MakeStringToken(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.Msg|Msg}}
| <code>void Msg(string a) </code>
| <code>void Msg(string a) </code>
| Print a message
| Print a message
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.PauseGame | PauseGame]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PauseGame|PauseGame}}
| <code>void PauseGame(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PlayerInstanceFromIndex|PlayerInstanceFromIndex}}
| <code>handle PlayerInstanceFromIndex(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityFromTable|PrecacheEntityFromTable}}
| <code>void PrecacheEntityFromTable(string a, handle b, handle c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityListFromTable|PrecacheEntityListFromTable}}
| <code>void PrecacheEntityListFromTable(handle a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameAsync|PrecacheItemByNameAsync}}
| <code>void PrecacheItemByNameAsync(string a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameSync|PrecacheItemByNameSync}}
| <code>void PrecacheItemByNameSync(string a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrecacheModel|PrecacheModel}}
| <code>void PrecacheModel(string a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrecacheResource|PrecacheResource}}
| <code>void PrecacheResource(string a, string b, handle c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameAsync|PrecacheUnitByNameAsync}}
| <code>void PrecacheUnitByNameAsync(string a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameSync|PrecacheUnitByNameSync}}
| <code>void PrecacheUnitByNameSync(string a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.PrintLinkedConsoleMessage|PrintLinkedConsoleMessage}}
| <code>void PrintLinkedConsoleMessage(string a, string b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RandomFloat|RandomFloat}}
| <code>float RandomFloat(float a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RandomInt|RandomInt}}
| <code>int RandomInt(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RandomVector|RandomVector}}
| <code>Vector RandomVector(float maxLength) </code>
| <code>Vector RandomVector(float maxLength) </code>
| Get a random 2D vector
| Get a random 2D vector
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RegisterSpawnGroupFilterProxy | RegisterSpawnGroupFilterProxy]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RegisterSpawnGroupFilterProxy|RegisterSpawnGroupFilterProxy}}
| <code>void RegisterSpawnGroupFilterProxy(string a) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ReloadMOTD | ReloadMOTD]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ReloadMOTD|ReloadMOTD}}
| <code>void ReloadMOTD() </code>
| <code>void ReloadMOTD() </code>
| Reloads the MotD file
| Reloads the MotD file
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.RemoveSpawnGroupFilterProxy | RemoveSpawnGroupFilterProxy]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RemoveSpawnGroupFilterProxy|RemoveSpawnGroupFilterProxy}}
| <code>void RemoveSpawnGroupFilterProxy(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RollPercentage|RollPercentage}}
| <code>bool RollPercentage(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RotateOrientation|RotateOrientation}}
| <code>QAngle RotateOrientation(QAngle a, QAngle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RotatePosition|RotatePosition}}
| <code>Vector RotatePosition(Vector a, QAngle b, Vector c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RotateQuaternionByAxisAngle|RotateQuaternionByAxisAngle}}
| <code>Quaternion RotateQuaternionByAxisAngle(Quaternion a, Vector b, float c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.RotationDelta|RotationDelta}}
| <code>QAngle RotationDelta(QAngle a, QAngle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.rr_AddDecisionRule|rr_AddDecisionRule}}
| <code>bool rr_AddDecisionRule(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.rr_CommitAIResponse|rr_CommitAIResponse}}
| <code>bool rr_CommitAIResponse(handle a, handle b) </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)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_GetResponseTargets | rr_GetResponseTargets]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.rr_GetResponseTargets|rr_GetResponseTargets}}
| <code>handle rr_GetResponseTargets() </code>
| <code>handle rr_GetResponseTargets() </code>
| Retrieve a ''table'' of all available expresser targets, in the form { name : ''handle'', name: ''handle'' }.
| Retrieve a ''table'' of all available expresser targets, in the form { name : ''handle'', name: ''handle'' }.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_QueryBestResponse | rr_QueryBestResponse]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.rr_QueryBestResponse|rr_QueryBestResponse}}
| <code>bool rr_QueryBestResponse(handle a, handle b, handle c) </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).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.Say | Say]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.Say|Say}}
| <code>void Say(handle entity, string message, bool teamOnly) </code>
| <code>void Say(handle entity, string message, bool teamOnly) </code>
| Have Entity say ''string'', and teamOnly or not
| Have Entity say ''string'', and teamOnly or not
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ScreenShake | ScreenShake]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ScreenShake|ScreenShake}}
| <code>void ScreenShake(Vector a, float b, float c, float d, float e, int f, bool g) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostivusTimeElapsedToGC | SendFrostivusTimeElapsedToGC]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SendFrostivusTimeElapsedToGC|SendFrostivusTimeElapsedToGC}}
| <code>void SendFrostivusTimeElapsedToGC() </code>
| <code>void SendFrostivusTimeElapsedToGC() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostyPointsMessageToGC | SendFrostyPointsMessageToGC]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SendFrostyPointsMessageToGC|SendFrostyPointsMessageToGC}}
| <code>void SendFrostyPointsMessageToGC(handle a) </code>
| <code>void SendFrostyPointsMessageToGC(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToConsole | SendToConsole]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SendToConsole|SendToConsole}}
| <code>void SendToConsole(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SendToServerConsole|SendToServerConsole}}
| <code>void SendToServerConsole(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatAll|SetOpvarFloatAll}}
| <code>void SetOpvarFloatAll(string a, string b, string c, float d) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatPlayer|SetOpvarFloatPlayer}}
| <code>void SetOpvarFloatPlayer(string a, string b, string c, float d, handle e) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SetQuestName|SetQuestName}}
| <code>void SetQuestName(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SetQuestPhase|SetQuestPhase}}
| <code>void SetQuestPhase(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SetRenderingEnabled|SetRenderingEnabled}}
| <code>void SetRenderingEnabled(ehandle a, bool b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopup|ShowGenericPopup}}
| <code>void ShowGenericPopup(string title, string content, string unknown, string unknown, int containerType) </code>
| <code>void ShowGenericPopup(string title, string content, string unknown, string unknown, int containerType) </code>
| Shows a generic popup to all users
| Shows a generic popup to all users
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopupToPlayer | ShowGenericPopupToPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopupToPlayer|ShowGenericPopupToPlayer}}
| <code>void ShowGenericPopupToPlayer(handle a, string b, string c, string d, string e, int f) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.ShowMessage|ShowMessage}}
| <code>void ShowMessage(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityFromTableSynchronous|SpawnEntityFromTableSynchronous}}
| <code>handle SpawnEntityFromTableSynchronous(string a, handle b) </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''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityGroupFromTable | SpawnEntityGroupFromTable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityGroupFromTable|SpawnEntityGroupFromTable}}
| <code>bool SpawnEntityGroupFromTable(handle groupSpawnTables, bool bAsync, handle hCallback) </code>
| <code>bool SpawnEntityGroupFromTable(handle groupSpawnTables, bool bAsync, handle hCallback) </code>
| Hierarchically spawn an entity group from a set of spawn tables.
| Hierarchically spawn an entity group from a set of spawn tables.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableAsynchronous | SpawnEntityListFromTableAsynchronous]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableAsynchronous|SpawnEntityListFromTableAsynchronous}}
| <code>int SpawnEntityListFromTableAsynchronous(handle a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableSynchronous|SpawnEntityListFromTableSynchronous}}
| <code>handle SpawnEntityListFromTableSynchronous(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SplineQuaternions|SplineQuaternions}}
| <code>Quaternion SplineQuaternions(Quaternion a, Quaternion b, float c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.SplineVectors|SplineVectors}}
| <code>Vector SplineVectors(Vector a, Vector b, float c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.StartSoundEvent|StartSoundEvent}}
| <code>void StartSoundEvent(string a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.StopEffect|StopEffect}}
| <code>void StopEffect(handle a, string b) </code>
| <code>void StopEffect(handle a, string b) </code>
| (hEntity, szEffectName)
| (hEntity, szEffectName)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToAllGameEvents | StopListeningToAllGameEvents]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToAllGameEvents|StopListeningToAllGameEvents}}
| <code>void StopListeningToAllGameEvents(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToGameEvent|StopListeningToGameEvent}}
| <code>bool StopListeningToGameEvent(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.StopSoundEvent|StopSoundEvent}}
| <code>void StopSoundEvent(string a, handle b) </code>
| <code>void StopSoundEvent(string a, handle b) </code>
| Stops a sound event
| Stops a sound event
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundOn | StopSoundOn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.StopSoundOn|StopSoundOn}}
| <code>void StopSoundOn(string soundName, handle playingEntity) </code>
| <code>void StopSoundOn(string soundName, handle playingEntity) </code>
| Stop named sound on Entity
| Stop named sound on Entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.StringToFile | StringToFile]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.StringToFile|StringToFile}}
| <code>bool StringToFile(string a, string b) </code>
| <code>bool StringToFile(string a, string b) </code>
| * Directory traversal doesn't seem to work. The characters '.', '/' and '\\' are ignored.
| * Directory traversal doesn't seem to work. The characters '.', '/' and '\\' are ignored.
Line 597: Line 597:
* The file ends with a NUL character.
* The file ends with a NUL character.
* The files are stored at C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota_ugc\game\dota\ems
* The files are stored at C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota_ugc\game\dota\ems
* The function is used in conjunction with [[Dota_2_Workshop_Tools/Scripting/API/Global.FileToString|FileToString]]
* The function is used in conjunction with {{L|Dota_2_Workshop_Tools/Scripting/API/Global.FileToString|FileToString}}
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.Time | Time]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.Time|Time}}
| <code>float Time() </code>
| <code>float Time() </code>
| Get the current server time
| Get the current server time
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceCollideable | TraceCollideable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.TraceCollideable|TraceCollideable}}
| <code>bool TraceCollideable(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.TraceHull|TraceHull}}
| <code>bool TraceHull(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.TraceLine|TraceLine}}
| <code>bool TraceLine(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroup|UnloadSpawnGroup}}
| <code>void UnloadSpawnGroup(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroupByHandle|UnloadSpawnGroupByHandle}}
| <code>void UnloadSpawnGroupByHandle(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.UpdateEventPoints|UpdateEventPoints}}
| <code>void UpdateEventPoints(handle a) </code>
| <code>void UpdateEventPoints(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_Remove | UTIL_Remove]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.UTIL_Remove|UTIL_Remove}}
| <code>void UTIL_Remove(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.UTIL_RemoveImmediate|UTIL_RemoveImmediate}}
| <code>void UTIL_RemoveImmediate(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.VectorToAngles|VectorToAngles}}
| <code>QAngle VectorToAngles(Vector a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Global.Warning|Warning}}
| <code>void Warning(string a) </code>
| <code>void Warning(string a) </code>
| Print a warning
| Print a warning
Line 651: Line 651:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse | ApplyAbsVelocityImpulse]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse|ApplyAbsVelocityImpulse}}
| <code>void ApplyAbsVelocityImpulse(Vector a) </code>
| <code>void ApplyAbsVelocityImpulse(Vector a) </code>
| Apply a Velocity Impulse
| Apply a Velocity Impulse
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse | ApplyLocalAngularVelocityImpulse]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse|ApplyLocalAngularVelocityImpulse}}
| <code>void ApplyLocalAngularVelocityImpulse(Vector a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSound|EmitSound}}
| <code>void EmitSound(string soundName) </code>
| <code>void EmitSound(string soundName) </code>
|   
|   
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams | EmitSoundParams]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams|EmitSoundParams}}
| <code>void EmitSoundParams(string soundName, int pitch, float volume, float soundTime) </code>
| <code>void EmitSoundParams(string soundName, int pitch, float volume, float soundTime) </code>
| Plays/modifies a sound from this entity. changes sound if Pitch and/or Volume or SoundTime is > 0.
| Plays/modifies a sound from this entity. changes sound if Pitch and/or Volume or SoundTime is > 0.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyeAngles | EyeAngles]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyeAngles|EyeAngles}}
| <code>QAngle EyeAngles() </code>
| <code>QAngle EyeAngles() </code>
| Get the qangles that this entity is looking at.
| Get the qangles that this entity is looking at.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyePosition | EyePosition]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyePosition|EyePosition}}
| <code>Vector EyePosition() </code>
| <code>Vector EyePosition() </code>
| Get ''vector'' to eye position - absolute coords
| Get ''vector'' to eye position - absolute coords
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.FirstMoveChild | FirstMoveChild]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.FirstMoveChild|FirstMoveChild}}
| <code>handle FirstMoveChild() </code>
| <code>handle FirstMoveChild() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria | GatherCriteria]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria|GatherCriteria}}
| <code>void GatherCriteria(handle a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAbsOrigin | GetAbsOrigin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAbsOrigin|GetAbsOrigin}}
| <code>Vector GetAbsOrigin() </code>
| <code>Vector GetAbsOrigin() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngles | GetAngles]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngles|GetAngles}}
| <code>QAngle GetAngles() </code>
| <code>QAngle GetAngles() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAnglesAsVector | GetAnglesAsVector]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAnglesAsVector|GetAnglesAsVector}}
| <code>Vector GetAnglesAsVector() </code>
| <code>Vector GetAnglesAsVector() </code>
| Get entity pitch, yaw, roll as a ''vector''
| Get entity pitch, yaw, roll as a ''vector''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngularVelocity | GetAngularVelocity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngularVelocity|GetAngularVelocity}}
| <code>Vector GetAngularVelocity() </code>
| <code>Vector GetAngularVelocity() </code>
| Get the local angular velocity - returns a ''vector'' of pitch,yaw,roll
| Get the local angular velocity - returns a ''vector'' of pitch,yaw,roll
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBaseVelocity | GetBaseVelocity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBaseVelocity|GetBaseVelocity}}
| <code>Vector GetBaseVelocity() </code>
| <code>Vector GetBaseVelocity() </code>
| Get Base velocity
| Get Base velocity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMaxs | GetBoundingMaxs]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMaxs|GetBoundingMaxs}}
| <code>Vector GetBoundingMaxs() </code>
| <code>Vector GetBoundingMaxs() </code>
| Get a ''vector'' containing max bounds, centered on object
| Get a ''vector'' containing max bounds, centered on object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMins | GetBoundingMins]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMins|GetBoundingMins}}
| <code>Vector GetBoundingMins() </code>
| <code>Vector GetBoundingMins() </code>
| Get a ''vector'' containing min bounds, centered on object
| Get a ''vector'' containing min bounds, centered on object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBounds | GetBounds]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBounds|GetBounds}}
| <code>table GetBounds() </code>
| <code>table GetBounds() </code>
| Get a ''table'' containing the 'Mins' & 'Maxs' ''vector'' bounds, centered on object
| Get a ''table'' containing the 'Mins' & 'Maxs' ''vector'' bounds, centered on object
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetCenter | GetCenter]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetCenter|GetCenter}}
| <code>Vector GetCenter() </code>
| <code>Vector GetCenter() </code>
| Get ''vector'' to center of object - absolute coords
| Get ''vector'' to center of object - absolute coords
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetChildren | GetChildren]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetChildren|GetChildren}}
| <code>handle GetChildren() </code>
| <code>handle GetChildren() </code>
| Get the entities parented to this entity.
| Get the entities parented to this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext | GetContext]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext|GetContext}}
| <code>table GetContext(string a) </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)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetForwardVector | GetForwardVector]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetForwardVector|GetForwardVector}}
| <code>Vector GetForwardVector() </code>
| <code>Vector GetForwardVector() </code>
| Get the forward ''vector'' of the entity
| Get the forward ''vector'' of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetHealth | GetHealth]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetHealth|GetHealth}}
| <code>int GetHealth() </code>
| <code>int GetHealth() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalAngularVelocity | GetLocalAngularVelocity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalAngularVelocity|GetLocalAngularVelocity}}
| <code>QAngle GetLocalAngularVelocity() </code>
| <code>QAngle GetLocalAngularVelocity() </code>
| Maybe local angvel
| Maybe local angvel
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalVelocity | GetLocalVelocity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalVelocity|GetLocalVelocity}}
| <code>Vector GetLocalVelocity() </code>
| <code>Vector GetLocalVelocity() </code>
| Get Entity relative velocity
| Get Entity relative velocity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMaxHealth | GetMaxHealth]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMaxHealth|GetMaxHealth}}
| <code>int GetMaxHealth() </code>
| <code>int GetMaxHealth() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetModelName | GetModelName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetModelName|GetModelName}}
| <code>string GetModelName() </code>
| <code>string GetModelName() </code>
| Returns the name of the model
| Returns the name of the model
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMoveParent | GetMoveParent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMoveParent|GetMoveParent}}
| <code>handle GetMoveParent() </code>
| <code>handle GetMoveParent() </code>
| If in hierarchy, retrieves the entity's parent
| If in hierarchy, retrieves the entity's parent
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOrigin | GetOrigin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOrigin|GetOrigin}}
| <code>Vector GetOrigin() </code>
| <code>Vector GetOrigin() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwner | GetOwner]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwner|GetOwner}}
| <code>handle GetOwner() </code>
| <code>handle GetOwner() </code>
| Gets this entity's owner
| Gets this entity's owner
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwnerEntity | GetOwnerEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwnerEntity|GetOwnerEntity}}
| <code>handle GetOwnerEntity() </code>
| <code>handle GetOwnerEntity() </code>
| Get the owner entity, if there is one
| Get the owner entity, if there is one
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRightVector | GetRightVector]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRightVector|GetRightVector}}
| <code>Vector GetRightVector() </code>
| <code>Vector GetRightVector() </code>
| Get the right ''vector'' of the entity
| Get the right ''vector'' of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRootMoveParent | GetRootMoveParent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRootMoveParent|GetRootMoveParent}}
| <code>handle GetRootMoveParent() </code>
| <code>handle GetRootMoveParent() </code>
| If in hierarchy, walks up the hierarchy to find the root parent
| If in hierarchy, walks up the hierarchy to find the root parent
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetSoundDuration | GetSoundDuration]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetSoundDuration|GetSoundDuration}}
| <code>float GetSoundDuration(string soundName, string actormodelname) </code>
| <code>float GetSoundDuration(string soundName, string actormodelname) </code>
| Returns ''float'' duration of the sound. Takes soundname and optional actormodelname.
| Returns ''float'' duration of the sound. Takes soundname and optional actormodelname.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetTeam | GetTeam]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetTeam|GetTeam}}
| <code>int GetTeam() </code>
| <code>int GetTeam() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetUpVector | GetUpVector]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetUpVector|GetUpVector}}
| <code>Vector GetUpVector() </code>
| <code>Vector GetUpVector() </code>
| Get the up ''vector'' of the entity
| Get the up ''vector'' of the entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetVelocity | GetVelocity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetVelocity|GetVelocity}}
| <code>Vector GetVelocity() </code>
| <code>Vector GetVelocity() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsAlive | IsAlive]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsAlive|IsAlive}}
| <code>bool IsAlive() </code>
| <code>bool IsAlive() </code>
| No Description Set.
| No Description Set.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsPlayer | IsPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsPlayer|IsPlayer}}
| <code>bool IsPlayer() </code>
| <code>bool IsPlayer() </code>
| Is this a player entity?
| Is this a player entity?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Kill | Kill]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Kill|Kill}}
| <code>void Kill() </code>
| <code>void Kill() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.NextMovePeer | NextMovePeer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.NextMovePeer|NextMovePeer}}
| <code>handle NextMovePeer() </code>
| <code>handle NextMovePeer() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction | OverrideFriction]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction|OverrideFriction}}
| <code>void OverrideFriction(float a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.PrecacheScriptSound|PrecacheScriptSound}}
| <code>void PrecacheScriptSound(string a) </code>
| <code>void PrecacheScriptSound(string a) </code>
| Precache a sound for later playing.
| Precache a sound for later playing.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAbsOrigin | SetAbsOrigin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAbsOrigin|SetAbsOrigin}}
| <code>void SetAbsOrigin(Vector origin) </code>
| <code>void SetAbsOrigin(Vector origin) </code>
| SetAbsOrigin
| SetAbsOrigin
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngles | SetAngles]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngles|SetAngles}}
| <code>void SetAngles(float pitch, float yaw, float roll) </code>
| <code>void SetAngles(float pitch, float yaw, float roll) </code>
| Set entity pitch, yaw, roll
| Set entity pitch, yaw, roll
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngularVelocity | SetAngularVelocity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngularVelocity|SetAngularVelocity}}
| <code>void SetAngularVelocity(float pitch, float yaw, float roll) </code>
| <code>void SetAngularVelocity(float pitch, float yaw, float roll) </code>
| Set the local angular velocity - takes ''float'' pitch,yaw,roll velocities
| Set the local angular velocity - takes ''float'' pitch,yaw,roll velocities
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext | SetContext]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext|SetContext}}
| <code>void SetContext(string a, string b, float c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextNum|SetContextNum}}
| <code>void SetContextNum(string a, float b, float c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextThink|SetContextThink}}
| <code>void SetContextThink(string a, handle b, float c) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetForwardVector | SetForwardVector]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetForwardVector|SetForwardVector}}
| <code>void SetForwardVector(Vector forwardVec) </code>
| <code>void SetForwardVector(Vector forwardVec) </code>
| Set the orientation of the entity to have this forward ''forwardVec''
| Set the orientation of the entity to have this forward ''forwardVec''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction | SetFriction]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction|SetFriction}}
| <code>void SetFriction(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetGravity|SetGravity}}
| <code>void SetGravity(float a) </code>
| <code>void SetGravity(float a) </code>
| Set PLAYER gravity, ignored for objects
| Set PLAYER gravity, ignored for objects
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetHealth | SetHealth]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetHealth|SetHealth}}
| <code>void SetHealth(int hp) </code>
| <code>void SetHealth(int hp) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetMaxHealth | SetMaxHealth]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetMaxHealth|SetMaxHealth}}
| <code>void SetMaxHealth(int maxHP) </code>
| <code>void SetMaxHealth(int maxHP) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetModel | SetModel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetModel|SetModel}}
| <code>void SetModel(string modelName) </code>
| <code>void SetModel(string modelName) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOrigin | SetOrigin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOrigin|SetOrigin}}
| <code>void SetOrigin(Vector origin) </code>
| <code>void SetOrigin(Vector origin) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOwner | SetOwner]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOwner|SetOwner}}
| <code>void SetOwner(handle owningEntity) </code>
| <code>void SetOwner(handle owningEntity) </code>
| Sets this entity's owner
| Sets this entity's owner
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent | SetParent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent|SetParent}}
| <code>void SetParent(handle a, string b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetRenderColor|SetRenderColor}}
| <code>void SetRenderColor(int a, int b, int c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetSize|SetSize}}
| <code>void SetSize(Vector a, Vector b) </code>
| <code>void SetSize(Vector a, Vector b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetTeam | SetTeam]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetTeam|SetTeam}}
| <code>void SetTeam(int team) </code>
| <code>void SetTeam(int team) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity | SetVelocity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity|SetVelocity}}
| <code>void SetVelocity(Vector a) </code>
| <code>void SetVelocity(Vector a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.StopSound | StopSound]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.StopSound|StopSound}}
| <code>void StopSound(string soundName) </code>
| <code>void StopSound(string soundName) </code>
| Stops a named sound playing from this entity.
| Stops a named sound playing from this entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Trigger | Trigger]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Trigger|Trigger}}
| <code>void Trigger() </code>
| <code>void Trigger() </code>
| Fires off this entity's OnTrigger responses
| Fires off this entity's OnTrigger responses
Line 910: Line 910:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.CreateByClassname | CreateByClassname]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.CreateByClassname|CreateByClassname}}
| <code>handle CreateByClassname(string className) </code>
| <code>handle CreateByClassname(string className) </code>
| Creates an entity by classname
| Creates an entity by classname
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname | FindAllByClassname]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname|FindAllByClassname}}
| <code>table FindAllByClassname(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassnameWithin|FindAllByClassnameWithin}}
| <code>table FindAllByClassnameWithin(string a, Vector b, float c) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByModel | FindAllByModel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByModel|FindAllByModel}}
| <code>table FindAllByModel(string modelName) </code>
| <code>table FindAllByModel(string modelName) </code>
| Find entities by model name.
| Find entities by model name.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByName | FindAllByName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByName|FindAllByName}}
| <code>table FindAllByName(string name) </code>
| <code>table FindAllByName(string name) </code>
| Find all entities by name. Returns an array containing all the found entities in it.
| Find all entities by name. Returns an array containing all the found entities in it.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByNameWithin | FindAllByNameWithin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByNameWithin|FindAllByNameWithin}}
| <code>table FindAllByNameWithin(string name, Vector origin, float maxRadius) </code>
| <code>table FindAllByNameWithin(string name, Vector origin, float maxRadius) </code>
| Find entities by name within a radius.
| Find entities by name within a radius.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByTarget | FindAllByTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByTarget|FindAllByTarget}}
| <code>table FindAllByTarget(string targetName) </code>
| <code>table FindAllByTarget(string targetName) </code>
| Find entities by targetname.
| Find entities by targetname.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllInSphere | FindAllInSphere]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllInSphere|FindAllInSphere}}
| <code>table FindAllInSphere(Vector origin, float maxRadius) </code>
| <code>table FindAllInSphere(Vector origin, float maxRadius) </code>
| Find entities within a radius.
| Find entities within a radius.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassname | FindByClassname]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassname|FindByClassname}}
| <code>handle FindByClassname(handle startFrom, string className) </code>
| <code>handle FindByClassname(handle startFrom, string className) </code>
| Find entities by class name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by class name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameNearest | FindByClassnameNearest]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameNearest|FindByClassnameNearest}}
| <code>handle FindByClassnameNearest(string className, Vector origin, float maxRadius) </code>
| <code>handle FindByClassnameNearest(string className, Vector origin, float maxRadius) </code>
| Find entities by class name nearest to a point.
| Find entities by class name nearest to a point.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameWithin | FindByClassnameWithin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameWithin|FindByClassnameWithin}}
| <code>handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) </code>
| <code>handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) </code>
| Find entities by class name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by class name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModel | FindByModel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModel|FindByModel}}
| <code>handle FindByModel(handle startFrom, string modelName) </code>
| <code>handle FindByModel(handle startFrom, string modelName) </code>
| Find entities by model name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by model name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModelWithin | FindByModelWithin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModelWithin|FindByModelWithin}}
| <code>handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) </code>
| <code>handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) </code>
| Find entities by model name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by model name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByName | FindByName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByName|FindByName}}
| <code>handle FindByName(handle lastEnt, string searchString) </code>
| <code>handle FindByName(handle lastEnt, string searchString) </code>
| Find entities by name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameNearest | FindByNameNearest]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameNearest|FindByNameNearest}}
| <code>handle FindByNameNearest(string name, Vector origin, float maxRadius) </code>
| <code>handle FindByNameNearest(string name, Vector origin, float maxRadius) </code>
| Find entities by name nearest to a point.
| Find entities by name nearest to a point.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameWithin | FindByNameWithin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameWithin|FindByNameWithin}}
| <code>handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) </code>
| <code>handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) </code>
| Find entities by name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByTarget | FindByTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindByTarget|FindByTarget}}
| <code>handle FindByTarget(handle startFrom, string targetName) </code>
| <code>handle FindByTarget(handle startFrom, string targetName) </code>
| Find entities by targetname. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities by targetname. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindInSphere | FindInSphere]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.FindInSphere|FindInSphere}}
| <code>handle FindInSphere(handle startFrom, Vector origin, float maxRadius) </code>
| <code>handle FindInSphere(handle startFrom, Vector origin, float maxRadius) </code>
| Find entities within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
| Find entities within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.First | First]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.First|First}}
| <code>handle First() </code>
| <code>handle First() </code>
| Begin an iteration over the list of entities
| Begin an iteration over the list of entities
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.Next | Next]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntities.Next|Next}}
| <code>handle Next(handle startFrom) </code>
| <code>handle Next(handle startFrom) </code>
| Continue an iteration over the list of entities, providing reference to a previously found entity
| Continue an iteration over the list of entities, providing reference to a previously found entity
Line 1,000: Line 1,000:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput | ConnectOutput]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput|ConnectOutput}}
| <code>void ConnectOutput(string a, string b) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.Destroy | Destroy]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.Destroy|Destroy}}
| <code>void Destroy() </code>
| <code>void Destroy() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput | DisconnectOutput]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput|DisconnectOutput}}
| <code>void DisconnectOutput(string a, string b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectRedirectedOutput|DisconnectRedirectedOutput}}
| <code>void DisconnectRedirectedOutput(string a, string b, handle c) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.entindex | entindex]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.entindex|entindex}}
| <code>int entindex() </code>
| <code>int entindex() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput | FireOutput]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput|FireOutput}}
| <code>void FireOutput(string a, handle b, handle c, table d, float e) </code>
| <code>void FireOutput(string a, handle b, handle c, table d, float e) </code>
| Fire an entity output
| Fire an entity output
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetClassname | GetClassname]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetClassname|GetClassname}}
| <code>string GetClassname() </code>
| <code>string GetClassname() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetDebugName | GetDebugName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetDebugName|GetDebugName}}
| <code>string GetDebugName() </code>
| <code>string GetDebugName() </code>
| Get the entity name w/help if not defined (i.e. classname/etc)
| Get the entity name w/help if not defined (i.e. classname/etc)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityHandle | GetEntityHandle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityHandle|GetEntityHandle}}
| <code>ehandle GetEntityHandle() </code>
| <code>ehandle GetEntityHandle() </code>
| Get the entity as an EHANDLE
| Get the entity as an EHANDLE
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityIndex | GetEntityIndex]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityIndex|GetEntityIndex}}
| <code>int GetEntityIndex() </code>
| <code>int GetEntityIndex() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr | GetIntAttr]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr|GetIntAttr}}
| <code>int GetIntAttr(string a) </code>
| <code>int GetIntAttr(string a) </code>
| Get Integer Attribute
| Get Integer Attribute
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetName | GetName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetName|GetName}}
| <code>string GetName() </code>
| <code>string GetName() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePrivateScriptScope | GetOrCreatePrivateScriptScope]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePrivateScriptScope|GetOrCreatePrivateScriptScope}}
| <code>handle GetOrCreatePrivateScriptScope() </code>
| <code>handle GetOrCreatePrivateScriptScope() </code>
| Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
| Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePublicScriptScope | GetOrCreatePublicScriptScope]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePublicScriptScope|GetOrCreatePublicScriptScope}}
| <code>handle GetOrCreatePublicScriptScope() </code>
| <code>handle GetOrCreatePublicScriptScope() </code>
| Retrieve, creating if necessary, the public script-side data associated with an entity
| Retrieve, creating if necessary, the public script-side data associated with an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPrivateScriptScope | GetPrivateScriptScope]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPrivateScriptScope|GetPrivateScriptScope}}
| <code>handle GetPrivateScriptScope() </code>
| <code>handle GetPrivateScriptScope() </code>
| Retrieve the private per-instance script-side data associated with an entity
| Retrieve the private per-instance script-side data associated with an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPublicScriptScope | GetPublicScriptScope]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPublicScriptScope|GetPublicScriptScope}}
| <code>handle GetPublicScriptScope() </code>
| <code>handle GetPublicScriptScope() </code>
| Retrieve the public script-side data associated with an entity
| Retrieve the public script-side data associated with an entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput | RedirectOutput]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput|RedirectOutput}}
| <code>void RedirectOutput(string a, string b, handle c) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RemoveSelf | RemoveSelf]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RemoveSelf|RemoveSelf}}
| <code>void RemoveSelf() </code>
| <code>void RemoveSelf() </code>
| Delete this entity
| Delete this entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.SetIntAttr | SetIntAttr]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEntityInstance.SetIntAttr|SetIntAttr}}
| <code>void SetIntAttr(string a, int b) </code>
| <code>void SetIntAttr(string a, int b) </code>
| Set Integer Attribute
| Set Integer Attribute
Line 1,086: Line 1,086:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CastAbility | CastAbility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CastAbility|CastAbility}}
| <code>void CastAbility() </code>
| <code>void CastAbility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ContinueCasting | ContinueCasting]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ContinueCasting|ContinueCasting}}
| <code>bool ContinueCasting() </code>
| <code>bool ContinueCasting() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode|CreateVisibilityNode}}
| <code>void CreateVisibilityNode(Vector a, float b, float c) </code>
| <code>void CreateVisibilityNode(Vector a, float b, float c) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.DecrementModifierRefCount | DecrementModifierRefCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.DecrementModifierRefCount|DecrementModifierRefCount}}
| <code>void DecrementModifierRefCount() </code>
| <code>void DecrementModifierRefCount() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel|EndChannel}}
| <code>void EndChannel(bool a) </code>
| <code>void EndChannel(bool a) </code>
| Param: ''bool'' bInterrupted
| Param: ''bool'' bInterrupted
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndCooldown | EndCooldown]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndCooldown|EndCooldown}}
| <code>void EndCooldown() </code>
| <code>void EndCooldown() </code>
| Clear the cooldown remaining on this ability.
| Clear the cooldown remaining on this ability.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamage | GetAbilityDamage]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamage|GetAbilityDamage}}
| <code>int GetAbilityDamage() </code>
| <code>int GetAbilityDamage() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamageType | GetAbilityDamageType]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamageType|GetAbilityDamageType}}
| <code>int GetAbilityDamageType() </code>
| <code>int GetAbilityDamageType() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityIndex | GetAbilityIndex]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityIndex|GetAbilityIndex}}
| <code>int GetAbilityIndex() </code>
| <code>int GetAbilityIndex() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityName | GetAbilityName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityName|GetAbilityName}}
| <code>string GetAbilityName() </code>
| <code>string GetAbilityName() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetFlags | GetAbilityTargetFlags]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetFlags|GetAbilityTargetFlags}}
| <code>int GetAbilityTargetFlags() </code>
| <code>int GetAbilityTargetFlags() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetTeam | GetAbilityTargetTeam]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetTeam|GetAbilityTargetTeam}}
| <code>int GetAbilityTargetTeam() </code>
| <code>int GetAbilityTargetTeam() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetType | GetAbilityTargetType]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetType|GetAbilityTargetType}}
| <code>int GetAbilityTargetType() </code>
| <code>int GetAbilityTargetType() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityType | GetAbilityType]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityType|GetAbilityType}}
| <code>int GetAbilityType() </code>
| <code>int GetAbilityType() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAnimationIgnoresModelScale | GetAnimationIgnoresModelScale]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAnimationIgnoresModelScale|GetAnimationIgnoresModelScale}}
| <code>bool GetAnimationIgnoresModelScale() </code>
| <code>bool GetAnimationIgnoresModelScale() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedPrimaryAbilities | GetAssociatedPrimaryAbilities]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedPrimaryAbilities|GetAssociatedPrimaryAbilities}}
| <code>string GetAssociatedPrimaryAbilities() </code>
| <code>string GetAssociatedPrimaryAbilities() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedSecondaryAbilities | GetAssociatedSecondaryAbilities]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedSecondaryAbilities|GetAssociatedSecondaryAbilities}}
| <code>string GetAssociatedSecondaryAbilities() </code>
| <code>string GetAssociatedSecondaryAbilities() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAutoCastState | GetAutoCastState]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAutoCastState|GetAutoCastState}}
| <code>bool GetAutoCastState() </code>
| <code>bool GetAutoCastState() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBackswingTime | GetBackswingTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBackswingTime|GetBackswingTime}}
| <code>float GetBackswingTime() </code>
| <code>float GetBackswingTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBehavior | GetBehavior]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBehavior|GetBehavior}}
| <code>int GetBehavior() </code>
| <code>int GetBehavior() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCaster | GetCaster]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCaster|GetCaster}}
| <code>handle GetCaster() </code>
| <code>handle GetCaster() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastPoint | GetCastPoint]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastPoint|GetCastPoint}}
| <code>float GetCastPoint() </code>
| <code>float GetCastPoint() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastRange | GetCastRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastRange|GetCastRange}}
| <code>int GetCastRange() </code>
| <code>int GetCastRange() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond|GetChannelledManaCostPerSecond}}
| <code>int GetChannelledManaCostPerSecond(int a) </code>
| <code>int GetChannelledManaCostPerSecond(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelStartTime | GetChannelStartTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelStartTime|GetChannelStartTime}}
| <code>float GetChannelStartTime() </code>
| <code>float GetChannelStartTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelTime | GetChannelTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelTime|GetChannelTime}}
| <code>float GetChannelTime() </code>
| <code>float GetChannelTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCloneSource | GetCloneSource]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCloneSource|GetCloneSource}}
| <code>handle GetCloneSource() </code>
| <code>handle GetCloneSource() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetConceptRecipientType | GetConceptRecipientType]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetConceptRecipientType|GetConceptRecipientType}}
| <code>int GetConceptRecipientType() </code>
| <code>int GetConceptRecipientType() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown|GetCooldown}}
| <code>float GetCooldown(int a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTime | GetCooldownTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTime|GetCooldownTime}}
| <code>float GetCooldownTime() </code>
| <code>float GetCooldownTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTimeRemaining | GetCooldownTimeRemaining]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTimeRemaining|GetCooldownTimeRemaining}}
| <code>float GetCooldownTimeRemaining() </code>
| <code>float GetCooldownTimeRemaining() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorPosition | GetCursorPosition]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorPosition|GetCursorPosition}}
| <code>Vector GetCursorPosition() </code>
| <code>Vector GetCursorPosition() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTarget | GetCursorTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTarget|GetCursorTarget}}
| <code>handle GetCursorTarget() </code>
| <code>handle GetCursorTarget() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTargetingNothing | GetCursorTargetingNothing]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTargetingNothing|GetCursorTargetingNothing}}
| <code>bool GetCursorTargetingNothing() </code>
| <code>bool GetCursorTargetingNothing() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetDuration | GetDuration]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetDuration|GetDuration}}
| <code>float GetDuration() </code>
| <code>float GetDuration() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost|GetGoldCost}}
| <code>int GetGoldCost(int a) </code>
| <code>int GetGoldCost(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade|GetGoldCostForUpgrade}}
| <code>int GetGoldCostForUpgrade(int a) </code>
| <code>int GetGoldCostForUpgrade(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetHeroLevelRequiredToUpgrade | GetHeroLevelRequiredToUpgrade]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetHeroLevelRequiredToUpgrade|GetHeroLevelRequiredToUpgrade}}
| <code>int GetHeroLevelRequiredToUpgrade() </code>
| <code>int GetHeroLevelRequiredToUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetIntrinsicModifierName | GetIntrinsicModifierName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetIntrinsicModifierName|GetIntrinsicModifierName}}
| <code>string GetIntrinsicModifierName() </code>
| <code>string GetIntrinsicModifierName() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevel | GetLevel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevel|GetLevel}}
| <code>int GetLevel() </code>
| <code>int GetLevel() </code>
| Get the current level of the ability
| Get the current level of the ability
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor|GetLevelSpecialValueFor}}
| <code>table GetLevelSpecialValueFor(string a, int b) </code>
| <code>table GetLevelSpecialValueFor(string a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost|GetManaCost}}
| <code>int GetManaCost(int a) </code>
| <code>int GetManaCost(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetMaxLevel | GetMaxLevel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetMaxLevel|GetMaxLevel}}
| <code>int GetMaxLevel() </code>
| <code>int GetMaxLevel() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValue | GetModifierValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValue|GetModifierValue}}
| <code>float GetModifierValue() </code>
| <code>float GetModifierValue() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValueBonus | GetModifierValueBonus]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValueBonus|GetModifierValueBonus}}
| <code>float GetModifierValueBonus() </code>
| <code>float GetModifierValueBonus() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetPlaybackRateOverride | GetPlaybackRateOverride]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetPlaybackRateOverride|GetPlaybackRateOverride}}
| <code>float GetPlaybackRateOverride() </code>
| <code>float GetPlaybackRateOverride() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSharedCooldownName | GetSharedCooldownName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSharedCooldownName|GetSharedCooldownName}}
| <code>string GetSharedCooldownName() </code>
| <code>string GetSharedCooldownName() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor|GetSpecialValueFor}}
| <code>table GetSpecialValueFor(string a) </code>
| <code>table GetSpecialValueFor(string a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetStolenActivityModifier | GetStolenActivityModifier]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetStolenActivityModifier|GetStolenActivityModifier}}
| <code>string GetStolenActivityModifier() </code>
| <code>string GetStolenActivityModifier() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetToggleState | GetToggleState]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetToggleState|GetToggleState}}
| <code>bool GetToggleState() </code>
| <code>bool GetToggleState() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange|HeroXPChange}}
| <code>bool HeroXPChange(float a) </code>
| <code>bool HeroXPChange(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IncrementModifierRefCount | IncrementModifierRefCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IncrementModifierRefCount|IncrementModifierRefCount}}
| <code>void IncrementModifierRefCount() </code>
| <code>void IncrementModifierRefCount() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsActivated | IsActivated]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsActivated|IsActivated}}
| <code>bool IsActivated() </code>
| <code>bool IsActivated() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsAttributeBonus | IsAttributeBonus]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsAttributeBonus|IsAttributeBonus}}
| <code>bool IsAttributeBonus() </code>
| <code>bool IsAttributeBonus() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsChanneling | IsChanneling]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsChanneling|IsChanneling}}
| <code>bool IsChanneling() </code>
| <code>bool IsChanneling() </code>
| Returns whether the ability is currently channeling.
| Returns whether the ability is currently channeling.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCooldownReady | IsCooldownReady]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCooldownReady|IsCooldownReady}}
| <code>bool IsCooldownReady() </code>
| <code>bool IsCooldownReady() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCosmetic | IsCosmetic]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCosmetic|IsCosmetic}}
| <code>bool IsCosmetic() </code>
| <code>bool IsCosmetic() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsFullyCastable | IsFullyCastable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsFullyCastable|IsFullyCastable}}
| <code>bool IsFullyCastable() </code>
| <code>bool IsFullyCastable() </code>
| Returns whether the ability can be cast.
| Returns whether the ability can be cast.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHidden | IsHidden]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHidden|IsHidden}}
| <code>bool IsHidden() </code>
| <code>bool IsHidden() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenWhenStolen | IsHiddenWhenStolen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenWhenStolen|IsHiddenWhenStolen}}
| <code>bool IsHiddenWhenStolen() </code>
| <code>bool IsHiddenWhenStolen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsInAbilityPhase | IsInAbilityPhase]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsInAbilityPhase|IsInAbilityPhase}}
| <code>bool IsInAbilityPhase() </code>
| <code>bool IsInAbilityPhase() </code>
| Returns whether the ability is currently casting.
| Returns whether the ability is currently casting.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsItem | IsItem]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsItem|IsItem}}
| <code>bool IsItem() </code>
| <code>bool IsItem() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough|IsOwnersGoldEnough}}
| <code>bool IsOwnersGoldEnough(int a) </code>
| <code>bool IsOwnersGoldEnough(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnoughForUpgrade | IsOwnersGoldEnoughForUpgrade]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnoughForUpgrade|IsOwnersGoldEnoughForUpgrade}}
| <code>bool IsOwnersGoldEnoughForUpgrade() </code>
| <code>bool IsOwnersGoldEnoughForUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersManaEnough | IsOwnersManaEnough]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersManaEnough|IsOwnersManaEnough}}
| <code>bool IsOwnersManaEnough() </code>
| <code>bool IsOwnersManaEnough() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsPassive | IsPassive]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsPassive|IsPassive}}
| <code>bool IsPassive() </code>
| <code>bool IsPassive() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsSharedWithTeammates | IsSharedWithTeammates]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsSharedWithTeammates|IsSharedWithTeammates}}
| <code>bool IsSharedWithTeammates() </code>
| <code>bool IsSharedWithTeammates() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStealable | IsStealable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStealable|IsStealable}}
| <code>bool IsStealable() </code>
| <code>bool IsStealable() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStolen | IsStolen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStolen|IsStolen}}
| <code>bool IsStolen() </code>
| <code>bool IsStolen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsToggle | IsToggle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsToggle|IsToggle}}
| <code>bool IsToggle() </code>
| <code>bool IsToggle() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsTrained | IsTrained]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsTrained|IsTrained}}
| <code>bool IsTrained() </code>
| <code>bool IsTrained() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.MarkAbilityButtonDirty | MarkAbilityButtonDirty]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.MarkAbilityButtonDirty|MarkAbilityButtonDirty}}
| <code>void MarkAbilityButtonDirty() </code>
| <code>void MarkAbilityButtonDirty() </code>
| Mark the ability button for this ability as needing a refresh
| Mark the ability button for this ability as needing a refresh
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.NumModifiersUsingAbility | NumModifiersUsingAbility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.NumModifiersUsingAbility|NumModifiersUsingAbility}}
| <code>int NumModifiersUsingAbility() </code>
| <code>int NumModifiersUsingAbility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseInterrupted | OnAbilityPhaseInterrupted]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseInterrupted|OnAbilityPhaseInterrupted}}
| <code>void OnAbilityPhaseInterrupted() </code>
| <code>void OnAbilityPhaseInterrupted() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseStart | OnAbilityPhaseStart]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseStart|OnAbilityPhaseStart}}
| <code>bool OnAbilityPhaseStart() </code>
| <code>bool OnAbilityPhaseStart() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPinged | OnAbilityPinged]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPinged|OnAbilityPinged}}
| <code>void OnAbilityPinged() </code>
| <code>void OnAbilityPinged() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish|OnChannelFinish}}
| <code>void OnChannelFinish(bool a) </code>
| <code>void OnChannelFinish(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink|OnChannelThink}}
| <code>void OnChannelThink(float a) </code>
| <code>void OnChannelThink(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroCalculateStatBonus | OnHeroCalculateStatBonus]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroCalculateStatBonus|OnHeroCalculateStatBonus}}
| <code>void OnHeroCalculateStatBonus() </code>
| <code>void OnHeroCalculateStatBonus() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroLevelUp | OnHeroLevelUp]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroLevelUp|OnHeroLevelUp}}
| <code>void OnHeroLevelUp() </code>
| <code>void OnHeroLevelUp() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnInventoryContentsChanged | OnInventoryContentsChanged]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnInventoryContentsChanged|OnInventoryContentsChanged}}
| <code>void OnInventoryContentsChanged() </code>
| <code>void OnInventoryContentsChanged() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerDied | OnOwnerDied]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerDied|OnOwnerDied}}
| <code>void OnOwnerDied() </code>
| <code>void OnOwnerDied() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerSpawned | OnOwnerSpawned]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerSpawned|OnOwnerSpawned}}
| <code>void OnOwnerSpawned() </code>
| <code>void OnOwnerSpawned() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnSpellStart | OnSpellStart]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnSpellStart|OnSpellStart}}
| <code>void OnSpellStart() </code>
| <code>void OnSpellStart() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnToggle | OnToggle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnToggle|OnToggle}}
| <code>void OnToggle() </code>
| <code>void OnToggle() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnUpgrade | OnUpgrade]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnUpgrade|OnUpgrade}}
| <code>void OnUpgrade() </code>
| <code>void OnUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCost | PayGoldCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCost|PayGoldCost}}
| <code>void PayGoldCost() </code>
| <code>void PayGoldCost() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCostForUpgrade | PayGoldCostForUpgrade]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCostForUpgrade|PayGoldCostForUpgrade}}
| <code>void PayGoldCostForUpgrade() </code>
| <code>void PayGoldCostForUpgrade() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayManaCost | PayManaCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayManaCost|PayManaCost}}
| <code>void PayManaCost() </code>
| <code>void PayManaCost() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PlaysDefaultAnimWhenStolen | PlaysDefaultAnimWhenStolen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PlaysDefaultAnimWhenStolen|PlaysDefaultAnimWhenStolen}}
| <code>bool PlaysDefaultAnimWhenStolen() </code>
| <code>bool PlaysDefaultAnimWhenStolen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ProcsMagicStick | ProcsMagicStick]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ProcsMagicStick|ProcsMagicStick}}
| <code>bool ProcsMagicStick() </code>
| <code>bool ProcsMagicStick() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefCountsModifiers | RefCountsModifiers]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefCountsModifiers|RefCountsModifiers}}
| <code>bool RefCountsModifiers() </code>
| <code>bool RefCountsModifiers() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefundManaCost | RefundManaCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefundManaCost|RefundManaCost}}
| <code>void RefundManaCost() </code>
| <code>void RefundManaCost() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ResetToggleOnRespawn | ResetToggleOnRespawn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ResetToggleOnRespawn|ResetToggleOnRespawn}}
| <code>bool ResetToggleOnRespawn() </code>
| <code>bool ResetToggleOnRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex|SetAbilityIndex}}
| <code>void SetAbilityIndex(int a) </code>
| <code>void SetAbilityIndex(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated|SetActivated}}
| <code>void SetActivated(bool a) </code>
| <code>void SetActivated(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling|SetChanneling}}
| <code>void SetChanneling(bool a) </code>
| <code>void SetChanneling(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden|SetHidden}}
| <code>void SetHidden(bool a) </code>
| <code>void SetHidden(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase|SetInAbilityPhase}}
| <code>void SetInAbilityPhase(bool a) </code>
| <code>void SetInAbilityPhase(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetLevel | SetLevel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetLevel|SetLevel}}
| <code>void SetLevel(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint|SetOverrideCastPoint}}
| <code>void SetOverrideCastPoint(float a) </code>
| <code>void SetOverrideCastPoint(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers|SetRefCountsModifiers}}
| <code>void SetRefCountsModifiers(bool a) </code>
| <code>void SetRefCountsModifiers(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen|SetStolen}}
| <code>void SetStolen(bool a) </code>
| <code>void SetStolen(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ShouldUseResources | ShouldUseResources]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ShouldUseResources|ShouldUseResources}}
| <code>bool ShouldUseResources() </code>
| <code>bool ShouldUseResources() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept|SpeakAbilityConcept}}
| <code>void SpeakAbilityConcept(int a) </code>
| <code>void SpeakAbilityConcept(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakTrigger | SpeakTrigger]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakTrigger|SpeakTrigger}}
| <code>bool SpeakTrigger() </code>
| <code>bool SpeakTrigger() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.StartCooldown | StartCooldown]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.StartCooldown|StartCooldown}}
| <code>void StartCooldown(float a) </code>
| <code>void StartCooldown(float a) </code>
| param: flCooldown
| param: flCooldown
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAbility | ToggleAbility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAbility|ToggleAbility}}
| <code>void ToggleAbility() </code>
| <code>void ToggleAbility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAutoCast | ToggleAutoCast]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAutoCast|ToggleAutoCast}}
| <code>void ToggleAutoCast() </code>
| <code>void ToggleAutoCast() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UpgradeAbility | UpgradeAbility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UpgradeAbility|UpgradeAbility}}
| <code>void UpgradeAbility() </code>
| <code>void UpgradeAbility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources|UseResources}}
| <code>void UseResources(bool a, bool b, bool c) </code>
| <code>void UseResources(bool a, bool b, bool c) </code>
| No Description Set
| No Description Set
Line 1,540: Line 1,540:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_Attack.SetPlaybackRate | SetPlaybackRate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_Attack.SetPlaybackRate|SetPlaybackRate}}
| <code>void SetPlaybackRate(float a) </code>
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
| Override playbackrate
Line 1,554: Line 1,554:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_TailSpin.SetPlaybackRate | SetPlaybackRate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_TailSpin.SetPlaybackRate|SetPlaybackRate}}
| <code>void SetPlaybackRate(float a) </code>
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
| Override playbackrate
Line 1,568: Line 1,568:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Leap.SetPlaybackRate | SetPlaybackRate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Leap.SetPlaybackRate|SetPlaybackRate}}
| <code>void SetPlaybackRate(float a) </code>
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
| Override playbackrate
Line 1,582: Line 1,582:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Dive.SetPlaybackRate | SetPlaybackRate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Dive.SetPlaybackRate|SetPlaybackRate}}
| <code>void SetPlaybackRate(float a) </code>
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
| Override playbackrate
Line 1,596: Line 1,596:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Roar.GetCastCount | GetCastCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Roar.GetCastCount|GetCastCount}}
| <code>int GetCastCount() </code>
| <code>int GetCastCount() </code>
| Number of times Nian has used the roar
| Number of times Nian has used the roar
Line 1,610: Line 1,610:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetContainer | GetContainer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetContainer|GetContainer}}
| <code>handle GetContainer() </code>
| <code>handle GetContainer() </code>
| Get the container for this item.
| Get the container for this item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCost | GetCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCost|GetCost}}
| <code>int GetCost() </code>
| <code>int GetCost() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCurrentCharges | GetCurrentCharges]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCurrentCharges|GetCurrentCharges}}
| <code>int GetCurrentCharges() </code>
| <code>int GetCurrentCharges() </code>
| Get the number of charges this item currently has.
| Get the number of charges this item currently has.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetInitialCharges | GetInitialCharges]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetInitialCharges|GetInitialCharges}}
| <code>int GetInitialCharges() </code>
| <code>int GetInitialCharges() </code>
| Get the initial number of charges this item has.
| Get the initial number of charges this item has.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaser | GetPurchaser]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaser|GetPurchaser}}
| <code>handle GetPurchaser() </code>
| <code>handle GetPurchaser() </code>
| Get the purchaser for this item.
| Get the purchaser for this item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaseTime | GetPurchaseTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaseTime|GetPurchaseTime}}
| <code>float GetPurchaseTime() </code>
| <code>float GetPurchaseTime() </code>
| Get the purchase time of this item
| Get the purchase time of this item
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetShareability | GetShareability]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetShareability|GetShareability}}
| <code>int GetShareability() </code>
| <code>int GetShareability() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.IsPermanent | IsPermanent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.IsPermanent|IsPermanent}}
| <code>bool IsPermanent() </code>
| <code>bool IsPermanent() </code>
| Is this a permanent item?
| Is this a permanent item?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot | LaunchLoot]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot|LaunchLoot}}
| <code>void LaunchLoot(bool a, float b, float c, Vector d) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetCurrentCharges|SetCurrentCharges}}
| <code>void SetCurrentCharges(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaser|SetPurchaser}}
| <code>void SetPurchaser(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaseTime|SetPurchaseTime}}
| <code>void SetPurchaseTime(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetStacksWithOtherOwners|SetStacksWithOtherOwners}}
| <code>void SetStacksWithOtherOwners(bool a) </code>
| <code>void SetStacksWithOtherOwners(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.StacksWithOtherOwners | StacksWithOtherOwners]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.StacksWithOtherOwners|StacksWithOtherOwners}}
| <code>bool StacksWithOtherOwners() </code>
| <code>bool StacksWithOtherOwners() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.Think | Think]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.Think|Think}}
| <code>void Think() </code>
| <code>void Think() </code>
| Think this item
| Think this item
Line 1,680: Line 1,680:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetContainedItem | GetContainedItem]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetContainedItem|GetContainedItem}}
| <code>handle GetContainedItem() </code>
| <code>handle GetContainedItem() </code>
| Returned the contained item.
| Returned the contained item.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetCreationTime | GetCreationTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetCreationTime|GetCreationTime}}
| <code>float GetCreationTime() </code>
| <code>float GetCreationTime() </code>
| Returns the game time when this item was created in the world
| Returns the game time when this item was created in the world
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.SetContainedItem | SetContainedItem]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.SetContainedItem|SetContainedItem}}
| <code>void SetContainedItem(handle a) </code>
| <code>void SetContainedItem(handle a) </code>
| Set the contained item.
| Set the contained item.
Line 1,702: Line 1,702:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_DataDriven.ApplyDataDrivenModifier | ApplyDataDrivenModifier]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_DataDriven.ApplyDataDrivenModifier|ApplyDataDrivenModifier}}
| <code>void ApplyDataDrivenModifier(handle source, handle target, string modifier_name, handle modifierArgs) </code>
| <code>void ApplyDataDrivenModifier(handle source, handle target, string modifier_name, handle modifierArgs) </code>
|  
|  
Line 1,716: Line 1,716:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetHorn | GetHorn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetHorn|GetHorn}}
| <code>handle GetHorn() </code>
| <code>handle GetHorn() </code>
| Is the Nian horn?
| Is the Nian horn?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetTail | GetTail]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetTail|GetTail}}
| <code>handle GetTail() </code>
| <code>handle GetTail() </code>
| Is the Nian's tail broken?
| Is the Nian's tail broken?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsHornAlive | IsHornAlive]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsHornAlive|IsHornAlive}}
| <code>bool IsHornAlive() </code>
| <code>bool IsHornAlive() </code>
| Is the Nian's horn broken?
| Is the Nian's horn broken?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsTailAlive | IsTailAlive]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsTailAlive|IsTailAlive}}
| <code>bool IsTailAlive() </code>
| <code>bool IsTailAlive() </code>
| Is the Nian's tail broken?
| Is the Nian's tail broken?
Line 1,741: Line 1,741:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBasePlayer.IsNoclipping | IsNoclipping]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBasePlayer.IsNoclipping|IsNoclipping}}
| <code>bool IsNoclipping() </code>
| <code>bool IsNoclipping() </code>
| Returns true if the player is in noclip mode.
| Returns true if the player is in noclip mode.
Line 1,755: Line 1,755:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetAssignedHero | GetAssignedHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetAssignedHero|GetAssignedHero}}
| <code>handle GetAssignedHero() </code>
| <code>handle GetAssignedHero() </code>
| Get the player's hero.
| Get the player's hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetControlledRPGUnit | GetControlledRPGUnit]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetControlledRPGUnit|GetControlledRPGUnit}}
| <code>handle GetControlledRPGUnit() </code>
| <code>handle GetControlledRPGUnit() </code>
| Get the RPG unit this player controls.
| Get the RPG unit this player controls.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetPlayerID | GetPlayerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetPlayerID|GetPlayerID}}
| <code>int GetPlayerID() </code>
| <code>int GetPlayerID() </code>
| Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
| Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.MakeRandomHeroSelection | MakeRandomHeroSelection]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.MakeRandomHeroSelection|MakeRandomHeroSelection}}
| <code>void MakeRandomHeroSelection() </code>
| <code>void MakeRandomHeroSelection() </code>
| Randoms this player's hero.
| Randoms this player's hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit | SetKillCamUnit]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit|SetKillCamUnit}}
| <code>void SetKillCamUnit(handle a) </code>
| <code>void SetKillCamUnit(handle a) </code>
| Set the kill cam unit for this hero.
| Set the kill cam unit for this hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetMusicStatus | SetMusicStatus]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetMusicStatus|SetMusicStatus}}
| <code>void SetMusicStatus(int nMusicStatus, float flIntensity) </code>
| <code>void SetMusicStatus(int nMusicStatus, float flIntensity) </code>
| Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.
| Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.
Line 1,791: Line 1,791:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup | AddAegisPickup]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup|AddAegisPickup}}
| <code>void AddAegisPickup(int a) </code>
| <code>void AddAegisPickup(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddClaimedFarm | AddClaimedFarm]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddClaimedFarm|AddClaimedFarm}}
| <code>void AddClaimedFarm(int a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddGoldSpentOnSupport|AddGoldSpentOnSupport}}
| <code>void AddGoldSpentOnSupport(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddRunePickup|AddRunePickup}}
| <code>void AddRunePickup(int a) </code>
| <code>void AddRunePickup(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AreUnitsSharedWithPlayerID | AreUnitsSharedWithPlayerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AreUnitsSharedWithPlayerID|AreUnitsSharedWithPlayerID}}
| <code>bool AreUnitsSharedWithPlayerID(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearKillsMatrix|ClearKillsMatrix}}
| <code>void ClearKillsMatrix(int a) </code>
| <code>void ClearKillsMatrix(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitMultikill | ClearLastHitMultikill]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitMultikill|ClearLastHitMultikill}}
| <code>void ClearLastHitMultikill(int a) </code>
| <code>void ClearLastHitMultikill(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak | ClearLastHitStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak|ClearLastHitStreak}}
| <code>void ClearLastHitStreak(int a) </code>
| <code>void ClearLastHitStreak(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearRawPlayerDamageMatrix | ClearRawPlayerDamageMatrix]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearRawPlayerDamageMatrix|ClearRawPlayerDamageMatrix}}
| <code>void ClearRawPlayerDamageMatrix(int a) </code>
| <code>void ClearRawPlayerDamageMatrix(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak | ClearStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak|ClearStreak}}
| <code>void ClearStreak(int a) </code>
| <code>void ClearStreak(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAegisPickups | GetAegisPickups]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAegisPickups|GetAegisPickups}}
| <code>int GetAegisPickups(int a) </code>
| <code>int GetAegisPickups(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAssists | GetAssists]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAssists|GetAssists}}
| <code>int GetAssists(int a) </code>
| <code>int GetAssists(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannel | GetBroadcasterChannel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannel|GetBroadcasterChannel}}
| <code><> GetBroadcasterChannel(int a) </code>
| <code><> GetBroadcasterChannel(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannelSlot | GetBroadcasterChannelSlot]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannelSlot|GetBroadcasterChannelSlot}}
| <code><> GetBroadcasterChannelSlot(int a) </code>
| <code><> GetBroadcasterChannelSlot(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies | GetClaimedDenies]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies|GetClaimedDenies}}
| <code>int GetClaimedDenies(int a) </code>
| <code>int GetClaimedDenies(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedFarm | GetClaimedFarm]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedFarm|GetClaimedFarm}}
| <code>float GetClaimedFarm(int a) </code>
| <code>float GetClaimedFarm(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedMisses | GetClaimedMisses]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedMisses|GetClaimedMisses}}
| <code>int GetClaimedMisses(int a) </code>
| <code>int GetClaimedMisses(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetConnectionState | GetConnectionState]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetConnectionState|GetConnectionState}}
| <code><> GetConnectionState(int a) </code>
| <code><> GetConnectionState(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCreepDamageTaken | GetCreepDamageTaken]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCreepDamageTaken|GetCreepDamageTaken}}
| <code>int GetCreepDamageTaken(int a) </code>
| <code>int GetCreepDamageTaken(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCooldown | GetCustomBuybackCooldown]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCooldown|GetCustomBuybackCooldown}}
| <code>float GetCustomBuybackCooldown(int a) </code>
| <code>float GetCustomBuybackCooldown(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCost | GetCustomBuybackCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCost|GetCustomBuybackCost}}
| <code>int GetCustomBuybackCost(int a) </code>
| <code>int GetCustomBuybackCost(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDamageDoneToHero | GetDamageDoneToHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDamageDoneToHero|GetDamageDoneToHero}}
| <code>int GetDamageDoneToHero(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDeaths|GetDeaths}}
| <code>int GetDeaths(int a) </code>
| <code>int GetDeaths(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies | GetDenies]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies|GetDenies}}
| <code>int GetDenies(int a) </code>
| <code>int GetDenies(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPointsForPlayerID | GetEventPointsForPlayerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPointsForPlayerID|GetEventPointsForPlayerID}}
| <code>int GetEventPointsForPlayerID(int a) </code>
| <code>int GetEventPointsForPlayerID(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPremiumPointsGranted | GetEventPremiumPointsGranted]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPremiumPointsGranted|GetEventPremiumPointsGranted}}
| <code>int GetEventPremiumPointsGranted(int a) </code>
| <code>int GetEventPremiumPointsGranted(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventRankGranted | GetEventRankGranted]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventRankGranted|GetEventRankGranted}}
| <code>int GetEventRankGranted(int a) </code>
| <code>int GetEventRankGranted(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGold | GetGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGold|GetGold}}
| <code>int GetGold(int a) </code>
| <code>int GetGold(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldBagsCollected | GetGoldBagsCollected]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldBagsCollected|GetGoldBagsCollected}}
| <code>int GetGoldBagsCollected(int a) </code>
| <code>int GetGoldBagsCollected(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath | GetGoldLostToDeath]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath|GetGoldLostToDeath}}
| <code>int GetGoldLostToDeath(int a) </code>
| <code>int GetGoldLostToDeath(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldPerMin | GetGoldPerMin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldPerMin|GetGoldPerMin}}
| <code>float GetGoldPerMin(int a) </code>
| <code>float GetGoldPerMin(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnBuybacks | GetGoldSpentOnBuybacks]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnBuybacks|GetGoldSpentOnBuybacks}}
| <code>int GetGoldSpentOnBuybacks(int a) </code>
| <code>int GetGoldSpentOnBuybacks(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnConsumables | GetGoldSpentOnConsumables]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnConsumables|GetGoldSpentOnConsumables}}
| <code>int GetGoldSpentOnConsumables(int a) </code>
| <code>int GetGoldSpentOnConsumables(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnItems | GetGoldSpentOnItems]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnItems|GetGoldSpentOnItems}}
| <code>int GetGoldSpentOnItems(int a) </code>
| <code>int GetGoldSpentOnItems(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnSupport | GetGoldSpentOnSupport]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnSupport|GetGoldSpentOnSupport}}
| <code>int GetGoldSpentOnSupport(int a) </code>
| <code>int GetGoldSpentOnSupport(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHealing | GetHealing]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHealing|GetHealing}}
| <code>float GetHealing(int a) </code>
| <code>float GetHealing(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHeroDamageTaken | GetHeroDamageTaken]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHeroDamageTaken|GetHeroDamageTaken}}
| <code>int GetHeroDamageTaken(int a) </code>
| <code>int GetHeroDamageTaken(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills | GetKills]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills|GetKills}}
| <code>int GetKills(int a) </code>
| <code>int GetKills(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero | GetKillsDoneToHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero|GetKillsDoneToHero}}
| <code>int GetKillsDoneToHero(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitMultikill|GetLastHitMultikill}}
| <code>int GetLastHitMultikill(int a) </code>
| <code>int GetLastHitMultikill(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHits | GetLastHits]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHits|GetLastHits}}
| <code>int GetLastHits(int a) </code>
| <code>int GetLastHits(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitStreak | GetLastHitStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitStreak|GetLastHitStreak}}
| <code>int GetLastHitStreak(int a) </code>
| <code>int GetLastHitStreak(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLevel | GetLevel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLevel|GetLevel}}
| <code>int GetLevel(int playerID) </code>
| <code>int GetLevel(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses | GetMisses]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses|GetMisses}}
| <code>int GetMisses(int a) </code>
| <code>int GetMisses(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNearbyCreepDeaths | GetNearbyCreepDeaths]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNearbyCreepDeaths|GetNearbyCreepDeaths}}
| <code>int GetNearbyCreepDeaths(int a) </code>
| <code>int GetNearbyCreepDeaths(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthCourierForTeam | GetNthCourierForTeam]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthCourierForTeam|GetNthCourierForTeam}}
| <code>handle GetNthCourierForTeam(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthPlayerIDOnTeam|GetNthPlayerIDOnTeam}}
| <code>int GetNthPlayerIDOnTeam(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumConsumablesPurchased|GetNumConsumablesPurchased}}
| <code>int GetNumConsumablesPurchased(int a) </code>
| <code>int GetNumConsumablesPurchased(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumCouriersForTeam | GetNumCouriersForTeam]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumCouriersForTeam|GetNumCouriersForTeam}}
| <code>int GetNumCouriersForTeam(int a) </code>
| <code>int GetNumCouriersForTeam(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumItemsPurchased | GetNumItemsPurchased]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumItemsPurchased|GetNumItemsPurchased}}
| <code>int GetNumItemsPurchased(int a) </code>
| <code>int GetNumItemsPurchased(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayer | GetPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayer|GetPlayer}}
| <code>handle GetPlayer(int a) </code>
| <code>handle GetPlayer(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely | GetPlayerLoadedCompletely]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely|GetPlayerLoadedCompletely}}
| <code>bool GetPlayerLoadedCompletely(int a) </code>
| <code>bool GetPlayerLoadedCompletely(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerName | GetPlayerName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerName|GetPlayerName}}
| <code>string GetPlayerName(int a) </code>
| <code>string GetPlayerName(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerReservedState | GetPlayerReservedState]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerReservedState|GetPlayerReservedState}}
| <code>bool GetPlayerReservedState(int a) </code>
| <code>bool GetPlayerReservedState(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRawPlayerDamage | GetRawPlayerDamage]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRawPlayerDamage|GetRawPlayerDamage}}
| <code>int GetRawPlayerDamage(int a) </code>
| <code>int GetRawPlayerDamage(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetReliableGold | GetReliableGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetReliableGold|GetReliableGold}}
| <code>int GetReliableGold(int a) </code>
| <code>int GetReliableGold(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRespawnSeconds | GetRespawnSeconds]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRespawnSeconds|GetRespawnSeconds}}
| <code>int GetRespawnSeconds(int a) </code>
| <code>int GetRespawnSeconds(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRoshanKills | GetRoshanKills]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRoshanKills|GetRoshanKills}}
| <code>int GetRoshanKills(int a) </code>
| <code>int GetRoshanKills(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRunePickups | GetRunePickups]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRunePickups|GetRunePickups}}
| <code>int GetRunePickups(int a) </code>
| <code>int GetRunePickups(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroEntity | GetSelectedHeroEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroEntity|GetSelectedHeroEntity}}
| <code>handle GetSelectedHeroEntity(int a) </code>
| <code>handle GetSelectedHeroEntity(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroID | GetSelectedHeroID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroID|GetSelectedHeroID}}
| <code>int GetSelectedHeroID(int a) </code>
| <code>int GetSelectedHeroID(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroName | GetSelectedHeroName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroName|GetSelectedHeroName}}
| <code>string GetSelectedHeroName(int a) </code>
| <code>string GetSelectedHeroName(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSteamAccountID | GetSteamAccountID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSteamAccountID|GetSteamAccountID}}
| <code><> GetSteamAccountID(int a) </code>
| <code><> GetSteamAccountID(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStreak | GetStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStreak|GetStreak}}
| <code>int GetStreak(int a) </code>
| <code>int GetStreak(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStuns | GetStuns]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStuns|GetStuns}}
| <code>float GetStuns(int a) </code>
| <code>float GetStuns(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeam | GetTeam]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeam|GetTeam}}
| <code>int GetTeam(int a) </code>
| <code>int GetTeam(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeamKills | GetTeamKills]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeamKills|GetTeamKills}}
| <code>int GetTeamKills(int a) </code>
| <code>int GetTeamKills(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastConsumablePurchase | GetTimeOfLastConsumablePurchase]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastConsumablePurchase|GetTimeOfLastConsumablePurchase}}
| <code>float GetTimeOfLastConsumablePurchase(int a) </code>
| <code>float GetTimeOfLastConsumablePurchase(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath | GetTimeOfLastDeath]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath|GetTimeOfLastDeath}}
| <code>float GetTimeOfLastDeath(int a) </code>
| <code>float GetTimeOfLastDeath(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastItemPurchase | GetTimeOfLastItemPurchase]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastItemPurchase|GetTimeOfLastItemPurchase}}
| <code>float GetTimeOfLastItemPurchase(int a) </code>
| <code>float GetTimeOfLastItemPurchase(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold | GetTotalEarnedGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold|GetTotalEarnedGold}}
| <code>int GetTotalEarnedGold(int a) </code>
| <code>int GetTotalEarnedGold(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedXP | GetTotalEarnedXP]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedXP|GetTotalEarnedXP}}
| <code>int GetTotalEarnedXP(int a) </code>
| <code>int GetTotalEarnedXP(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalGoldSpent | GetTotalGoldSpent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalGoldSpent|GetTotalGoldSpent}}
| <code>int GetTotalGoldSpent(int a) </code>
| <code>int GetTotalGoldSpent(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken | GetTowerDamageTaken]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken|GetTowerDamageTaken}}
| <code>int GetTowerDamageTaken(int a) </code>
| <code>int GetTowerDamageTaken(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerKills | GetTowerKills]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerKills|GetTowerKills}}
| <code>int GetTowerKills(int a) </code>
| <code>int GetTowerKills(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnitShareMaskForPlayer | GetUnitShareMaskForPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnitShareMaskForPlayer|GetUnitShareMaskForPlayer}}
| <code>int GetUnitShareMaskForPlayer(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnreliableGold|GetUnreliableGold}}
| <code>int GetUnreliableGold(int a) </code>
| <code>int GetUnreliableGold(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetXPPerMin | GetXPPerMin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetXPPerMin|GetXPPerMin}}
| <code>float GetXPPerMin(int a) </code>
| <code>float GetXPPerMin(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRandomed | HasRandomed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRandomed|HasRandomed}}
| <code>bool HasRandomed(int a) </code>
| <code>bool HasRandomed(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRepicked | HasRepicked]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRepicked|HasRepicked}}
| <code>bool HasRepicked(int playerID) </code>
| <code>bool HasRepicked(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero | HasSelectedHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero|HasSelectedHero}}
| <code>bool HasSelectedHero(int a) </code>
| <code>bool HasSelectedHero(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HaveAllPlayersJoined | HaveAllPlayersJoined]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HaveAllPlayersJoined|HaveAllPlayersJoined}}
| <code>bool HaveAllPlayersJoined() </code>
| <code>bool HaveAllPlayersJoined() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp | HeroLevelUp]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp|HeroLevelUp}}
| <code>void HeroLevelUp(int a) </code>
| <code>void HeroLevelUp(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementAssists | IncrementAssists]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementAssists|IncrementAssists}}
| <code>void IncrementAssists(int playerID) </code>
| <code>void IncrementAssists(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies | IncrementClaimedDenies]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies|IncrementClaimedDenies}}
| <code>void IncrementClaimedDenies(int a) </code>
| <code>void IncrementClaimedDenies(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedMisses | IncrementClaimedMisses]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedMisses|IncrementClaimedMisses}}
| <code>void IncrementClaimedMisses(int a) </code>
| <code>void IncrementClaimedMisses(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDeaths | IncrementDeaths]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDeaths|IncrementDeaths}}
| <code>void IncrementDeaths(int playerID) </code>
| <code>void IncrementDeaths(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies | IncrementDenies]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies|IncrementDenies}}
| <code>void IncrementDenies(int a) </code>
| <code>void IncrementDenies(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementGoldBagsCollected | IncrementGoldBagsCollected]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementGoldBagsCollected|IncrementGoldBagsCollected}}
| <code>void IncrementGoldBagsCollected(int a) </code>
| <code>void IncrementGoldBagsCollected(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementKills | IncrementKills]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementKills|IncrementKills}}
| <code>void IncrementKills(int playerID, int kills) </code>
| <code>void IncrementKills(int playerID, int kills) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill|IncrementLastHitMultikill}}
| <code>void IncrementLastHitMultikill(int a) </code>
| <code>void IncrementLastHitMultikill(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHits | IncrementLastHits]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHits|IncrementLastHits}}
| <code>void IncrementLastHits(int a) </code>
| <code>void IncrementLastHits(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitStreak | IncrementLastHitStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitStreak|IncrementLastHitStreak}}
| <code>void IncrementLastHitStreak(int a) </code>
| <code>void IncrementLastHitStreak(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses | IncrementMisses]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses|IncrementMisses}}
| <code>void IncrementMisses(int a) </code>
| <code>void IncrementMisses(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementNearbyCreepDeaths|IncrementNearbyCreepDeaths}}
| <code>void IncrementNearbyCreepDeaths(int a) </code>
| <code>void IncrementNearbyCreepDeaths(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementStreak | IncrementStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementStreak|IncrementStreak}}
| <code>void IncrementStreak(int a) </code>
| <code>void IncrementStreak(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementTotalEarnedXP | IncrementTotalEarnedXP]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementTotalEarnedXP|IncrementTotalEarnedXP}}
| <code>void IncrementTotalEarnedXP(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsBroadcaster|IsBroadcaster}}
| <code>bool IsBroadcaster(int a) </code>
| <code>bool IsBroadcaster(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsDisableHelpSetForPlayerID | IsDisableHelpSetForPlayerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsDisableHelpSetForPlayerID|IsDisableHelpSetForPlayerID}}
| <code>bool IsDisableHelpSetForPlayerID(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsFakeClient|IsFakeClient}}
| <code>bool IsFakeClient(int a) </code>
| <code>bool IsFakeClient(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSelected | IsHeroSelected]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSelected|IsHeroSelected}}
| <code>bool IsHeroSelected(string a) </code>
| <code>bool IsHeroSelected(string a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSharedWithPlayerID | IsHeroSharedWithPlayerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSharedWithPlayerID|IsHeroSharedWithPlayerID}}
| <code>bool IsHeroSharedWithPlayerID(int a, int b) </code>
| <code>bool IsHeroSharedWithPlayerID(int a, int b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayer | IsValidPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayer|IsValidPlayer}}
| <code>bool IsValidPlayer(int playerID) </code>
| <code>bool IsValidPlayer(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayerID | IsValidPlayerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayerID|IsValidPlayerID}}
| <code>bool IsValidPlayerID(int playerID) </code>
| <code>bool IsValidPlayerID(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayer | IsValidTeamPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayer|IsValidTeamPlayer}}
| <code>bool IsValidTeamPlayer(int playerID) </code>
| <code>bool IsValidTeamPlayer(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayerID | IsValidTeamPlayerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayerID|IsValidTeamPlayerID}}
| <code>bool IsValidTeamPlayerID(int playerID) </code>
| <code>bool IsValidTeamPlayerID(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold | ModifyGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold|ModifyGold}}
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int d) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ReplaceHeroWith|ReplaceHeroWith}}
| <code>handle ReplaceHeroWith(int a, string b, int c, int d) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetBuybackCostTime|ResetBuybackCostTime}}
| <code>void ResetBuybackCostTime(int a) </code>
| <code>void ResetBuybackCostTime(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetTotalEarnedGold | ResetTotalEarnedGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetTotalEarnedGold|ResetTotalEarnedGold}}
| <code>void ResetTotalEarnedGold(int a) </code>
| <code>void ResetTotalEarnedGold(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackCooldownTime|SetBuybackCooldownTime}}
| <code>void SetBuybackCooldownTime(int a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackGoldLimitTime|SetBuybackGoldLimitTime}}
| <code>void SetBuybackGoldLimitTime(int a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCameraTarget|SetCameraTarget}}
| <code>void SetCameraTarget(int a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCooldown|SetCustomBuybackCooldown}}
| <code>void SetCustomBuybackCooldown(int a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCost|SetCustomBuybackCost}}
| <code>void SetCustomBuybackCost(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetGold|SetGold}}
| <code>void SetGold(int amount, int addToCurrentGold, bool c) </code>
| <code>void SetGold(int amount, int addToCurrentGold, bool c) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRandomed | SetHasRandomed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRandomed|SetHasRandomed}}
| <code>void SetHasRandomed(int playerID) </code>
| <code>void SetHasRandomed(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRepicked | SetHasRepicked]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRepicked|SetHasRepicked}}
| <code>void SetHasRepicked(int playerID) </code>
| <code>void SetHasRepicked(int playerID) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime | SetLastBuybackTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime|SetLastBuybackTime}}
| <code>void SetLastBuybackTime(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetPlayerReservedState|SetPlayerReservedState}}
| <code>void SetPlayerReservedState(int a, bool b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetUnitShareMaskForPlayer|SetUnitShareMaskForPlayer}}
| <code>void SetUnitShareMaskForPlayer(int a, int b, int c, bool d) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SpendGold|SpendGold}}
| <code>void SpendGold(int a, int b, int c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.UpdateTeamSlot|UpdateTeamSlot}}
| <code>void UpdateTeamSlot(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.WhoSelectedHero|WhoSelectedHero}}
| <code>int WhoSelectedHero(string a) </code>
| <code>int WhoSelectedHero(string a) </code>
| No Description Set
| No Description Set
Line 2,297: Line 2,297:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility | AddAbility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility|AddAbility}}
| <code>void AddAbility(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddItem|AddItem}}
| <code>void AddItem(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNewModifier|AddNewModifier}}
| <code>void AddNewModifier(handle caster, handle optionalSourceAbility, string modifierName, handle modifierData) </code>
| <code>void AddNewModifier(handle caster, handle optionalSourceAbility, string modifierName, handle modifierData) </code>
|  
|  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw | AddNoDraw]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw|AddNoDraw}}
| <code>void AddNoDraw() </code>
| <code>void AddNoDraw() </code>
| Adds the no draw flag.
| Adds the no draw flag.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits | AlertNearbyUnits]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits|AlertNearbyUnits}}
| <code>void AlertNearbyUnits(handle a, handle b) </code>
| <code>void AlertNearbyUnits(handle a, handle b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AngerNearbyUnits | AngerNearbyUnits]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AngerNearbyUnits|AngerNearbyUnits}}
| <code>void AngerNearbyUnits() </code>
| <code>void AngerNearbyUnits() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan | AttackNoEarlierThan]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan|AttackNoEarlierThan}}
| <code>void AttackNoEarlierThan(float a) </code>
| <code>void AttackNoEarlierThan(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackReady | AttackReady]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackReady|AttackReady}}
| <code>bool AttackReady() </code>
| <code>bool AttackReady() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.BoundingRadius2D | BoundingRadius2D]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.BoundingRadius2D|BoundingRadius2D}}
| <code>float BoundingRadius2D() </code>
| <code>float BoundingRadius2D() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately | CastAbilityImmediately]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately|CastAbilityImmediately}}
| <code>void CastAbilityImmediately(handle a, int b) </code>
| <code>void CastAbilityImmediately(handle a, int b) </code>
| Cast an ability immediately.
| Cast an ability immediately.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityNoTarget | CastAbilityNoTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityNoTarget|CastAbilityNoTarget}}
| <code>void CastAbilityNoTarget(handle ability, int playerIndex) </code>
| <code>void CastAbilityNoTarget(handle ability, int playerIndex) </code>
| Cast an ability with no target. ( hAbility, iPlayerIndex )
| Cast an ability with no target. ( hAbility, iPlayerIndex )
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition | CastAbilityOnPosition]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition|CastAbilityOnPosition}}
| <code>void CastAbilityOnPosition(Vector a, handle b, int c) </code>
| <code>void CastAbilityOnPosition(Vector a, handle b, int c) </code>
| Cast an ability on a position.
| Cast an ability on a position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnTarget | CastAbilityOnTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnTarget|CastAbilityOnTarget}}
| <code>void CastAbilityOnTarget(handle target, handle ability, int playerIndex) </code>
| <code>void CastAbilityOnTarget(handle target, handle ability, int playerIndex) </code>
| Cast an ability on a target entity.
| Cast an ability on a target entity.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle | CastAbilityToggle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle|CastAbilityToggle}}
| <code>void CastAbilityToggle(handle a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DisassembleItem|DisassembleItem}}
| <code>void DisassembleItem(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPosition|DropItemAtPosition}}
| <code>void DropItemAtPosition(Vector a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPositionImmediate|DropItemAtPositionImmediate}}
| <code>void DropItemAtPositionImmediate(handle a, Vector b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.EjectItemFromStash|EjectItemFromStash}}
| <code>void EjectItemFromStash(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.FindAbilityByName|FindAbilityByName}}
| <code>handle FindAbilityByName(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ForceKill|ForceKill}}
| <code>void ForceKill(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityByIndex|GetAbilityByIndex}}
| <code>handle GetAbilityByIndex(int a) </code>
| <code>handle GetAbilityByIndex(int a) </code>
| Retrieve an ability by index from the unit.
| Retrieve an ability by index from the unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityCount | GetAbilityCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityCount|GetAbilityCount}}
| <code>int GetAbilityCount() </code>
| <code>int GetAbilityCount() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAcquisitionRange | GetAcquisitionRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAcquisitionRange|GetAcquisitionRange}}
| <code>float GetAcquisitionRange() </code>
| <code>float GetAcquisitionRange() </code>
| Gets the range at which this unit will auto-acquire.
| Gets the range at which this unit will auto-acquire.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAdditionalBattleMusicWeight | GetAdditionalBattleMusicWeight]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAdditionalBattleMusicWeight|GetAdditionalBattleMusicWeight}}
| <code>float GetAdditionalBattleMusicWeight() </code>
| <code>float GetAdditionalBattleMusicWeight() </code>
| Combat involving this creature will have this weight added to the music calcuations
| Combat involving this creature will have this weight added to the music calcuations
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackAnimationPoint | GetAttackAnimationPoint]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackAnimationPoint|GetAttackAnimationPoint}}
| <code>float GetAttackAnimationPoint() </code>
| <code>float GetAttackAnimationPoint() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackDamage | GetAttackDamage]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackDamage|GetAttackDamage}}
| <code>int GetAttackDamage() </code>
| <code>int GetAttackDamage() </code>
| Returns a random integer between the minimum and maximum base damage of the unit.
| Returns a random integer between the minimum and maximum base damage of the unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRange | GetAttackRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRange|GetAttackRange}}
| <code>float GetAttackRange() </code>
| <code>float GetAttackRange() </code>
| Gets this unit's attack range after all modifiers.
| Gets this unit's attack range after all modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRangeBuffer | GetAttackRangeBuffer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRangeBuffer|GetAttackRangeBuffer}}
| <code>float GetAttackRangeBuffer() </code>
| <code>float GetAttackRangeBuffer() </code>
| Gets the attack range buffer.
| Gets the attack range buffer.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackSpeed | GetAttackSpeed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackSpeed|GetAttackSpeed}}
| <code>float GetAttackSpeed() </code>
| <code>float GetAttackSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttacksPerSecond | GetAttacksPerSecond]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttacksPerSecond|GetAttacksPerSecond}}
| <code>float GetAttacksPerSecond() </code>
| <code>float GetAttacksPerSecond() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackTarget | GetAttackTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackTarget|GetAttackTarget}}
| <code>handle GetAttackTarget() </code>
| <code>handle GetAttackTarget() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAverageTrueAttackDamage | GetAverageTrueAttackDamage]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAverageTrueAttackDamage|GetAverageTrueAttackDamage}}
| <code>int GetAverageTrueAttackDamage() </code>
| <code>int GetAverageTrueAttackDamage() </code>
| Returns the average value of the minimum and maximum damage values.
| Returns the average value of the minimum and maximum damage values.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackRange | GetBaseAttackRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackRange|GetBaseAttackRange}}
| <code>int GetBaseAttackRange() </code>
| <code>int GetBaseAttackRange() </code>
| Gets this unit's attack range before modifiers.
| Gets this unit's attack range before modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackTime | GetBaseAttackTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackTime|GetBaseAttackTime}}
| <code>float GetBaseAttackTime() </code>
| <code>float GetBaseAttackTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMax | GetBaseDamageMax]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMax|GetBaseDamageMax}}
| <code>int GetBaseDamageMax() </code>
| <code>int GetBaseDamageMax() </code>
| Gets the minimum base damage.
| Gets the minimum base damage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMin | GetBaseDamageMin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMin|GetBaseDamageMin}}
| <code>int GetBaseDamageMin() </code>
| <code>int GetBaseDamageMin() </code>
| Gets the minimum base damage.
| Gets the minimum base damage.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDayTimeVisionRange | GetBaseDayTimeVisionRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDayTimeVisionRange|GetBaseDayTimeVisionRange}}
| <code>int GetBaseDayTimeVisionRange() </code>
| <code>int GetBaseDayTimeVisionRange() </code>
| Returns the vision range before modifiers.
| Returns the vision range before modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseHealthRegen | GetBaseHealthRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseHealthRegen|GetBaseHealthRegen}}
| <code>float GetBaseHealthRegen() </code>
| <code>float GetBaseHealthRegen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMagicalResistanceValue | GetBaseMagicalResistanceValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMagicalResistanceValue|GetBaseMagicalResistanceValue}}
| <code>float GetBaseMagicalResistanceValue() </code>
| <code>float GetBaseMagicalResistanceValue() </code>
| Returns base magical armor value.
| Returns base magical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMaxHealth | GetBaseMaxHealth]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMaxHealth|GetBaseMaxHealth}}
| <code>float GetBaseMaxHealth() </code>
| <code>float GetBaseMaxHealth() </code>
| Gets the base max health value.
| Gets the base max health value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMoveSpeed | GetBaseMoveSpeed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMoveSpeed|GetBaseMoveSpeed}}
| <code>float GetBaseMoveSpeed() </code>
| <code>float GetBaseMoveSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseNightTimeVisionRange | GetBaseNightTimeVisionRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseNightTimeVisionRange|GetBaseNightTimeVisionRange}}
| <code>int GetBaseNightTimeVisionRange() </code>
| <code>int GetBaseNightTimeVisionRange() </code>
| Returns the vision range before modifiers.
| Returns the vision range before modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint | GetCastPoint]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint|GetCastPoint}}
| <code>float GetCastPoint(bool a) </code>
| <code>float GetCastPoint(bool a) </code>
| Parameter: bAttack
| Parameter: bAttack
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCollisionPadding | GetCollisionPadding]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCollisionPadding|GetCollisionPadding}}
| <code>float GetCollisionPadding() </code>
| <code>float GetCollisionPadding() </code>
| Returns the size of the collision padding around the hull.
| Returns the size of the collision padding around the hull.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetConstantBasedManaRegen | GetConstantBasedManaRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetConstantBasedManaRegen|GetConstantBasedManaRegen}}
| <code>float GetConstantBasedManaRegen() </code>
| <code>float GetConstantBasedManaRegen() </code>
| This Mana regen is derived from constant bonuses like Basilius.
| This Mana regen is derived from constant bonuses like Basilius.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCreationTime | GetCreationTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCreationTime|GetCreationTime}}
| <code>float GetCreationTime() </code>
| <code>float GetCreationTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentActiveAbility | GetCurrentActiveAbility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentActiveAbility|GetCurrentActiveAbility}}
| <code>handle GetCurrentActiveAbility() </code>
| <code>handle GetCurrentActiveAbility() </code>
| Get the ability this unit is currently casting.
| Get the ability this unit is currently casting.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentVisionRange | GetCurrentVisionRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentVisionRange|GetCurrentVisionRange}}
| <code>int GetCurrentVisionRange() </code>
| <code>int GetCurrentVisionRange() </code>
| Gets the current vision range.
| Gets the current vision range.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorCastTarget | GetCursorCastTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorCastTarget|GetCursorCastTarget}}
| <code>handle GetCursorCastTarget() </code>
| <code>handle GetCursorCastTarget() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorPosition | GetCursorPosition]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorPosition|GetCursorPosition}}
| <code>Vector GetCursorPosition() </code>
| <code>Vector GetCursorPosition() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorTargetingNothing | GetCursorTargetingNothing]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorTargetingNothing|GetCursorTargetingNothing}}
| <code>bool GetCursorTargetingNothing() </code>
| <code>bool GetCursorTargetingNothing() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDayTimeVisionRange | GetDayTimeVisionRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDayTimeVisionRange|GetDayTimeVisionRange}}
| <code>int GetDayTimeVisionRange() </code>
| <code>int GetDayTimeVisionRange() </code>
| Returns the vision range after modifiers.
| Returns the vision range after modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDeathXP | GetDeathXP]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDeathXP|GetDeathXP}}
| <code>int GetDeathXP() </code>
| <code>int GetDeathXP() </code>
| Get the XP bounty on this unit
| Get the XP bounty on this unit
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetForceAttackTarget | GetForceAttackTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetForceAttackTarget|GetForceAttackTarget}}
| <code>handle GetForceAttackTarget() </code>
| <code>handle GetForceAttackTarget() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetGoldBounty | GetGoldBounty]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetGoldBounty|GetGoldBounty}}
| <code>int GetGoldBounty() </code>
| <code>int GetGoldBounty() </code>
| Get the gold bounty on this unit
| Get the gold bounty on this unit
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHasteFactor | GetHasteFactor]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHasteFactor|GetHasteFactor}}
| <code>float GetHasteFactor() </code>
| <code>float GetHasteFactor() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealth | GetHealth]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealth|GetHealth}}
| <code>int GetHealth() </code>
| <code>int GetHealth() </code>
| Get the health of this unit.
| Get the health of this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthDeficit | GetHealthDeficit]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthDeficit|GetHealthDeficit}}
| <code>int GetHealthDeficit() </code>
| <code>int GetHealthDeficit() </code>
| Returns integer amount of health missing from max.
| Returns integer amount of health missing from max.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthPercent | GetHealthPercent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthPercent|GetHealthPercent}}
| <code>int GetHealthPercent() </code>
| <code>int GetHealthPercent() </code>
| Get the current health percent of the unit.
| Get the current health percent of the unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthRegen | GetHealthRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthRegen|GetHealthRegen}}
| <code>float GetHealthRegen() </code>
| <code>float GetHealthRegen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHullRadius | GetHullRadius]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHullRadius|GetHullRadius}}
| <code>float GetHullRadius() </code>
| <code>float GetHullRadius() </code>
| Get the collision hull radius of this NPC
| Get the collision hull radius of this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIdealSpeed | GetIdealSpeed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIdealSpeed|GetIdealSpeed}}
| <code>float GetIdealSpeed() </code>
| <code>float GetIdealSpeed() </code>
| Returns speed after all modifiers.
| Returns speed after all modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIncreasedAttackSpeed|GetIncreasedAttackSpeed}}
| <code>float GetIncreasedAttackSpeed() </code>
| <code>float GetIncreasedAttackSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetInitialGoalEntity | GetInitialGoalEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetInitialGoalEntity|GetInitialGoalEntity}}
| <code>handle GetInitialGoalEntity() </code>
| <code>handle GetInitialGoalEntity() </code>
| Returns the initial waypoint goal for this NPC
| Returns the initial waypoint goal for this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot | GetItemInSlot]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot|GetItemInSlot}}
| <code>handle GetItemInSlot(int a) </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)
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLastIdleChangeTime | GetLastIdleChangeTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLastIdleChangeTime|GetLastIdleChangeTime}}
| <code>float GetLastIdleChangeTime() </code>
| <code>float GetLastIdleChangeTime() </code>
| Get the last game time that this unit switched to/from idle state.
| Get the last game time that this unit switched to/from idle state.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLevel | GetLevel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLevel|GetLevel}}
| <code>int GetLevel() </code>
| <code>int GetLevel() </code>
| Returns the level of this unit.
| Returns the level of this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMagicalArmorValue | GetMagicalArmorValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMagicalArmorValue|GetMagicalArmorValue}}
| <code>float GetMagicalArmorValue() </code>
| <code>float GetMagicalArmorValue() </code>
| Returns current magical armor value.
| Returns current magical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMainControllingPlayer | GetMainControllingPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMainControllingPlayer|GetMainControllingPlayer}}
| <code>int GetMainControllingPlayer() </code>
| <code>int GetMainControllingPlayer() </code>
| Returns the player ID of the controlling player.
| Returns the player ID of the controlling player.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMana | GetMana]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMana|GetMana}}
| <code>float GetMana() </code>
| <code>float GetMana() </code>
| Get the mana on this unit.
| Get the mana on this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaPercent | GetManaPercent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaPercent|GetManaPercent}}
| <code>int GetManaPercent() </code>
| <code>int GetManaPercent() </code>
| Get the percent of mana remaining.
| Get the percent of mana remaining.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaRegen | GetManaRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaRegen|GetManaRegen}}
| <code>float GetManaRegen() </code>
| <code>float GetManaRegen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxHealth | GetMaxHealth]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxHealth|GetMaxHealth}}
| <code>int GetMaxHealth() </code>
| <code>int GetMaxHealth() </code>
| Get the maximum health of this unit.
| Get the maximum health of this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxMana | GetMaxMana]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxMana|GetMaxMana}}
| <code>float GetMaxMana() </code>
| <code>float GetMaxMana() </code>
| Get the maximum mana of this unit.
| Get the maximum mana of this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModelRadius | GetModelRadius]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModelRadius|GetModelRadius}}
| <code>float GetModelRadius() </code>
| <code>float GetModelRadius() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierCount | GetModifierCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierCount|GetModifierCount}}
| <code>int GetModifierCount() </code>
| <code>int GetModifierCount() </code>
| How many modifiers does this unit have?
| How many modifiers does this unit have?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex | GetModifierNameByIndex]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex|GetModifierNameByIndex}}
| <code>string GetModifierNameByIndex(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMoveSpeedModifier|GetMoveSpeedModifier}}
| <code>float GetMoveSpeedModifier(float a) </code>
| <code>float GetMoveSpeedModifier(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMustReachEachGoalEntity | GetMustReachEachGoalEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMustReachEachGoalEntity|GetMustReachEachGoalEntity}}
| <code>bool GetMustReachEachGoalEntity() </code>
| <code>bool GetMustReachEachGoalEntity() </code>
| Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
| Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetNightTimeVisionRange | GetNightTimeVisionRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetNightTimeVisionRange|GetNightTimeVisionRange}}
| <code>int GetNightTimeVisionRange() </code>
| <code>int GetNightTimeVisionRange() </code>
| Returns the vision range after modifiers.
| Returns the vision range after modifiers.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetOpposingTeamNumber | GetOpposingTeamNumber]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetOpposingTeamNumber|GetOpposingTeamNumber}}
| <code>int GetOpposingTeamNumber() </code>
| <code>int GetOpposingTeamNumber() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPaddedCollisionRadius | GetPaddedCollisionRadius]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPaddedCollisionRadius|GetPaddedCollisionRadius}}
| <code>float GetPaddedCollisionRadius() </code>
| <code>float GetPaddedCollisionRadius() </code>
| Get the collision hull radius (including padding) of this NPC
| Get the collision hull radius (including padding) of this NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPercentageBasedManaRegen | GetPercentageBasedManaRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPercentageBasedManaRegen|GetPercentageBasedManaRegen}}
| <code>float GetPercentageBasedManaRegen() </code>
| <code>float GetPercentageBasedManaRegen() </code>
| This Mana regen is derived from % bonuses (from items like Void Stone).
| This Mana regen is derived from % bonuses (from items like Void Stone).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorBaseValue | GetPhysicalArmorBaseValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorBaseValue|GetPhysicalArmorBaseValue}}
| <code>float GetPhysicalArmorBaseValue() </code>
| <code>float GetPhysicalArmorBaseValue() </code>
| Returns base physical armor value.
| Returns base physical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorValue | GetPhysicalArmorValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorValue|GetPhysicalArmorValue}}
| <code>float GetPhysicalArmorValue() </code>
| <code>float GetPhysicalArmorValue() </code>
| Returns current physical armor value.
| Returns current physical armor value.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwner | GetPlayerOwner]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwner|GetPlayerOwner}}
| <code>handle GetPlayerOwner() </code>
| <code>handle GetPlayerOwner() </code>
| Returns the player that owns this unit
| Returns the player that owns this unit
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwnerID | GetPlayerOwnerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwnerID|GetPlayerOwnerID}}
| <code>int GetPlayerOwnerID() </code>
| <code>int GetPlayerOwnerID() </code>
| Get the owner player ID for this unit.
| Get the owner player ID for this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetProjectileSpeed | GetProjectileSpeed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetProjectileSpeed|GetProjectileSpeed}}
| <code>int GetProjectileSpeed() </code>
| <code>int GetProjectileSpeed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit | GetRangeToUnit]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit|GetRangeToUnit}}
| <code>float GetRangeToUnit(handle a) </code>
| <code>float GetRangeToUnit(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetSecondsPerAttack | GetSecondsPerAttack]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetSecondsPerAttack|GetSecondsPerAttack}}
| <code>float GetSecondsPerAttack() </code>
| <code>float GetSecondsPerAttack() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetStatsBasedManaRegen|GetStatsBasedManaRegen}}
| <code>float GetStatsBasedManaRegen() </code>
| <code>float GetStatsBasedManaRegen() </code>
| Returns mana regen rate per intelligence.
| Returns mana regen rate per intelligence.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTeamNumber | GetTeamNumber]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTeamNumber|GetTeamNumber}}
| <code>int GetTeamNumber() </code>
| <code>int GetTeamNumber() </code>
| Get the team number of this unit.
| Get the team number of this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTotalPurchasedUpgradeGoldCost | GetTotalPurchasedUpgradeGoldCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTotalPurchasedUpgradeGoldCost|GetTotalPurchasedUpgradeGoldCost}}
| <code>int GetTotalPurchasedUpgradeGoldCost() </code>
| <code>int GetTotalPurchasedUpgradeGoldCost() </code>
| Get how much gold has been spent on ability upgrades.
| Get how much gold has been spent on ability upgrades.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitLabel | GetUnitLabel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitLabel|GetUnitLabel}}
| <code>string GetUnitLabel() </code>
| <code>string GetUnitLabel() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitName | GetUnitName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitName|GetUnitName}}
| <code>string GetUnitName() </code>
| <code>string GetUnitName() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana | GiveMana]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana|GiveMana}}
| <code>void GiveMana(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAbility|HasAbility}}
| <code>bool HasAbility(string a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAttackCapability | HasAttackCapability]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAttackCapability|HasAttackCapability}}
| <code>bool HasAttackCapability() </code>
| <code>bool HasAttackCapability() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyingVision | HasFlyingVision]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyingVision|HasFlyingVision}}
| <code>bool HasFlyingVision() </code>
| <code>bool HasFlyingVision() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyMovementCapability | HasFlyMovementCapability]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyMovementCapability|HasFlyMovementCapability}}
| <code>bool HasFlyMovementCapability() </code>
| <code>bool HasFlyMovementCapability() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasGroundMovementCapability | HasGroundMovementCapability]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasGroundMovementCapability|HasGroundMovementCapability}}
| <code>bool HasGroundMovementCapability() </code>
| <code>bool HasGroundMovementCapability() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasInventory | HasInventory]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasInventory|HasInventory}}
| <code>bool HasInventory() </code>
| <code>bool HasInventory() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory | HasItemInInventory]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory|HasItemInInventory}}
| <code>bool HasItemInInventory(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasModifier|HasModifier}}
| <code>bool HasModifier(string a) </code>
| <code>bool HasModifier(string a) </code>
| Sees if this unit has a given modifier
| Sees if this unit has a given modifier
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasMovementCapability | HasMovementCapability]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasMovementCapability|HasMovementCapability}}
| <code>bool HasMovementCapability() </code>
| <code>bool HasMovementCapability() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasScepter | HasScepter]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasScepter|HasScepter}}
| <code>bool HasScepter() </code>
| <code>bool HasScepter() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal | Heal]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal|Heal}}
| <code>void Heal(float a, handle b) </code>
| <code>void Heal(float a, handle b) </code>
| Heal this unit.
| Heal this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Hold | Hold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Hold|Hold}}
| <code>void Hold() </code>
| <code>void Hold() </code>
| Hold position.
| Hold position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Interrupt | Interrupt]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Interrupt|Interrupt}}
| <code>void Interrupt() </code>
| <code>void Interrupt() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptChannel | InterruptChannel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptChannel|InterruptChannel}}
| <code>void InterruptChannel() </code>
| <code>void InterruptChannel() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers | InterruptMotionControllers]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers|InterruptMotionControllers}}
| <code>void InterruptMotionControllers(bool a) </code>
| <code>void InterruptMotionControllers(bool a) </code>
| Parameter boolean determines finding clear space.
| Parameter boolean determines finding clear space.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAlive | IsAlive]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAlive|IsAlive}}
| <code>bool IsAlive() </code>
| <code>bool IsAlive() </code>
| Is this unit alive?
| Is this unit alive?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAncient | IsAncient]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAncient|IsAncient}}
| <code>bool IsAncient() </code>
| <code>bool IsAncient() </code>
| Is this creature an Ancient?
| Is this creature an Ancient?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackImmune | IsAttackImmune]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackImmune|IsAttackImmune}}
| <code>bool IsAttackImmune() </code>
| <code>bool IsAttackImmune() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttacking | IsAttacking]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttacking|IsAttacking}}
| <code>bool IsAttacking() </code>
| <code>bool IsAttacking() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity | IsAttackingEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity|IsAttackingEntity}}
| <code>bool IsAttackingEntity(handle a) </code>
| <code>bool IsAttackingEntity(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlind | IsBlind]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlind|IsBlind}}
| <code>bool IsBlind() </code>
| <code>bool IsBlind() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlockDisabled | IsBlockDisabled]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsBlockDisabled|IsBlockDisabled}}
| <code>bool IsBlockDisabled() </code>
| <code>bool IsBlockDisabled() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCommandRestricted | IsCommandRestricted]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCommandRestricted|IsCommandRestricted}}
| <code>bool IsCommandRestricted() </code>
| <code>bool IsCommandRestricted() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsControllableByAnyPlayer | IsControllableByAnyPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsControllableByAnyPlayer|IsControllableByAnyPlayer}}
| <code>bool IsControllableByAnyPlayer() </code>
| <code>bool IsControllableByAnyPlayer() </code>
| Is this unit controlled by any non-bot player?
| Is this unit controlled by any non-bot player?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCreature | IsCreature]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsCreature|IsCreature}}
| <code>bool IsCreature() </code>
| <code>bool IsCreature() </code>
| Is this a Creature type NPC
| Is this a Creature type NPC
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDeniable | IsDeniable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDeniable|IsDeniable}}
| <code>bool IsDeniable() </code>
| <code>bool IsDeniable() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDisarmed | IsDisarmed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDisarmed|IsDisarmed}}
| <code>bool IsDisarmed() </code>
| <code>bool IsDisarmed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDominated | IsDominated]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsDominated|IsDominated}}
| <code>bool IsDominated() </code>
| <code>bool IsDominated() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsEvadeDisabled | IsEvadeDisabled]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsEvadeDisabled|IsEvadeDisabled}}
| <code>bool IsEvadeDisabled() </code>
| <code>bool IsEvadeDisabled() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsFrozen | IsFrozen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsFrozen|IsFrozen}}
| <code>bool IsFrozen() </code>
| <code>bool IsFrozen() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHardDisarmed | IsHardDisarmed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHardDisarmed|IsHardDisarmed}}
| <code>bool IsHardDisarmed() </code>
| <code>bool IsHardDisarmed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHero | IsHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHero|IsHero}}
| <code>bool IsHero() </code>
| <code>bool IsHero() </code>
| Is this a hero or hero illusion?
| Is this a hero or hero illusion?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHexed | IsHexed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsHexed|IsHexed}}
| <code>bool IsHexed() </code>
| <code>bool IsHexed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIdle | IsIdle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIdle|IsIdle}}
| <code>bool IsIdle() </code>
| <code>bool IsIdle() </code>
| Is this creature currently idle?
| Is this creature currently idle?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIllusion | IsIllusion]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsIllusion|IsIllusion}}
| <code>bool IsIllusion() </code>
| <code>bool IsIllusion() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvisible | IsInvisible]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvisible|IsInvisible}}
| <code>bool IsInvisible() </code>
| <code>bool IsInvisible() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvulnerable | IsInvulnerable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsInvulnerable|IsInvulnerable}}
| <code>bool IsInvulnerable() </code>
| <code>bool IsInvulnerable() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsLowAttackPriority | IsLowAttackPriority]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsLowAttackPriority|IsLowAttackPriority}}
| <code>bool IsLowAttackPriority() </code>
| <code>bool IsLowAttackPriority() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMagicImmune | IsMagicImmune]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMagicImmune|IsMagicImmune}}
| <code>bool IsMagicImmune() </code>
| <code>bool IsMagicImmune() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMechanical | IsMechanical]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMechanical|IsMechanical}}
| <code>bool IsMechanical() </code>
| <code>bool IsMechanical() </code>
| Is the unit mechanical?
| Is the unit mechanical?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMovementImpaired | IsMovementImpaired]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMovementImpaired|IsMovementImpaired}}
| <code>bool IsMovementImpaired() </code>
| <code>bool IsMovementImpaired() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMuted | IsMuted]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsMuted|IsMuted}}
| <code>bool IsMuted() </code>
| <code>bool IsMuted() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNeutralUnitType | IsNeutralUnitType]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNeutralUnitType|IsNeutralUnitType}}
| <code>bool IsNeutralUnitType() </code>
| <code>bool IsNeutralUnitType() </code>
| Is this a neutral?
| Is this a neutral?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNightmared | IsNightmared]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsNightmared|IsNightmared}}
| <code>bool IsNightmared() </code>
| <code>bool IsNightmared() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOpposingTeam | IsOpposingTeam]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOpposingTeam|IsOpposingTeam}}
| <code>bool IsOpposingTeam(int a) </code>
| <code>bool IsOpposingTeam(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOutOfGame | IsOutOfGame]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOutOfGame|IsOutOfGame}}
| <code>bool IsOutOfGame() </code>
| <code>bool IsOutOfGame() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOwnedByAnyPlayer | IsOwnedByAnyPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsOwnedByAnyPlayer|IsOwnedByAnyPlayer}}
| <code>bool IsOwnedByAnyPlayer() </code>
| <code>bool IsOwnedByAnyPlayer() </code>
| Is this unit owned by any non-bot player?
| Is this unit owned by any non-bot player?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantom | IsPhantom]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantom|IsPhantom}}
| <code>bool IsPhantom() </code>
| <code>bool IsPhantom() </code>
| Is this a phantom unit?
| Is this a phantom unit?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantomBlocker | IsPhantomBlocker]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhantomBlocker|IsPhantomBlocker}}
| <code>bool IsPhantomBlocker() </code>
| <code>bool IsPhantomBlocker() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhased | IsPhased]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPhased|IsPhased}}
| <code>bool IsPhased() </code>
| <code>bool IsPhased() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPositionInRange | IsPositionInRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsPositionInRange|IsPositionInRange}}
| <code>bool IsPositionInRange(Vector a, float b) </code>
| <code>bool IsPositionInRange(Vector a, float b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRangedAttacker | IsRangedAttacker]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRangedAttacker|IsRangedAttacker}}
| <code>bool IsRangedAttacker() </code>
| <code>bool IsRangedAttacker() </code>
| Is this unit a ranged attacker?
| Is this unit a ranged attacker?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRealHero | IsRealHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRealHero|IsRealHero}}
| <code>bool IsRealHero() </code>
| <code>bool IsRealHero() </code>
| Returns true if the hero is a true Hero, not a creep or an Illusion of a hero
| Returns true if the hero is a true Hero, not a creep or an Illusion of a hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRooted | IsRooted]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsRooted|IsRooted}}
| <code>bool IsRooted() </code>
| <code>bool IsRooted() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSilenced | IsSilenced]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSilenced|IsSilenced}}
| <code>bool IsSilenced() </code>
| <code>bool IsSilenced() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSoftDisarmed | IsSoftDisarmed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSoftDisarmed|IsSoftDisarmed}}
| <code>bool IsSoftDisarmed() </code>
| <code>bool IsSoftDisarmed() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSpeciallyDeniable | IsSpeciallyDeniable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSpeciallyDeniable|IsSpeciallyDeniable}}
| <code>bool IsSpeciallyDeniable() </code>
| <code>bool IsSpeciallyDeniable() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsStunned | IsStunned]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsStunned|IsStunned}}
| <code>bool IsStunned() </code>
| <code>bool IsStunned() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSummoned | IsSummoned]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsSummoned|IsSummoned}}
| <code>bool IsSummoned() </code>
| <code>bool IsSummoned() </code>
| Is this unit summoned?
| Is this unit summoned?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsTower | IsTower]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsTower|IsTower}}
| <code>bool IsTower() </code>
| <code>bool IsTower() </code>
| Is this a tower?
| Is this a tower?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnableToMiss | IsUnableToMiss]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnableToMiss|IsUnableToMiss}}
| <code>bool IsUnableToMiss() </code>
| <code>bool IsUnableToMiss() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnselectable | IsUnselectable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsUnselectable|IsUnselectable}}
| <code>bool IsUnselectable() </code>
| <code>bool IsUnselectable() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Kill | Kill]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Kill|Kill}}
| <code>void Kill(handle a, handle b) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeIllusion | MakeIllusion]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeIllusion|MakeIllusion}}
| <code>void MakeIllusion() </code>
| <code>void MakeIllusion() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakePhantomBlocker | MakePhantomBlocker]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakePhantomBlocker|MakePhantomBlocker}}
| <code>void MakePhantomBlocker() </code>
| <code>void MakePhantomBlocker() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleDueToAttack | MakeVisibleDueToAttack]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleDueToAttack|MakeVisibleDueToAttack}}
| <code>void MakeVisibleDueToAttack(int a) </code>
| <code>void MakeVisibleDueToAttack(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleToTeam | MakeVisibleToTeam]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MakeVisibleToTeam|MakeVisibleToTeam}}
| <code>void MakeVisibleToTeam(int a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ModifyHealth|ModifyHealth}}
| <code>void ModifyHealth(int a, handle b, bool c, int d) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPC|MoveToNPC}}
| <code>void MoveToNPC(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToNPCToGiveItem|MoveToNPCToGiveItem}}
| <code>void MoveToNPCToGiveItem(handle a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPosition|MoveToPosition}}
| <code>void MoveToPosition(Vector a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToPositionAggressive|MoveToPositionAggressive}}
| <code>void MoveToPositionAggressive(Vector a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.MoveToTargetToAttack|MoveToTargetToAttack}}
| <code>void MoveToTargetToAttack(handle a) </code>
| <code>void MoveToTargetToAttack(handle a) </code>
| Move to a target to attack.
| Move to a target to attack.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoHealthBar | NoHealthBar]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoHealthBar|NoHealthBar}}
| <code>bool NoHealthBar() </code>
| <code>bool NoHealthBar() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamMoveTo | NoTeamMoveTo]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamMoveTo|NoTeamMoveTo}}
| <code>bool NoTeamMoveTo() </code>
| <code>bool NoTeamMoveTo() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamSelect | NoTeamSelect]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoTeamSelect|NoTeamSelect}}
| <code>bool NoTeamSelect() </code>
| <code>bool NoTeamSelect() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimap | NotOnMinimap]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimap|NotOnMinimap}}
| <code>bool NotOnMinimap() </code>
| <code>bool NotOnMinimap() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimapForEnemies | NotOnMinimapForEnemies]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NotOnMinimapForEnemies|NotOnMinimapForEnemies}}
| <code>bool NotOnMinimapForEnemies() </code>
| <code>bool NotOnMinimapForEnemies() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoUnitCollision | NoUnitCollision]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.NoUnitCollision|NoUnitCollision}}
| <code>bool NoUnitCollision() </code>
| <code>bool NoUnitCollision() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PassivesDisabled | PassivesDisabled]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PassivesDisabled|PassivesDisabled}}
| <code>bool PassivesDisabled() </code>
| <code>bool PassivesDisabled() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PerformAttack | PerformAttack]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PerformAttack|PerformAttack}}
| <code>void PerformAttack(handle a, bool b, bool c, bool d, bool e) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupDroppedItem|PickupDroppedItem}}
| <code>void PickupDroppedItem(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.PickupRune|PickupRune}}
| <code>void PickupRune(handle a) </code>
| <code>void PickupRune(handle a) </code>
| Pick up a rune.
| Pick up a rune.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ProvidesVision | ProvidesVision]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ProvidesVision|ProvidesVision}}
| <code>bool ProvidesVision() </code>
| <code>bool ProvidesVision() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ReduceMana | ReduceMana]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ReduceMana|ReduceMana}}
| <code>void ReduceMana(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveAbility|RemoveAbility}}
| <code>void RemoveAbility(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveItem|RemoveItem}}
| <code>void RemoveItem(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByName|RemoveModifierByName}}
| <code>void RemoveModifierByName(string a) </code>
| <code>void RemoveModifierByName(string a) </code>
| Removes a modifier
| Removes a modifier
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByNameAndCaster | RemoveModifierByNameAndCaster]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveModifierByNameAndCaster|RemoveModifierByNameAndCaster}}
| <code>void RemoveModifierByNameAndCaster(string a, handle b) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveNoDraw | RemoveNoDraw]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RemoveNoDraw|RemoveNoDraw}}
| <code>void RemoveNoDraw() </code>
| <code>void RemoveNoDraw() </code>
| Remove the no draw flag.
| Remove the no draw flag.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RespawnUnit | RespawnUnit]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.RespawnUnit|RespawnUnit}}
| <code>void RespawnUnit() </code>
| <code>void RespawnUnit() </code>
| Respawns the target unit if it can be respawned.
| Respawns the target unit if it can be respawned.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SellItem | SellItem]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SellItem|SellItem}}
| <code>void SellItem(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAdditionalBattleMusicWeight|SetAdditionalBattleMusicWeight}}
| <code>void SetAdditionalBattleMusicWeight(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttackCapability|SetAttackCapability}}
| <code>void SetAttackCapability(int a) </code>
| <code>void SetAttackCapability(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttacking | SetAttacking]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetAttacking|SetAttacking}}
| <code>void SetAttacking(handle a) </code>
| <code>void SetAttacking(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseAttackTime | SetBaseAttackTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseAttackTime|SetBaseAttackTime}}
| <code>void SetBaseAttackTime(float a) </code>
| <code>void SetBaseAttackTime(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMax | SetBaseDamageMax]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMax|SetBaseDamageMax}}
| <code>void SetBaseDamageMax(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseDamageMin|SetBaseDamageMin}}
| <code>void SetBaseDamageMin(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseHealthRegen|SetBaseHealthRegen}}
| <code>void SetBaseHealthRegen(float a) </code>
| <code>void SetBaseHealthRegen(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMagicalResistanceValue | SetBaseMagicalResistanceValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMagicalResistanceValue|SetBaseMagicalResistanceValue}}
| <code>void SetBaseMagicalResistanceValue(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseManaRegen|SetBaseManaRegen}}
| <code>void SetBaseManaRegen(float a) </code>
| <code>void SetBaseManaRegen(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMaxHealth | SetBaseMaxHealth]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMaxHealth|SetBaseMaxHealth}}
| <code>void SetBaseMaxHealth(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetBaseMoveSpeed|SetBaseMoveSpeed}}
| <code>void SetBaseMoveSpeed(int a) </code>
| <code>void SetBaseMoveSpeed(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetControllableByPlayer | SetControllableByPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetControllableByPlayer|SetControllableByPlayer}}
| <code>void SetControllableByPlayer(int a, bool b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorCastTarget|SetCursorCastTarget}}
| <code>void SetCursorCastTarget(handle a) </code>
| <code>void SetCursorCastTarget(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorPosition | SetCursorPosition]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorPosition|SetCursorPosition}}
| <code>void SetCursorPosition(Vector a) </code>
| <code>void SetCursorPosition(Vector a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorTargetingNothing | SetCursorTargetingNothing]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetCursorTargetingNothing|SetCursorTargetingNothing}}
| <code>void SetCursorTargetingNothing(bool a) </code>
| <code>void SetCursorTargetingNothing(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDayTimeVisionRange | SetDayTimeVisionRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDayTimeVisionRange|SetDayTimeVisionRange}}
| <code>void SetDayTimeVisionRange(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetDeathXP|SetDeathXP}}
| <code>void SetDeathXP(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetForceAttackTarget|SetForceAttackTarget}}
| <code>void SetForceAttackTarget(handle a) </code>
| <code>void SetForceAttackTarget(handle a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHasInventory | SetHasInventory]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHasInventory|SetHasInventory}}
| <code>void SetHasInventory(bool a) </code>
| <code>void SetHasInventory(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHullRadius | SetHullRadius]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetHullRadius|SetHullRadius}}
| <code>void SetHullRadius(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetIdleAcquire|SetIdleAcquire}}
| <code>void SetIdleAcquire(bool a) </code>
| <code>void SetIdleAcquire(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetInitialGoalEntity | SetInitialGoalEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetInitialGoalEntity|SetInitialGoalEntity}}
| <code>void SetInitialGoalEntity(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMana|SetMana}}
| <code>void SetMana(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMaximumGoldBounty|SetMaximumGoldBounty}}
| <code>void SetMaximumGoldBounty(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMinimumGoldBounty|SetMinimumGoldBounty}}
| <code>void SetMinimumGoldBounty(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMoveCapability|SetMoveCapability}}
| <code>void SetMoveCapability(int a) </code>
| <code>void SetMoveCapability(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMustReachEachGoalEntity | SetMustReachEachGoalEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetMustReachEachGoalEntity|SetMustReachEachGoalEntity}}
| <code>void SetMustReachEachGoalEntity(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNeverMoveToClearSpace|SetNeverMoveToClearSpace}}
| <code>void SetNeverMoveToClearSpace(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetNightTimeVisionRange|SetNightTimeVisionRange}}
| <code>void SetNightTimeVisionRange(int a) </code>
| <code>void SetNightTimeVisionRange(int a) </code>
| Set the base vision range.
| Set the base vision range.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetOriginalModel | SetOriginalModel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetOriginalModel|SetOriginalModel}}
| <code>void SetOriginalModel(string originalModel) </code>
| <code>void SetOriginalModel(string originalModel) </code>
| Sets the original model of this entity, which it will tend to fall back to anytime its state changes
| Sets the original model of this entity, which it will tend to fall back to anytime its state changes
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetPhysicalArmorBaseValue | SetPhysicalArmorBaseValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetPhysicalArmorBaseValue|SetPhysicalArmorBaseValue}}
| <code>void SetPhysicalArmorBaseValue(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetRangedProjectileName|SetRangedProjectileName}}
| <code>void SetRangedProjectileName(string a) </code>
| <code>void SetRangedProjectileName(string a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetStolenScepter | SetStolenScepter]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetStolenScepter|SetStolenScepter}}
| <code>void SetStolenScepter(bool a) </code>
| <code>void SetStolenScepter(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetUnitName | SetUnitName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SetUnitName|SetUnitName}}
| <code>void SetUnitName(string a) </code>
| <code>void SetUnitName(string a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ShouldIdleAcquire | ShouldIdleAcquire]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ShouldIdleAcquire|ShouldIdleAcquire}}
| <code>bool ShouldIdleAcquire() </code>
| <code>bool ShouldIdleAcquire() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SpendMana | SpendMana]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SpendMana|SpendMana}}
| <code>void SpendMana(float a, handle b) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Stop | Stop]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Stop|Stop}}
| <code>void Stop() </code>
| <code>void Stop() </code>
| Stop the current order.
| Stop the current order.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SwapAbilities | SwapAbilities]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.SwapAbilities|SwapAbilities}}
| <code>void SwapAbilities(string a, string b, bool c, bool d) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TimeUntilNextAttack | TimeUntilNextAttack]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TimeUntilNextAttack|TimeUntilNextAttack}}
| <code>float TimeUntilNextAttack() </code>
| <code>float TimeUntilNextAttack() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerModifierDodge | TriggerModifierDodge]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerModifierDodge|TriggerModifierDodge}}
| <code>bool TriggerModifierDodge() </code>
| <code>bool TriggerModifierDodge() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerSpellAbsorb | TriggerSpellAbsorb]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.TriggerSpellAbsorb|TriggerSpellAbsorb}}
| <code>bool TriggerSpellAbsorb(handle a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.UnitCanRespawn | UnitCanRespawn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.UnitCanRespawn|UnitCanRespawn}}
| <code>bool UnitCanRespawn() </code>
| <code>bool UnitCanRespawn() </code>
| No Description Set
| No Description Set
Line 3,227: Line 3,227:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.AddExperience | AddExperience]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.AddExperience|AddExperience}}
| <code>bool AddExperience(float amount, bool applyBotDifficultyScaling) </code>
| <code>bool AddExperience(float amount, bool applyBotDifficultyScaling) </code>
| Adds experience to this unit.
| Adds experience to this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.Buyback | Buyback]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.Buyback|Buyback}}
| <code>void Buyback() </code>
| <code>void Buyback() </code>
| Spend the gold and buyback with this hero.
| Spend the gold and buyback with this hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CalculateStatBonus | CalculateStatBonus]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CalculateStatBonus|CalculateStatBonus}}
| <code>void CalculateStatBonus() </code>
| <code>void CalculateStatBonus() </code>
| Recalculate all stats after the hero gains stats.
| Recalculate all stats after the hero gains stats.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CanEarnGold | CanEarnGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.CanEarnGold|CanEarnGold}}
| <code>bool CanEarnGold() </code>
| <code>bool CanEarnGold() </code>
| Returns boolean value result of buyback gold limit time less than game time.
| Returns boolean value result of buyback gold limit time less than game time.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitMultikill | ClearLastHitMultikill]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitMultikill|ClearLastHitMultikill}}
| <code>void ClearLastHitMultikill() </code>
| <code>void ClearLastHitMultikill() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitStreak | ClearLastHitStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearLastHitStreak|ClearLastHitStreak}}
| <code>void ClearLastHitStreak() </code>
| <code>void ClearLastHitStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearStreak | ClearStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ClearStreak|ClearStreak}}
| <code>void ClearStreak() </code>
| <code>void ClearStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAbilityPoints | GetAbilityPoints]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAbilityPoints|GetAbilityPoints}}
| <code>int GetAbilityPoints() </code>
| <code>int GetAbilityPoints() </code>
| Gets the current unspent ability point's.
| Gets the current unspent ability point's.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgility | GetAgility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgility|GetAgility}}
| <code>float GetAgility() </code>
| <code>float GetAgility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgilityGain | GetAgilityGain]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAgilityGain|GetAgilityGain}}
| <code>float GetAgilityGain() </code>
| <code>float GetAgilityGain() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAssists | GetAssists]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAssists|GetAssists}}
| <code>int GetAssists() </code>
| <code>int GetAssists() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAttacker | GetAttacker]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetAttacker|GetAttacker}}
| <code>int GetAttacker(int a) </code>
| <code>int GetAttacker(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseAgility | GetBaseAgility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseAgility|GetBaseAgility}}
| <code>float GetBaseAgility() </code>
| <code>float GetBaseAgility() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMax | GetBaseDamageMax]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMax|GetBaseDamageMax}}
| <code>int GetBaseDamageMax() </code>
| <code>int GetBaseDamageMax() </code>
| Hero damage is also affected by attributes.
| Hero damage is also affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMin | GetBaseDamageMin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseDamageMin|GetBaseDamageMin}}
| <code>int GetBaseDamageMin() </code>
| <code>int GetBaseDamageMin() </code>
| Hero damage is also affected by attributes.
| Hero damage is also affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseIntellect | GetBaseIntellect]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseIntellect|GetBaseIntellect}}
| <code>float GetBaseIntellect() </code>
| <code>float GetBaseIntellect() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseStrength | GetBaseStrength]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBaseStrength|GetBaseStrength}}
| <code>float GetBaseStrength() </code>
| <code>float GetBaseStrength() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBonusDamageFromPrimaryStat | GetBonusDamageFromPrimaryStat]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBonusDamageFromPrimaryStat|GetBonusDamageFromPrimaryStat}}
| <code>int GetBonusDamageFromPrimaryStat() </code>
| <code>int GetBonusDamageFromPrimaryStat() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCooldownTime | GetBuybackCooldownTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCooldownTime|GetBuybackCooldownTime}}
| <code>float GetBuybackCooldownTime() </code>
| <code>float GetBuybackCooldownTime() </code>
| Return ''float'' value for the amount of time left on cooldown for this hero's buyback.
| Return ''float'' value for the amount of time left on cooldown for this hero's buyback.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCost | GetBuybackCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackCost|GetBuybackCost}}
| <code>int GetBuybackCost() </code>
| <code>int GetBuybackCost() </code>
| Return integer value for the gold cost of a buyback.
| Return integer value for the gold cost of a buyback.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackGoldLimitTime | GetBuybackGoldLimitTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetBuybackGoldLimitTime|GetBuybackGoldLimitTime}}
| <code>float GetBuybackGoldLimitTime() </code>
| <code>float GetBuybackGoldLimitTime() </code>
| Returns the amount of time gold gain is limited after buying back.
| Returns the amount of time gold gain is limited after buying back.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetCurrentXP | GetCurrentXP]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetCurrentXP|GetCurrentXP}}
| <code>int GetCurrentXP() </code>
| <code>int GetCurrentXP() </code>
| Returns the amount of XP
| Returns the amount of XP
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeathGoldCost | GetDeathGoldCost]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeathGoldCost|GetDeathGoldCost}}
| <code>int GetDeathGoldCost() </code>
| <code>int GetDeathGoldCost() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeaths | GetDeaths]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDeaths|GetDeaths}}
| <code>int GetDeaths() </code>
| <code>int GetDeaths() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDenies | GetDenies]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetDenies|GetDenies}}
| <code>int GetDenies() </code>
| <code>int GetDenies() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGold | GetGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGold|GetGold}}
| <code>int GetGold() </code>
| <code>int GetGold() </code>
| Returns gold amount for the player owning this hero
| Returns gold amount for the player owning this hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGoldBounty | GetGoldBounty]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetGoldBounty|GetGoldBounty}}
| <code>int GetGoldBounty() </code>
| <code>int GetGoldBounty() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetHealthRegen | GetHealthRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetHealthRegen|GetHealthRegen}}
| <code>float GetHealthRegen() </code>
| <code>float GetHealthRegen() </code>
| Hero health regen is affected by attributes.
| Hero health regen is affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIncreasedAttackSpeed|GetIncreasedAttackSpeed}}
| <code>float GetIncreasedAttackSpeed() </code>
| <code>float GetIncreasedAttackSpeed() </code>
| Hero attack speed is also affected by agility.
| Hero attack speed is also affected by agility.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellect | GetIntellect]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellect|GetIntellect}}
| <code>float GetIntellect() </code>
| <code>float GetIntellect() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellectGain | GetIntellectGain]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetIntellectGain|GetIntellectGain}}
| <code>float GetIntellectGain() </code>
| <code>float GetIntellectGain() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetKills | GetKills]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetKills|GetKills}}
| <code>int GetKills() </code>
| <code>int GetKills() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetLastHits | GetLastHits]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetLastHits|GetLastHits}}
| <code>int GetLastHits() </code>
| <code>int GetLastHits() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetManaRegen | GetManaRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetManaRegen|GetManaRegen}}
| <code>float GetManaRegen() </code>
| <code>float GetManaRegen() </code>
| Hero mana regen is affected by attributes.
| Hero mana regen is affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMostRecentDamageTime | GetMostRecentDamageTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMostRecentDamageTime|GetMostRecentDamageTime}}
| <code>float GetMostRecentDamageTime() </code>
| <code>float GetMostRecentDamageTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMultipleKillCount | GetMultipleKillCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetMultipleKillCount|GetMultipleKillCount}}
| <code>int GetMultipleKillCount() </code>
| <code>int GetMultipleKillCount() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetNumAttackers | GetNumAttackers]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetNumAttackers|GetNumAttackers}}
| <code>int GetNumAttackers() </code>
| <code>int GetNumAttackers() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPhysicalArmorValue | GetPhysicalArmorValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPhysicalArmorValue|GetPhysicalArmorValue}}
| <code>float GetPhysicalArmorValue() </code>
| <code>float GetPhysicalArmorValue() </code>
| Hero armor is affected by attributes.
| Hero armor is affected by attributes.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPlayerID | GetPlayerID]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPlayerID|GetPlayerID}}
| <code>int GetPlayerID() </code>
| <code>int GetPlayerID() </code>
| Returns player ID of the player owning this hero
| Returns player ID of the player owning this hero
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryAttribute | GetPrimaryAttribute]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryAttribute|GetPrimaryAttribute}}
| <code>int GetPrimaryAttribute() </code>
| <code>int GetPrimaryAttribute() </code>
| 0 = strength, 1 = agility, 2 = intelligence.
| 0 = strength, 1 = agility, 2 = intelligence.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryStatValue | GetPrimaryStatValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetPrimaryStatValue|GetPrimaryStatValue}}
| <code>float GetPrimaryStatValue() </code>
| <code>float GetPrimaryStatValue() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetRespawnTime | GetRespawnTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetRespawnTime|GetRespawnTime}}
| <code>float GetRespawnTime() </code>
| <code>float GetRespawnTime() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStatsBasedManaRegen|GetStatsBasedManaRegen}}
| <code>float GetStatsBasedManaRegen() </code>
| <code>float GetStatsBasedManaRegen() </code>
| Returns only the regen based on Intelligence.
| Returns only the regen based on Intelligence.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStreak | GetStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStreak|GetStreak}}
| <code>int GetStreak() </code>
| <code>int GetStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrength | GetStrength]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrength|GetStrength}}
| <code>float GetStrength() </code>
| <code>float GetStrength() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrengthGain | GetStrengthGain]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetStrengthGain|GetStrengthGain}}
| <code>float GetStrengthGain() </code>
| <code>float GetStrengthGain() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetTimeUntilRespawn | GetTimeUntilRespawn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.GetTimeUntilRespawn|GetTimeUntilRespawn}}
| <code>float GetTimeUntilRespawn() </code>
| <code>float GetTimeUntilRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasAnyAvailableInventorySpace | HasAnyAvailableInventorySpace]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasAnyAvailableInventorySpace|HasAnyAvailableInventorySpace}}
| <code>bool HasAnyAvailableInventorySpace() </code>
| <code>bool HasAnyAvailableInventorySpace() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasFlyingVision | HasFlyingVision]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasFlyingVision|HasFlyingVision}}
| <code>bool HasFlyingVision() </code>
| <code>bool HasFlyingVision() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasOwnerAbandoned | HasOwnerAbandoned]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasOwnerAbandoned|HasOwnerAbandoned}}
| <code>bool HasOwnerAbandoned() </code>
| <code>bool HasOwnerAbandoned() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasRoomForItem | HasRoomForItem]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HasRoomForItem|HasRoomForItem}}
| <code>int HasRoomForItem(string a, bool b, bool c) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.HeroLevelUp|HeroLevelUp}}
| <code>void HeroLevelUp(bool a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementAssists | IncrementAssists]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementAssists|IncrementAssists}}
| <code>void IncrementAssists() </code>
| <code>void IncrementAssists() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDeaths | IncrementDeaths]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDeaths|IncrementDeaths}}
| <code>void IncrementDeaths() </code>
| <code>void IncrementDeaths() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDenies | IncrementDenies]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementDenies|IncrementDenies}}
| <code>void IncrementDenies() </code>
| <code>void IncrementDenies() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementKills | IncrementKills]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementKills|IncrementKills}}
| <code>void IncrementKills(int kills) </code>
| <code>void IncrementKills(int kills) </code>
| Passed ID is for the victim, killer ID is ID of the current hero. Value is stored in PlayerResource.
| Passed ID is for the victim, killer ID is ID of the current hero. Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitMultikill | IncrementLastHitMultikill]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitMultikill|IncrementLastHitMultikill}}
| <code>void IncrementLastHitMultikill() </code>
| <code>void IncrementLastHitMultikill() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHits | IncrementLastHits]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHits|IncrementLastHits}}
| <code>void IncrementLastHits() </code>
| <code>void IncrementLastHits() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitStreak | IncrementLastHitStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementLastHitStreak|IncrementLastHitStreak}}
| <code>void IncrementLastHitStreak() </code>
| <code>void IncrementLastHitStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementNearbyCreepDeaths|IncrementNearbyCreepDeaths}}
| <code>void IncrementNearbyCreepDeaths() </code>
| <code>void IncrementNearbyCreepDeaths() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementStreak | IncrementStreak]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IncrementStreak|IncrementStreak}}
| <code>void IncrementStreak() </code>
| <code>void IncrementStreak() </code>
| Value is stored in PlayerResource.
| Value is stored in PlayerResource.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsBuybackDisabledByReapersScythe | IsBuybackDisabledByReapersScythe]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsBuybackDisabledByReapersScythe|IsBuybackDisabledByReapersScythe}}
| <code>bool IsBuybackDisabledByReapersScythe() </code>
| <code>bool IsBuybackDisabledByReapersScythe() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsReincarnating | IsReincarnating]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.IsReincarnating|IsReincarnating}}
| <code>bool IsReincarnating() </code>
| <code>bool IsReincarnating() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.KilledHero | KilledHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.KilledHero|KilledHero}}
| <code>void KilledHero(handle a, handle b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyAgility|ModifyAgility}}
| <code>void ModifyAgility(float a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyGold | ModifyGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyGold|ModifyGold}}
| <code>int ModifyGold(int goldAmmt, bool reliable, int reason) </code>
| <code>int ModifyGold(int goldAmmt, bool reliable, int reason) </code>
| Gives this hero some gold. Args: ''int'' nGoldChange, ''bool'' bReliable, ''int'' reason
| Gives this hero some gold. Args: ''int'' nGoldChange, ''bool'' bReliable, ''int'' reason
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyIntellect | ModifyIntellect]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyIntellect|ModifyIntellect}}
| <code>void ModifyIntellect(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ModifyStrength|ModifyStrength}}
| <code>void ModifyStrength(float a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.PerformTaunt | PerformTaunt]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.PerformTaunt|PerformTaunt}}
| <code>void PerformTaunt() </code>
| <code>void PerformTaunt() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RecordLastHit | RecordLastHit]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RecordLastHit|RecordLastHit}}
| <code>void RecordLastHit() </code>
| <code>void RecordLastHit() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RespawnHero | RespawnHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.RespawnHero|RespawnHero}}
| <code>void RespawnHero(bool buyback, bool unknown1, bool unknown2) </code>
| <code>void RespawnHero(bool buyback, bool unknown1, bool unknown2) </code>
|  
|  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetAbilityPoints | SetAbilityPoints]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetAbilityPoints|SetAbilityPoints}}
| <code>void SetAbilityPoints(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseAgility|SetBaseAgility}}
| <code>void SetBaseAgility(float a) </code>
| <code>void SetBaseAgility(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseIntellect | SetBaseIntellect]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseIntellect|SetBaseIntellect}}
| <code>void SetBaseIntellect(float a) </code>
| <code>void SetBaseIntellect(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseStrength | SetBaseStrength]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBaseStrength|SetBaseStrength}}
| <code>void SetBaseStrength(float a) </code>
| <code>void SetBaseStrength(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackCooldownTime | SetBuybackCooldownTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackCooldownTime|SetBuybackCooldownTime}}
| <code>void SetBuybackCooldownTime(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuyBackDisabledByReapersScythe|SetBuyBackDisabledByReapersScythe}}
| <code>void SetBuyBackDisabledByReapersScythe(bool a) </code>
| <code>void SetBuyBackDisabledByReapersScythe(bool a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetBuybackGoldLimitTime|SetBuybackGoldLimitTime}}
| <code>void SetBuybackGoldLimitTime(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetCustomDeathXP|SetCustomDeathXP}}
| <code>void SetCustomDeathXP(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetGold|SetGold}}
| <code>void SetGold(int a, bool b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetPlayerID|SetPlayerID}}
| <code>void SetPlayerID(int a) </code>
| <code>void SetPlayerID(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetRespawnPosition | SetRespawnPosition]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetRespawnPosition|SetRespawnPosition}}
| <code>void SetRespawnPosition(Vector a) </code>
| <code>void SetRespawnPosition(Vector a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetTimeUntilRespawn | SetTimeUntilRespawn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SetTimeUntilRespawn|SetTimeUntilRespawn}}
| <code>void SetTimeUntilRespawn(float a) </code>
| <code>void SetTimeUntilRespawn(float a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ShouldDoFlyHeightVisual | ShouldDoFlyHeightVisual]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.ShouldDoFlyHeightVisual|ShouldDoFlyHeightVisual}}
| <code>bool ShouldDoFlyHeightVisual() </code>
| <code>bool ShouldDoFlyHeightVisual() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SpendGold | SpendGold]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.SpendGold|SpendGold}}
| <code>void SpendGold(int a, int b) </code>
| <code>void SpendGold(int a, int b) </code>
| Args: ''int'' nGold, ''int'' nReason
| Args: ''int'' nGold, ''int'' nReason
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UnitCanRespawn | UnitCanRespawn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UnitCanRespawn|UnitCanRespawn}}
| <code>bool UnitCanRespawn() </code>
| <code>bool UnitCanRespawn() </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UpgradeAbility | UpgradeAbility]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.UpgradeAbility|UpgradeAbility}}
| <code>void UpgradeAbility(handle a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.WillReincarnate | WillReincarnate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Hero.WillReincarnate|WillReincarnate}}
| <code>bool WillReincarnate() </code>
| <code>bool WillReincarnate() </code>
| No Description Set
| No Description Set
Line 3,589: Line 3,589:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.AddItemDrop | AddItemDrop]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.AddItemDrop|AddItemDrop}}
| <code>void AddItemDrop(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.CreatureLevelUp|CreatureLevelUp}}
| <code>void CreatureLevelUp(int a) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.IsChampion | IsChampion]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.IsChampion|IsChampion}}
| <code>bool IsChampion() </code>
| <code>bool IsChampion() </code>
| Is this unit a champion?
| Is this unit a champion?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetArmorGain | SetArmorGain]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetArmorGain|SetArmorGain}}
| <code>void SetArmorGain(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetAttackTimeGain|SetAttackTimeGain}}
| <code>void SetAttackTimeGain(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetBountyGain|SetBountyGain}}
| <code>void SetBountyGain(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetChampion|SetChampion}}
| <code>void SetChampion(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDamageGain|SetDamageGain}}
| <code>void SetDamageGain(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetDisableResistanceGain|SetDisableResistanceGain}}
| <code>void SetDisableResistanceGain(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPGain|SetHPGain}}
| <code>void SetHPGain(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetHPRegenGain|SetHPRegenGain}}
| <code>void SetHPRegenGain(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMagicResistanceGain|SetMagicResistanceGain}}
| <code>void SetMagicResistanceGain(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetManaGain|SetManaGain}}
| <code>void SetManaGain(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetManaRegenGain|SetManaRegenGain}}
| <code>void SetManaRegenGain(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetMoveSpeedGain|SetMoveSpeedGain}}
| <code>void SetMoveSpeedGain(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Creature.SetXPGain|SetXPGain}}
| <code>void SetXPGain(int a) </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,663: Line 3,663:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.GetInvulnCount | GetInvulnCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.GetInvulnCount|GetInvulnCount}}
| <code>int GetInvulnCount() </code>
| <code>int GetInvulnCount() </code>
| Get the invulnerability count for a building.
| Get the invulnerability count for a building.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.SetInvulnCount | SetInvulnCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC_Building.SetInvulnCount|SetInvulnCount}}
| <code>void SetInvulnCount(int a) </code>
| <code>void SetInvulnCount(int a) </code>
| Set the invulnerability counter of this building.
| Set the invulnerability counter of this building.
Line 3,680: Line 3,680:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ActionState | ActionState]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ActionState|ActionState}}
| <code>handle ActionState() </code>
| <code>handle ActionState() </code>
| return the ActionState object for this unit.
| return the ActionState object for this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ClearMovementTarget | ClearMovementTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.ClearMovementTarget|ClearMovementTarget}}
| <code>void ClearMovementTarget() </code>
| <code>void ClearMovementTarget() </code>
| Clear any movement target entity/position.
| Clear any movement target entity/position.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.FindSensedEnemies | FindSensedEnemies]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.FindSensedEnemies|FindSensedEnemies}}
| <code>table FindSensedEnemies() </code>
| <code>table FindSensedEnemies() </code>
| returns list of all enemy units within this unit's sight cone or sensing sphere
| returns list of all enemy units within this unit's sight cone or sensing sphere
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxSpeed | GetMaxSpeed]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxSpeed|GetMaxSpeed}}
| <code>float GetMaxSpeed() </code>
| <code>float GetMaxSpeed() </code>
| returns unit's max speed
| returns unit's max speed
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxStamina | GetMaxStamina]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMaxStamina|GetMaxStamina}}
| <code>float GetMaxStamina() </code>
| <code>float GetMaxStamina() </code>
| returns maximum stamina amount.
| returns maximum stamina amount.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMovementTargetEntity | GetMovementTargetEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetMovementTargetEntity|GetMovementTargetEntity}}
| <code>handle GetMovementTargetEntity() </code>
| <code>handle GetMovementTargetEntity() </code>
| Returs the movement target entity, if set.
| Returs the movement target entity, if set.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSensingSphereRange | GetSensingSphereRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSensingSphereRange|GetSensingSphereRange}}
| <code>float GetSensingSphereRange() </code>
| <code>float GetSensingSphereRange() </code>
| returns range of unit's 360 degree sensing sphere
| returns range of unit's 360 degree sensing sphere
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeAngle | GetSightConeAngle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeAngle|GetSightConeAngle}}
| <code>float GetSightConeAngle() </code>
| <code>float GetSightConeAngle() </code>
| returns angle in which the unit can see things up to sight range
| returns angle in which the unit can see things up to sight range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeRange | GetSightConeRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetSightConeRange|GetSightConeRange}}
| <code>float GetSightConeRange() </code>
| <code>float GetSightConeRange() </code>
| returns range of unit's sight cone
| returns range of unit's sight cone
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetStamina | GetStamina]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetStamina|GetStamina}}
| <code>float GetStamina() </code>
| <code>float GetStamina() </code>
| returns current stamina amount.
| returns current stamina amount.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetTurnRate | GetTurnRate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetTurnRate|GetTurnRate}}
| <code>float GetTurnRate() </code>
| <code>float GetTurnRate() </code>
| returns unit's turn rate in degrees per second
| returns unit's turn rate in degrees per second
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetUnitName | GetUnitName]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GetUnitName|GetUnitName}}
| <code>string GetUnitName() </code>
| <code>string GetUnitName() </code>
| get the unit name for this unit.
| get the unit name for this unit.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GrantItem | GrantItem]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.GrantItem|GrantItem}}
| <code>void GrantItem(string a, bool b) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsBlocking | IsBlocking]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsBlocking|IsBlocking}}
| <code>bool IsBlocking() </code>
| <code>bool IsBlocking() </code>
| is this unit blocking?
| is this unit blocking?
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsFacing | IsFacing]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.IsFacing|IsFacing}}
| <code>bool IsFacing(Vector a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetBlocking|SetBlocking}}
| <code>void SetBlocking(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMaxSpeed|SetMaxSpeed}}
| <code>void SetMaxSpeed(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetEntity|SetMovementTargetEntity}}
| <code>void SetMovementTargetEntity(handle a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetMovementTargetPosition|SetMovementTargetPosition}}
| <code>void SetMovementTargetPosition(Vector a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSensingSphereRange|SetSensingSphereRange}}
| <code>void SetSensingSphereRange(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeAngle|SetSightConeAngle}}
| <code>void SetSightConeAngle(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetSightConeRange|SetSightConeRange}}
| <code>void SetSightConeRange(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CRPG_Unit.SetTurnRate|SetTurnRate}}
| <code>void SetTurnRate(float a) </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,782: Line 3,782:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.ClientLoadGridNav | ClientLoadGridNav]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.ClientLoadGridNav|ClientLoadGridNav}}
| <code>void ClientLoadGridNav() </code>
| <code>void ClientLoadGridNav() </code>
| Tell clients that they need to load gridnav information. Used for things like allowing clients to identify valid locations to place buildings.
| Tell clients that they need to load gridnav information. Used for things like allowing clients to identify valid locations to place buildings.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetAlwaysShowPlayerInventory | SetAlwaysShowPlayerInventory]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetAlwaysShowPlayerInventory|SetAlwaysShowPlayerInventory}}
| <code>void SetAlwaysShowPlayerInventory(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBotThinkingEnabled|SetBotThinkingEnabled}}
| <code>void SetBotThinkingEnabled(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetBuybackEnabled|SetBuybackEnabled}}
| <code>void SetBuybackEnabled(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCameraDistanceOverride|SetCameraDistanceOverride}}
| <code>void SetCameraDistanceOverride(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCooldownEnabled|SetCustomBuybackCooldownEnabled}}
| <code>void SetCustomBuybackCooldownEnabled(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomBuybackCostEnabled|SetCustomBuybackCostEnabled}}
| <code>void SetCustomBuybackCostEnabled(bool a) </code>
| <code>void SetCustomBuybackCostEnabled(bool a) </code>
| Turns on capability to define custom buyback costs.
| Turns on capability to define custom buyback costs.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomHeroMaxLevel | SetCustomHeroMaxLevel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomHeroMaxLevel|SetCustomHeroMaxLevel}}
| <code>void SetCustomHeroMaxLevel(int maxLevel) </code>
| <code>void SetCustomHeroMaxLevel(int maxLevel) </code>
| Allows definition of the max level heroes can achieve (default is 25).
| Allows definition of the max level heroes can achieve (default is 25).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomXPRequiredToReachNextLevel | SetCustomXPRequiredToReachNextLevel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetCustomXPRequiredToReachNextLevel|SetCustomXPRequiredToReachNextLevel}}
| <code>void SetCustomXPRequiredToReachNextLevel(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetFogOfWarDisabled|SetFogOfWarDisabled}}
| <code>void SetFogOfWarDisabled(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetGoldSoundDisabled|SetGoldSoundDisabled}}
| <code>void SetGoldSoundDisabled(bool a) </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''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetOverrideSelectionEntity | SetOverrideSelectionEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetOverrideSelectionEntity|SetOverrideSelectionEntity}}
| <code>void SetOverrideSelectionEntity(handle unit) </code>
| <code>void SetOverrideSelectionEntity(handle unit) </code>
| Set an override for the default selection entity, instead of each player's hero.
| Set an override for the default selection entity, instead of each player's hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRecommendedItemsDisabled | SetRecommendedItemsDisabled]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRecommendedItemsDisabled|SetRecommendedItemsDisabled}}
| <code>void SetRecommendedItemsDisabled(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetRemoveIllusionsOnDeath|SetRemoveIllusionsOnDeath}}
| <code>void SetRemoveIllusionsOnDeath(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValue|SetTopBarTeamValue}}
| <code>void SetTopBarTeamValue(int a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesOverride|SetTopBarTeamValuesOverride}}
| <code>void SetTopBarTeamValuesOverride(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValuesVisible|SetTopBarTeamValuesVisible}}
| <code>void SetTopBarTeamValuesVisible(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTowerBackdoorProtectionEnabled|SetTowerBackdoorProtectionEnabled}}
| <code>void SetTowerBackdoorProtectionEnabled(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetUseCustomHeroLevels|SetUseCustomHeroLevels}}
| <code>void SetUseCustomHeroLevels(bool a) </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,868: Line 3,868:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.AddSubquest | AddSubquest]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaQuest.AddSubquest|AddSubquest}}
| <code>void AddSubquest(handle a) </code>
| <code>void AddSubquest(handle a) </code>
| Add a subquest to this quest
| Add a subquest to this quest
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.CompleteQuest | CompleteQuest]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaQuest.CompleteQuest|CompleteQuest}}
| <code>void CompleteQuest() </code>
| <code>void CompleteQuest() </code>
| Mark this quest complete
| Mark this quest complete
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquest | GetSubquest]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquest|GetSubquest}}
| <code>handle GetSubquest(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaQuest.GetSubquestByName|GetSubquestByName}}
| <code>handle GetSubquestByName(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaQuest.RemoveSubquest|RemoveSubquest}}
| <code>void RemoveSubquest(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceString|SetTextReplaceString}}
| <code>void SetTextReplaceString(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaQuest.SetTextReplaceValue|SetTextReplaceValue}}
| <code>void SetTextReplaceValue(int a, int b) </code>
| <code>void SetTextReplaceValue(int a, int b) </code>
| Set a quest value
| Set a quest value
Line 3,906: Line 3,906:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.CompleteSubquest | CompleteSubquest]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.CompleteSubquest|CompleteSubquest}}
| <code>void CompleteSubquest() </code>
| <code>void CompleteSubquest() </code>
| Mark this subquest complete
| Mark this subquest complete
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceString | SetTextReplaceString]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceString|SetTextReplaceString}}
| <code>void SetTextReplaceString(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDotaSubquestBase.SetTextReplaceValue|SetTextReplaceValue}}
| <code>void SetTextReplaceValue(int a, int b) </code>
| <code>void SetTextReplaceValue(int a, int b) </code>
| Set a subquest value
| Set a subquest value
Line 3,927: Line 3,927:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPhysicsComponent.ExpensiveInstantRayCast | ExpensiveInstantRayCast]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CPhysicsComponent.ExpensiveInstantRayCast|ExpensiveInstantRayCast}}
| <code>bool ExpensiveInstantRayCast(Vector a, Vector b, handle c) </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,940: Line 3,940:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.DeleteCreatedSpawnGroups | DeleteCreatedSpawnGroups]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CPointTemplate.DeleteCreatedSpawnGroups|DeleteCreatedSpawnGroups}}
| <code>void DeleteCreatedSpawnGroups() </code>
| <code>void DeleteCreatedSpawnGroups() </code>
| DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this.
| DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.ForceSpawn | ForceSpawn]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CPointTemplate.ForceSpawn|ForceSpawn}}
| <code>void ForceSpawn() </code>
| <code>void ForceSpawn() </code>
| ForceSpawn() : Spawns all of the entities the point_template is pointing at.
| ForceSpawn() : Spawns all of the entities the point_template is pointing at.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.GetSpawnedEntities | GetSpawnedEntities]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CPointTemplate.GetSpawnedEntities|GetSpawnedEntities}}
| <code>handle GetSpawnedEntities() </code>
| <code>handle GetSpawnedEntities() </code>
| GetSpawnedEntities() : Get the list of the most recent spawned entities
| GetSpawnedEntities() : Get the list of the most recent spawned entities
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPointTemplate.SetSpawnCallback | SetSpawnCallback]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CPointTemplate.SetSpawnCallback|SetSpawnCallback}}
| <code>void SetSpawnCallback(handle a, handle b) </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,965: Line 3,965:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddImpulseAtPosition | AddImpulseAtPosition]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddImpulseAtPosition|AddImpulseAtPosition}}
| <code>void AddImpulseAtPosition(Vector a, Vector b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.AddVelocity|AddVelocity}}
| <code>void AddVelocity(Vector a, Vector b) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.DetachFromParent | DetachFromParent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.DetachFromParent|DetachFromParent}}
| <code>void DetachFromParent() </code>
| <code>void DetachFromParent() </code>
| Detach from its parent
| Detach from its parent
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.GetSequence | GetSequence]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.GetSequence|GetSequence}}
| <code><> GetSequence() </code>
| <code><> GetSequence() </code>
| Returns the active sequence
| Returns the active sequence
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.IsAttachedToParent | IsAttachedToParent]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.IsAttachedToParent|IsAttachedToParent}}
| <code>bool IsAttachedToParent() </code>
| <code>bool IsAttachedToParent() </code>
| Is attached to parent
| Is attached to parent
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.LookupSequence | LookupSequence]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.LookupSequence|LookupSequence}}
| <code><> LookupSequence(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SequenceDuration|SequenceDuration}}
| <code>float SequenceDuration(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAngularVelocity|SetAngularVelocity}}
| <code>void SetAngularVelocity(Vector a) </code>
| <code>void SetAngularVelocity(Vector a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAnimation | SetAnimation]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetAnimation|SetAnimation}}
| <code>void SetAnimation(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetBodyGroup|SetBodyGroup}}
| <code>void SetBodyGroup(string a) </code>
| <code>void SetBodyGroup(string a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetMaterialGroup | SetMaterialGroup]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetMaterialGroup|SetMaterialGroup}}
| <code>void SetMaterialGroup(utlstringtoken a) </code>
| <code>void SetMaterialGroup(utlstringtoken a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetVelocity | SetVelocity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBodyComponent.SetVelocity|SetVelocity}}
| <code>void SetVelocity(Vector velocity) </code>
| <code>void SetVelocity(Vector velocity) </code>
| No Description Set
| No Description Set
Line 4,023: Line 4,023:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentAngles | GetAttachmentAngles]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentAngles|GetAttachmentAngles}}
| <code>Vector GetAttachmentAngles(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.GetAttachmentOrigin|GetAttachmentOrigin}}
| <code>Vector GetAttachmentOrigin(int a) </code>
| <code>Vector GetAttachmentOrigin(int a) </code>
| Get the attachement id's origin ''vector''
| Get the attachement id's origin ''vector''
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.IsSequenceFinished | IsSequenceFinished]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.IsSequenceFinished|IsSequenceFinished}}
| <code>bool IsSequenceFinished() </code>
| <code>bool IsSequenceFinished() </code>
| Ask whether the main sequence is done playing
| Ask whether the main sequence is done playing
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.ScriptLookupAttachment | ScriptLookupAttachment]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.ScriptLookupAttachment|ScriptLookupAttachment}}
| <code>int ScriptLookupAttachment(string a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetBodygroup|SetBodygroup}}
| <code>void SetBodygroup(int a, int b) </code>
| <code>void SetBodygroup(int a, int b) </code>
| Sets a bodygroup
| Sets a bodygroup
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetModelScale | SetModelScale]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetModelScale|SetModelScale}}
| <code>void SetModelScale(float scale) </code>
| <code>void SetModelScale(float scale) </code>
| 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>.
| Sets the model's scale to ''scale'', <br/>so if a unit had its model scale at 1, and you use ''SetModelScale('''10.0''')'', it would set the scale to '''10.0'''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetPoseParameter | SetPoseParameter]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseAnimating.SetPoseParameter|SetPoseParameter}}
| <code>float SetPoseParameter(string a, float b) </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 4,060: Line 4,060:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseCombatCharacter.GetEquippedWeapons | GetEquippedWeapons]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseCombatCharacter.GetEquippedWeapons|GetEquippedWeapons}}
| <code>table GetEquippedWeapons() </code>
| <code>table GetEquippedWeapons() </code>
| GetEquippedWeapons() : Returns an array of all the equipped weapons
| GetEquippedWeapons() : Returns an array of all the equipped weapons
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseCombatCharacter.GetWeaponCount | GetWeaponCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseCombatCharacter.GetWeaponCount|GetWeaponCount}}
| <code>int GetWeaponCount() </code>
| <code>int GetWeaponCount() </code>
| GetWeaponCount() : Gets the number of weapons currently equipped
| GetWeaponCount() : Gets the number of weapons currently equipped
Line 4,077: Line 4,077:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateLinearProjectile | CreateLinearProjectile]]
| {{L|Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateLinearProjectile|CreateLinearProjectile}}
| <code>int CreateLinearProjectile(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/ProjectileManager.CreateTrackingProjectile|CreateTrackingProjectile}}
| <code>void CreateTrackingProjectile(handle a) </code>
| <code>void CreateTrackingProjectile(handle a) </code>
| Creates a tracking projectile
| Creates a tracking projectile
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/ProjectileManager.DestroyLinearProjectile | DestroyLinearProjectile]]
| {{L|Dota 2 Workshop Tools/Scripting/API/ProjectileManager.DestroyLinearProjectile|DestroyLinearProjectile}}
| <code>void DestroyLinearProjectile(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/ProjectileManager.ProjectileDodge|ProjectileDodge}}
| <code>void ProjectileDodge(handle a) </code>
| <code>void ProjectileDodge(handle a) </code>
| Makes the specified unit dodge projectiles
| Makes the specified unit dodge projectiles
Line 4,102: Line 4,102:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Disable | Disable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Disable|Disable}}
| <code>void Disable() </code>
| <code>void Disable() </code>
| Disable the trigger
| Disable the trigger
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Enable | Enable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.Enable|Enable}}
| <code>void Enable() </code>
| <code>void Enable() </code>
| Enable the trigger
| Enable the trigger
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.IsTouching | IsTouching]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseTrigger.IsTouching|IsTouching}}
| <code>bool IsTouching(handle a) </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,124: Line 4,124:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntity | SpawnEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntity|SpawnEntity}}
| <code>void SpawnEntity() </code>
| <code>void SpawnEntity() </code>
| Create an entity at the location of the maker
| Create an entity at the location of the maker
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtEntityOrigin | SpawnEntityAtEntityOrigin]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtEntityOrigin|SpawnEntityAtEntityOrigin}}
| <code>void SpawnEntityAtEntityOrigin(handle a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtLocation|SpawnEntityAtLocation}}
| <code>void SpawnEntityAtLocation(Vector a, Vector b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvEntityMaker.SpawnEntityAtNamedEntityOrigin|SpawnEntityAtNamedEntityOrigin}}
| <code>void SpawnEntityAtNamedEntityOrigin(string a) </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,149: Line 4,149:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAVoteSystem.StartVote | StartVote]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAVoteSystem.StartVote|StartVote}}
| <code>void StartVote(handle a) </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,162: Line 4,162:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CMarkupVolumeTagged.HasTag | HasTag]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CMarkupVolumeTagged.HasTag|HasTag}}
| <code>bool HasTag(string a) </code>
| <code>bool HasTag(string a) </code>
| Does this volume have the given tag.
| Does this volume have the given tag.
Line 4,175: Line 4,175:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.AddResource | AddResource]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.AddResource|AddResource}}
| <code>void AddResource(string a) </code>
| <code>void AddResource(string a) </code>
| Precaches a specific resource
| Precaches a specific resource
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.GetValue | GetValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptPrecacheContext.GetValue|GetValue}}
| <code>table GetValue(string a) </code>
| <code>table GetValue(string a) </code>
| Reads a spawn key
| Reads a spawn key
Line 4,192: Line 4,192:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptKeyValues.GetValue | GetValue]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptKeyValues.GetValue|GetValue}}
| <code>table GetValue(string a) </code>
| <code>table GetValue(string a) </code>
| Reads a spawn key
| Reads a spawn key
Line 4,207: Line 4,207:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticle | CreateParticle]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticle|CreateParticle}}
| <code>int CreateParticle(string particleName, int particleAttach, handle owningEntity) </code>
| <code>int CreateParticle(string particleName, int particleAttach, handle owningEntity) </code>
| Creates a new particle effect
| Creates a new particle effect
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticleForPlayer | CreateParticleForPlayer]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.CreateParticleForPlayer|CreateParticleForPlayer}}
| <code>int CreateParticleForPlayer(string particleName, int particleAttach, handle owningEntity, handle owningPlayer) </code>
| <code>int CreateParticleForPlayer(string particleName, int particleAttach, handle owningEntity, handle owningPlayer) </code>
| Creates a new particle effect that only plays for the specified player
| Creates a new particle effect that only plays for the specified player
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.GetParticleReplacement | GetParticleReplacement]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.GetParticleReplacement|GetParticleReplacement}}
| <code>string GetParticleReplacement(string a, handle b) </code>
| <code>string GetParticleReplacement(string a, handle b) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.ReleaseParticleIndex | ReleaseParticleIndex]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.ReleaseParticleIndex|ReleaseParticleIndex}}
| <code>void ReleaseParticleIndex(int particleId) </code>
| <code>void ReleaseParticleIndex(int particleId) </code>
| Frees the specified particle index
| Frees the specified particle index
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleAlwaysSimulate | SetParticleAlwaysSimulate]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleAlwaysSimulate|SetParticleAlwaysSimulate}}
| <code>void SetParticleAlwaysSimulate(int a) </code>
| <code>void SetParticleAlwaysSimulate(int a) </code>
| No Description Set
| No Description Set
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControl | SetParticleControl]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControl|SetParticleControl}}
| <code>void SetParticleControl(int particleId, int controlIndex, Vector controlData) </code>
| <code>void SetParticleControl(int particleId, int controlIndex, Vector controlData) </code>
| Set the control point data for a control on a particle effect
| Set the control point data for a control on a particle effect
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControlEnt | SetParticleControlEnt]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptParticleManager.SetParticleControlEnt|SetParticleControlEnt}}
| <code>void SetParticleControlEnt(int a, int b, handle c, int d, string e, Vector f, bool g) </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,244: Line 4,244:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetAllHeroes | GetAllHeroes]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetAllHeroes|GetAllHeroes}}
| <code>table GetAllHeroes() </code>
| <code>table GetAllHeroes() </code>
| Returns all the heroes in the world
| Returns all the heroes in the world
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHero | GetHero]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHero|GetHero}}
| <code>handle GetHero(int heroId) </code>
| <code>handle GetHero(int heroId) </code>
| Get the Nth hero in the Hero List
| Get the Nth hero in the Hero List
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHeroCount | GetHeroCount]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CScriptHeroList.GetHeroCount|GetHeroCount}}
| <code>int GetHeroCount() </code>
| <code>int GetHeroCount() </code>
| Returns the number of heroes in the world
| Returns the number of heroes in the world
Line 4,265: Line 4,265:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.AddOutput | AddOutput]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.AddOutput|AddOutput}}
| <code>void AddOutput(string a, string b) </code>
| <code>void AddOutput(string a, string b) </code>
| Add an output
| Add an output
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.Init | Init]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CNativeOutputs.Init|Init}}
| <code>void Init(int a) </code>
| <code>void Init(int a) </code>
| Initialize with number of outputs
| Initialize with number of outputs
Line 4,283: Line 4,283:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetFarRange | SetFarRange]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetFarRange|SetFarRange}}
| <code>void SetFarRange(float a) </code>
| <code>void SetFarRange(float a) </code>
| Set light maximum range
| Set light maximum range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetLinearAttenuation | SetLinearAttenuation]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetLinearAttenuation|SetLinearAttenuation}}
| <code>void SetLinearAttenuation(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetNearRange|SetNearRange}}
| <code>void SetNearRange(float a) </code>
| <code>void SetNearRange(float a) </code>
| Set light minimum range
| Set light minimum range
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetQuadraticAttenuation | SetQuadraticAttenuation]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetQuadraticAttenuation|SetQuadraticAttenuation}}
| <code>void SetQuadraticAttenuation(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CEnvProjectedTexture.SetVolumetrics|SetVolumetrics}}
| <code>void SetVolumetrics(bool a, float b, float c, int d, float e) </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,312: Line 4,312:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryColor | QueryColor]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryColor|QueryColor}}
| <code>Vector QueryColor(utlstringtoken a, Vector b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryFloat|QueryFloat}}
| <code>float QueryFloat(utlstringtoken a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryInt|QueryInt}}
| <code>int QueryInt(utlstringtoken a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryNumber|QueryNumber}}
| <code>float QueryNumber(utlstringtoken a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryString|QueryString}}
| <code>string QueryString(utlstringtoken a, string b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CInfoData.QueryVector|QueryVector}}
| <code>Vector QueryVector(utlstringtoken a, Vector b) </code>
| <code>Vector QueryVector(utlstringtoken a, Vector b) </code>
| Query ''vector'' data for this key
| Query ''vector'' data for this key
Line 4,345: Line 4,345:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPhysicsProp.DisableMotion | DisableMotion]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CPhysicsProp.DisableMotion|DisableMotion}}
| <code>void DisableMotion() </code>
| <code>void DisableMotion() </code>
| Enable motion for the prop
| Enable motion for the prop
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CPhysicsProp.EnableMotion | EnableMotion]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CPhysicsProp.EnableMotion|EnableMotion}}
| <code>void EnableMotion() </code>
| <code>void EnableMotion() </code>
| Enable motion for the prop
| Enable motion for the prop
Line 4,364: Line 4,364:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.Defeated | Defeated]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.Defeated|Defeated}}
| <code>void Defeated() </code>
| <code>void Defeated() </code>
| Kills the ancient, etc.
| Kills the ancient, etc.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.DidMatchSignoutTimeOut | DidMatchSignoutTimeOut]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.DidMatchSignoutTimeOut|DidMatchSignoutTimeOut}}
| <code>bool DidMatchSignoutTimeOut() </code>
| <code>bool DidMatchSignoutTimeOut() </code>
| true when we have waited some time after end of the game and not received signout
| true when we have waited some time after end of the game and not received signout
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetCustomGameDifficulty | GetCustomGameDifficulty]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetCustomGameDifficulty|GetCustomGameDifficulty}}
| <code>int GetCustomGameDifficulty() </code>
| <code>int GetCustomGameDifficulty() </code>
| Returns the difficulty level of the custom game mode
| Returns the difficulty level of the custom game mode
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetDifficulty | GetDifficulty]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetDifficulty|GetDifficulty}}
| <code>int GetDifficulty() </code>
| <code>int GetDifficulty() </code>
| Returns difficulty level of the custom game mode
| Returns difficulty level of the custom game mode
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetDroppedItem | GetDroppedItem]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetDroppedItem|GetDroppedItem}}
| <code>handle GetDroppedItem(int dropIndex) </code>
| <code>handle GetDroppedItem(int dropIndex) </code>
| Gets the Xth dropped item
| Gets the Xth dropped item
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetGameModeEntity | GetGameModeEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetGameModeEntity|GetGameModeEntity}}
| <code>handle GetGameModeEntity() </code>
| <code>handle GetGameModeEntity() </code>
| Get the game mode entity
| Get the game mode entity
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetGameTime | GetGameTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetGameTime|GetGameTime}}
| <code>float GetGameTime() </code>
| <code>float GetGameTime() </code>
| Returns the number of seconds elapsed since map start. This time doesn't count up when the game is paused
| Returns the number of seconds elapsed since map start. This time doesn't count up when the game is paused
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetMatchSignoutComplete | GetMatchSignoutComplete]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetMatchSignoutComplete|GetMatchSignoutComplete}}
| <code>bool GetMatchSignoutComplete() </code>
| <code>bool GetMatchSignoutComplete() </code>
| Have we received the post match signout message that includes reward information
| Have we received the post match signout message that includes reward information
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetNianFightStartTime | GetNianFightStartTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetNianFightStartTime|GetNianFightStartTime}}
| <code>float GetNianFightStartTime() </code>
| <code>float GetNianFightStartTime() </code>
| Gets the start time for the Nian fight
| Gets the start time for the Nian fight
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetNianTotalDamageTaken | GetNianTotalDamageTaken]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetNianTotalDamageTaken|GetNianTotalDamageTaken}}
| <code>int GetNianTotalDamageTaken() </code>
| <code>int GetNianTotalDamageTaken() </code>
| For New Bloom, get total damage taken by the Nian / Year Beast
| For New Bloom, get total damage taken by the Nian / Year Beast
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetTimeOfDay | GetTimeOfDay]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetTimeOfDay|GetTimeOfDay}}
| <code>float GetTimeOfDay() </code>
| <code>float GetTimeOfDay() </code>
| Get the time of day
| Get the time of day
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.IsDaytime | IsDaytime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.IsDaytime|IsDaytime}}
| <code>bool IsDaytime() </code>
| <code>bool IsDaytime() </code>
| Is it day time.
| Is it day time.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.MakeTeamLose | MakeTeamLose]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.MakeTeamLose|MakeTeamLose}}
| <code>void MakeTeamLose(int team) </code>
| <code>void MakeTeamLose(int team) </code>
| Makes ths specified team lose
| Makes ths specified team lose
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.NumDroppedItems | NumDroppedItems]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.NumDroppedItems|NumDroppedItems}}
| <code>int NumDroppedItems() </code>
| <code>int NumDroppedItems() </code>
| Returns the number of items currently dropped on the ground
| Returns the number of items currently dropped on the ground
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.Playtesting_UpdateAddOnKeyValues | Playtesting_UpdateAddOnKeyValues]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.Playtesting_UpdateAddOnKeyValues|Playtesting_UpdateAddOnKeyValues}}
| <code>void Playtesting_UpdateAddOnKeyValues() </code>
| <code>void Playtesting_UpdateAddOnKeyValues() </code>
| Updates custom hero, unit and ability KeyValues in memory with the latest values from disk
| Updates custom hero, unit and ability KeyValues in memory with the latest values from disk
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.ResetDefeated | ResetDefeated]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.ResetDefeated|ResetDefeated}}
| <code>void ResetDefeated() </code>
| <code>void ResetDefeated() </code>
| Restart after killing the ancient, etc.
| Restart after killing the ancient, etc.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.ResetToHeroSelection | ResetToHeroSelection]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.ResetToHeroSelection|ResetToHeroSelection}}
| <code>void ResetToHeroSelection() </code>
| <code>void ResetToHeroSelection() </code>
| Restart the game at hero selection
| Restart the game at hero selection
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SendCustomMessage | SendCustomMessage]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SendCustomMessage|SendCustomMessage}}
| <code>void SendCustomMessage(string message, int teamID, int unknown(1?)) </code>
| <code>void SendCustomMessage(string message, int teamID, int unknown(1?)) </code>
| 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;)
| 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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCreepMinimapIconScale|SetCreepMinimapIconScale}}
| <code>void SetCreepMinimapIconScale(float scale) </code>
| <code>void SetCreepMinimapIconScale(float scale) </code>
| Scale the creep icons on the minimap.
| Scale the creep icons on the minimap.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCustomGameDifficulty | SetCustomGameDifficulty]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCustomGameDifficulty|SetCustomGameDifficulty}}
| <code>void SetCustomGameDifficulty(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetFirstBloodActive|SetFirstBloodActive}}
| <code>void SetFirstBloodActive(bool a) </code>
| <code>void SetFirstBloodActive(bool a) </code>
| Sets whether First Blood has been triggered.
| Sets whether First Blood has been triggered.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGameWinner | SetGameWinner]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGameWinner|SetGameWinner}}
| <code>void SetGameWinner(int team) </code>
| <code>void SetGameWinner(int team) </code>
| Makes ths specified team win
| Makes ths specified team win
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldPerTick | SetGoldPerTick]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldPerTick|SetGoldPerTick}}
| <code>void SetGoldPerTick(int a) </code>
| <code>void SetGoldPerTick(int a) </code>
| Set the auto gold increase per timed interval.
| Set the auto gold increase per timed interval.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldTickTime | SetGoldTickTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetGoldTickTime|SetGoldTickTime}}
| <code>void SetGoldTickTime(float a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroMinimapIconSize | SetHeroMinimapIconSize]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroMinimapIconSize|SetHeroMinimapIconSize}}
| <code>void SetHeroMinimapIconSize(int iconSize) </code>
| <code>void SetHeroMinimapIconSize(int iconSize) </code>
| (nMinimapHeroIconSize) - Set the hero minimap icon size.
| (nMinimapHeroIconSize) - Set the hero minimap icon size.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroRespawnEnabled | SetHeroRespawnEnabled]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroRespawnEnabled|SetHeroRespawnEnabled}}
| <code>void SetHeroRespawnEnabled(bool canRespawn) </code>
| <code>void SetHeroRespawnEnabled(bool canRespawn) </code>
| Control if the normal DOTA hero respawn rules apply.
| Control if the normal DOTA hero respawn rules apply.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroSelectionTime | SetHeroSelectionTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetHeroSelectionTime|SetHeroSelectionTime}}
| <code>void SetHeroSelectionTime(float time) </code>
| <code>void SetHeroSelectionTime(float time) </code>
| Sets the amount of time players have to pick their hero.
| Sets the amount of time players have to pick their hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetNianFightStartTime | SetNianFightStartTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetNianFightStartTime|SetNianFightStartTime}}
| <code>void SetNianFightStartTime(float a) </code>
| <code>void SetNianFightStartTime(float a) </code>
| Sets the start time for the Nian fight
| Sets the start time for the Nian fight
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetOverlayHealthBarUnit | SetOverlayHealthBarUnit]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetOverlayHealthBarUnit|SetOverlayHealthBarUnit}}
| <code>void SetOverlayHealthBarUnit(handle unit, int style) </code>
| <code>void SetOverlayHealthBarUnit(handle unit, int style) </code>
| Show this unit's health on the overlay health bar
| Show this unit's health on the overlay health bar
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetPostGameTime | SetPostGameTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetPostGameTime|SetPostGameTime}}
| <code>void SetPostGameTime(float time) </code>
| <code>void SetPostGameTime(float time) </code>
| Sets the amount of time players have between the game ending and the server disconnecting them.
| Sets the amount of time players have between the game ending and the server disconnecting them.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetPreGameTime | SetPreGameTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetPreGameTime|SetPreGameTime}}
| <code>void SetPreGameTime(float time) </code>
| <code>void SetPreGameTime(float time) </code>
| Sets the amount of time players have between picking their hero and game start.
| Sets the amount of time players have between picking their hero and game start.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetRuneMinimapIconScale | SetRuneMinimapIconScale]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetRuneMinimapIconScale|SetRuneMinimapIconScale}}
| <code>void SetRuneMinimapIconScale(float scale) </code>
| <code>void SetRuneMinimapIconScale(float scale) </code>
| Scale the rune icons on the minimap.
| Scale the rune icons on the minimap.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetRuneSpawnTime | SetRuneSpawnTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetRuneSpawnTime|SetRuneSpawnTime}}
| <code>void SetRuneSpawnTime(float time) </code>
| <code>void SetRuneSpawnTime(float time) </code>
| Sets the amount of time between rune spawns.
| Sets the amount of time between rune spawns.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetSafeToLeave | SetSafeToLeave]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetSafeToLeave|SetSafeToLeave}}
| <code>void SetSafeToLeave(bool safeToLeave) </code>
| <code>void SetSafeToLeave(bool safeToLeave) </code>
| Mark this game as safe to leave.
| Mark this game as safe to leave.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetSameHeroSelectionEnabled | SetSameHeroSelectionEnabled]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetSameHeroSelectionEnabled|SetSameHeroSelectionEnabled}}
| <code>void SetSameHeroSelectionEnabled(bool enabled) </code>
| <code>void SetSameHeroSelectionEnabled(bool enabled) </code>
| When true, players can repeatedly pick the same hero.
| When true, players can repeatedly pick the same hero.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetTimeOfDay | SetTimeOfDay]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetTimeOfDay|SetTimeOfDay}}
| <code>void SetTimeOfDay(float time) </code>
| <code>void SetTimeOfDay(float time) </code>
| Set the time of day.
| Set the time of day.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetTreeRegrowTime | SetTreeRegrowTime]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetTreeRegrowTime|SetTreeRegrowTime}}
| <code>void SetTreeRegrowTime(float time) </code>
| <code>void SetTreeRegrowTime(float time) </code>
| Sets the tree regrow time in seconds.
| Sets the tree regrow time in seconds.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseBaseGoldBountyOnHeroes | SetUseBaseGoldBountyOnHeroes]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseBaseGoldBountyOnHeroes|SetUseBaseGoldBountyOnHeroes}}
| <code>void SetUseBaseGoldBountyOnHeroes(bool a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseCustomHeroXPValues|SetUseCustomHeroXPValues}}
| <code>void SetUseCustomHeroXPValues(bool a) </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).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseUniversalShopMode | SetUseUniversalShopMode]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetUseUniversalShopMode|SetUseUniversalShopMode}}
| <code>void SetUseUniversalShopMode(bool enabled) </code>
| <code>void SetUseUniversalShopMode(bool enabled) </code>
| When true, all items are available at as long as any shop is in range, including Secret Shop items
| When true, all items are available at as long as any shop is in range, including Secret Shop items
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.State_Get | State_Get]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.State_Get|State_Get}}
| <code><> State_Get() </code>
| <code><> State_Get() </code>
| Get the current Gamerules state
| Get the current Gamerules state
Line 4,537: Line 4,537:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetBloomScale | GetBloomScale]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetBloomScale|GetBloomScale}}
| <code>float GetBloomScale() </code>
| <code>float GetBloomScale() </code>
| Gets bloomscale for this tonemap controller
| Gets bloomscale for this tonemap controller
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMaxExposure | GetMaxExposure]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMaxExposure|GetMaxExposure}}
| <code>float GetMaxExposure() </code>
| <code>float GetMaxExposure() </code>
| Gets max exposure for this tonemap controller
| Gets max exposure for this tonemap controller
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMinExposure | GetMinExposure]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.GetMinExposure|GetMinExposure}}
| <code>float GetMinExposure() </code>
| <code>float GetMinExposure() </code>
| Gets min exposure for this tonemap controller
| Gets min exposure for this tonemap controller
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetBloomScale | SetBloomScale]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetBloomScale|SetBloomScale}}
| <code>void SetBloomScale(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetMaxExposure|SetMaxExposure}}
| <code>void SetMaxExposure(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CToneMapControllerComponent.SetMinExposure|SetMinExposure}}
| <code>void SetMinExposure(float a) </code>
| <code>void SetMinExposure(float a) </code>
| Sets min exposure for this tonemap controller
| Sets min exposure for this tonemap controller
Line 4,570: Line 4,570:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Axis | Axis]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Axis|Axis}}
| <code>void Axis(Vector a, Quaternion b, float c, bool d, float e) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Box|Box}}
| <code>void Box(Vector a, Vector b, int c, int d, int e, int f, bool g, float h) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.BoxAngles|BoxAngles}}
| <code>void BoxAngles(Vector a, Vector b, Vector c, Quaternion d, int e, int f, int g, int h, bool i, float j) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Capsule|Capsule}}
| <code>void Capsule(Vector a, Quaternion b, float c, float d, int e, int f, int g, int h, bool i, float j) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Circle|Circle}}
| <code>void Circle(Vector a, Quaternion b, float c, int d, int e, int f, int g, bool h, float i) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.CircleScreenOriented|CircleScreenOriented}}
| <code>void CircleScreenOriented(Vector a, float b, int c, int d, int e, int f, bool g, float h) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cone|Cone}}
| <code>void Cone(Vector a, Vector b, float c, float d, int e, int f, int g, int h, bool i, float j) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross|Cross}}
| <code>void Cross(Vector a, float b, int c, int d, int e, int f, bool g, float h) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3D|Cross3D}}
| <code>void Cross3D(Vector a, float b, int c, int d, int e, int f, bool g, float h) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Cross3DOriented|Cross3DOriented}}
| <code>void Cross3DOriented(Vector a, Quaternion b, float c, int d, int e, int f, int g, bool h, float i) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.DrawTickMarkedLine|DrawTickMarkedLine}}
| <code>void DrawTickMarkedLine(Vector a, Vector b, float c, int d, int e, int f, int g, int h, bool i, float j) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAttachments|EntityAttachments}}
| <code>void EntityAttachments(ehandle a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityAxis|EntityAxis}}
| <code>void EntityAxis(ehandle a, float b, bool c, float d) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityBounds|EntityBounds}}
| <code>void EntityBounds(ehandle a, int b, int c, int d, int e, bool f, float g) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntitySkeleton|EntitySkeleton}}
| <code>void EntitySkeleton(ehandle a, float b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.EntityText|EntityText}}
| <code>void EntityText(ehandle a, int b, string c, int d, int e, int f, int g, float h) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.FilledRect2D|FilledRect2D}}
| <code>void FilledRect2D(Vector2D a, Vector2D b, int c, int d, int e, int f, float g) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.HorzArrow|HorzArrow}}
| <code>void HorzArrow(Vector a, Vector b, float c, int d, int e, int f, int g, bool h, float i) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line|Line}}
| <code>void Line(Vector a, Vector b, int c, int d, int e, int f, bool g, float h) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Line2D|Line2D}}
| <code>void Line2D(Vector2D a, Vector2D b, int c, int d, int e, int f, float g) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PopDebugOverlayScope | PopDebugOverlayScope]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PopDebugOverlayScope|PopDebugOverlayScope}}
| <code>void PopDebugOverlayScope() </code>
| <code>void PopDebugOverlayScope() </code>
| Pops the identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
| Pops the identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushAndClearDebugOverlayScope | PushAndClearDebugOverlayScope]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushAndClearDebugOverlayScope|PushAndClearDebugOverlayScope}}
| <code>void PushAndClearDebugOverlayScope(utlstringtoken a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.PushDebugOverlayScope|PushDebugOverlayScope}}
| <code>void PushDebugOverlayScope(utlstringtoken a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.RemoveAllInScope|RemoveAllInScope}}
| <code>void RemoveAllInScope(utlstringtoken a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SolidCone|SolidCone}}
| <code>void SolidCone(Vector a, Vector b, float c, float d, int e, int f, int g, int h, bool i, float j) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Sphere|Sphere}}
| <code>void Sphere(Vector a, float b, int c, int d, int e, int f, bool g, float h) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.SweptBox|SweptBox}}
| <code>void SweptBox(Vector a, Vector b, Vector c, Vector d, Quaternion e, int f, int g, int h, int i, float j) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Text|Text}}
| <code>void Text(Vector a, int b, string c, float d, int e, int f, int g, int h, float i) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Texture|Texture}}
| <code>void Texture(string a, Vector2D b, Vector2D c, int d, int e, int f, int g, Vector2D h, Vector2D i, float j) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.Triangle|Triangle}}
| <code>void Triangle(Vector a, Vector b, Vector c, int d, int e, int f, int g, bool h, float i) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.UnitTestCycleOverlayRenderType | UnitTestCycleOverlayRenderType]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.UnitTestCycleOverlayRenderType|UnitTestCycleOverlayRenderType}}
| <code>void UnitTestCycleOverlayRenderType() </code>
| <code>void UnitTestCycleOverlayRenderType() </code>
| Toggles the overlay render type, for unit tests
| Toggles the overlay render type, for unit tests
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VectorText3D | VectorText3D]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VectorText3D|VectorText3D}}
| <code>void VectorText3D(Vector a, Quaternion b, string c, int d, int e, int f, int g, bool h, float i) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.VertArrow|VertArrow}}
| <code>void VertArrow(Vector a, Vector b, float c, int d, int e, int f, int g, bool h, float i) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CDebugOverlayScriptHelper.YawArrow|YawArrow}}
| <code>void YawArrow(Vector a, float b, float c, float d, int e, int f, int g, int h, bool i, float j) </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,716: Line 4,716:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetCurrentScene | GetCurrentScene]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetCurrentScene|GetCurrentScene}}
| <code>handle GetCurrentScene() </code>
| <code>handle GetCurrentScene() </code>
| Returns the instance of the oldest active scene entity '''(if any).
| Returns the instance of the oldest active scene entity '''(if any).
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetSceneByIndex | GetSceneByIndex]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CBaseFlex.GetSceneByIndex|GetSceneByIndex}}
| <code>handle GetSceneByIndex(int a) </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,734: Line 4,734:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.AddBroadcastTeamTarget | AddBroadcastTeamTarget]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.AddBroadcastTeamTarget|AddBroadcastTeamTarget}}
| <code>void AddBroadcastTeamTarget(int a) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Cancel | Cancel]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Cancel|Cancel}}
| <code>void Cancel() </code>
| <code>void Cancel() </code>
| Cancel scene playback
| Cancel scene playback
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.EstimateLength | EstimateLength]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.EstimateLength|EstimateLength}}
| <code>float EstimateLength() </code>
| <code>float EstimateLength() </code>
| Returns length of this scene in seconds.
| Returns length of this scene in seconds.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindCamera | FindCamera]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindCamera|FindCamera}}
| <code>handle FindCamera() </code>
| <code>handle FindCamera() </code>
| Get the camera
| Get the camera
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindNamedEntity | FindNamedEntity]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.FindNamedEntity|FindNamedEntity}}
| <code>handle FindNamedEntity(string a) </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
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPaused | IsPaused]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPaused|IsPaused}}
| <code>bool IsPaused() </code>
| <code>bool IsPaused() </code>
| If this scene is currently paused.
| If this scene is currently paused.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPlayingBack | IsPlayingBack]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.IsPlayingBack|IsPlayingBack}}
| <code>bool IsPlayingBack() </code>
| <code>bool IsPlayingBack() </code>
| If this scene is currently playing.
| If this scene is currently playing.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/CSceneEntity.LoadSceneFromString | LoadSceneFromString]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.LoadSceneFromString|LoadSceneFromString}}
| <code>bool LoadSceneFromString(string a, string b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.RemoveBroadcastTeamTarget|RemoveBroadcastTeamTarget}}
| <code>void RemoveBroadcastTeamTarget(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/CSceneEntity.Start|Start}}
| <code>void Start(handle a) </code>
| <code>void Start(handle a) </code>
| Start scene playback, takes activatorEntity as param
| Start scene playback, takes activatorEntity as param
Line 4,783: Line 4,783:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterX | GridPosToWorldCenterX]]
| {{L|Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterX|GridPosToWorldCenterX}}
| <code>float GridPosToWorldCenterX(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/GridNav.GridPosToWorldCenterY|GridPosToWorldCenterY}}
| <code>float GridPosToWorldCenterY(int a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/GridNav.IsBlocked|IsBlocked}}
| <code>bool IsBlocked(Vector a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/GridNav.IsNearbyTree|IsNearbyTree}}
| <code>bool IsNearbyTree(Vector position, float radius, bool c) </code>
| <code>bool IsNearbyTree(Vector position, float radius, bool c) </code>
|   
|   
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.IsTraversable | IsTraversable]]
| {{L|Dota 2 Workshop Tools/Scripting/API/GridNav.IsTraversable|IsTraversable}}
| <code>bool IsTraversable(Vector a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/GridNav.RegrowAllTrees|RegrowAllTrees}}
| <code>void RegrowAllTrees() </code>
| <code>void RegrowAllTrees() </code>
|   
|   
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosX | WorldToGridPosX]]
| {{L|Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosX|WorldToGridPosX}}
| <code>int WorldToGridPosX(float a) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/GridNav.WorldToGridPosY|WorldToGridPosY}}
| <code>int WorldToGridPosY(float a) </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,826: Line 4,826:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetBool | GetBool]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.GetBool|GetBool}}
| <code>table GetBool(string variableName) </code>
| <code>table GetBool(string variableName) </code>
| GetBool(name) : returns the convar as a boolean flag.
| GetBool(name) : returns the convar as a boolean flag.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetCommandClient | GetCommandClient]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.GetCommandClient|GetCommandClient}}
| <code>handle GetCommandClient() </code>
| <code>handle GetCommandClient() </code>
| GetCommandClient() : returns the player who issued this console command.
| GetCommandClient() : returns the player who issued this console command.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetDOTACommandClient | GetDOTACommandClient]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.GetDOTACommandClient|GetDOTACommandClient}}
| <code>handle GetDOTACommandClient() </code>
| <code>handle GetDOTACommandClient() </code>
| GetDOTACommandClient() : returns the DOTA player who issued this console command.
| GetDOTACommandClient() : returns the DOTA player who issued this console command.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetFloat | GetFloat]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.GetFloat|GetFloat}}
| <code>table GetFloat(string name) </code>
| <code>table GetFloat(string name) </code>
| GetFloat(name) : returns the convar as a ''float''. May return ''nil'' if no such convar.
| GetFloat(name) : returns the convar as a ''float''. May return ''nil'' if no such convar.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetInt | GetInt]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.GetInt|GetInt}}
| <code>table GetInt(string a) </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.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.GetStr | GetStr]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.GetStr|GetStr}}
| <code>table GetStr(string variableName) </code>
| <code>table GetStr(string variableName) </code>
| GetStr(name) : returns the convar as a ''string''. May return ''nil'' if no such convar.
| GetStr(name) : returns the convar as a ''string''. May return ''nil'' if no such convar.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.RegisterCommand | RegisterCommand]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.RegisterCommand|RegisterCommand}}
| <code>void RegisterCommand(string variableName, handle function, string helpText, int flags) </code>
| <code>void RegisterCommand(string variableName, handle function, string helpText, int flags) </code>
| RegisterCommand(name, fn, helpString, flags) : register a console command.
| RegisterCommand(name, fn, helpString, flags) : register a console command.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.RegisterConvar | RegisterConvar]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.RegisterConvar|RegisterConvar}}
| <code>void RegisterConvar(string name, string defaultValue, string helpText, int flags) </code>
| <code>void RegisterConvar(string name, string defaultValue, string helpText, int flags) </code>
| RegisterConvar(name, defaultValue, helpString, flags): register a new console variable.
| RegisterConvar(name, defaultValue, helpString, flags): register a new console variable.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetBool | SetBool]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.SetBool|SetBool}}
| <code>void SetBool(string variableName, bool value) </code>
| <code>void SetBool(string variableName, bool value) </code>
| SetBool(name, val) : sets the value of the convar to the ''bool''.
| SetBool(name, val) : sets the value of the convar to the ''bool''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetFloat | SetFloat]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.SetFloat|SetFloat}}
| <code>void SetFloat(string variableName, float value) </code>
| <code>void SetFloat(string variableName, float value) </code>
| SetFloat(name, val) : sets the value of the convar to the ''float''.
| SetFloat(name, val) : sets the value of the convar to the ''float''.
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Convars.SetInt | SetInt]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.SetInt|SetInt}}
| <code>void SetInt(string a, int b) </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]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Convars.SetStr|SetStr}}
| <code>void SetStr(string a, string b) </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''.
Line 4,885: Line 4,885:
! Description  
! Description  
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.__add | __add]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.__add|__add}}
| <code>Vector __add(Vector a, Vector b) </code>
| <code>Vector __add(Vector a, Vector b) </code>
| Overloaded +.  Adds vectors together
| Overloaded +.  Adds vectors together
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.__div | __div]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.__div|__div}}
| <code>Vector __div(Vector a, Vector b) </code>
| <code>Vector __div(Vector a, Vector b) </code>
| Overloaded /.  Divides vectors
| Overloaded /.  Divides vectors
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.__eq | __eq]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.__eq|__eq}}
| <code>bool __eq(Vector a, Vector b) </code>
| <code>bool __eq(Vector a, Vector b) </code>
| Overloaded ==.  Tests for Equality
| Overloaded ==.  Tests for Equality
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.__len | __len]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.__len|__len}}
| <code>float __len() </code>
| <code>float __len() </code>
| Overloaded # returns the length of the vector
| Overloaded # returns the length of the vector
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.__mul | __mul]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.__mul|__mul}}
| <code>Vector __mul(Vector a, Vector b) </code>
| <code>Vector __mul(Vector a, Vector b) </code>
| Overloaded * returns the vectors multiplied together
| Overloaded * returns the vectors multiplied together
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.__sub | __sub]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.__sub|__sub}}
| <code>Vector __sub(Vector a, Vector b) </code>
| <code>Vector __sub(Vector a, Vector b) </code>
| Overloaded -.  Subtracts vectors
| Overloaded -.  Subtracts vectors
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.__tostring | __tostring]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.__tostring|__tostring}}
| <code>string __tostring() </code>
| <code>string __tostring() </code>
| Overloaded .. Converts vectors to strings
| Overloaded .. Converts vectors to strings
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector._unm | _unm]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector._unm|_unm}}
| <code>Vector _unm() </code>
| <code>Vector _unm() </code>
| Overloaded - operator
| Overloaded - operator
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.Cross | Cross]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.Cross|Cross}}
| <code>Vector Cross(Vector a, Vector b) </code>
| <code>Vector Cross(Vector a, Vector b) </code>
| Cross product of two vectors
| Cross product of two vectors
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.Dot | Dot]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.Dot|Dot}}
| <code>float Dot(Vector a, Vector b) </code>
| <code>float Dot(Vector a, Vector b) </code>
| Dot product of two vectors
| Dot product of two vectors
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.Length | Length]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.Length|Length}}
| <code>float Length() </code>
| <code>float Length() </code>
| Length of the Vector
| Length of the Vector
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.Length2D | Length2D]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.Length2D|Length2D}}
| <code>float Length2D() </code>
| <code>float Length2D() </code>
| Length of the Vector in the XY plane
| Length of the Vector in the XY plane
|-
|-
| [[Dota 2 Workshop Tools/Scripting/API/Vector.Normalized | Normalized]]
| {{L|Dota 2 Workshop Tools/Scripting/API/Vector.Normalized|Normalized}}
| <code>Vector Normalized() </code>
| <code>Vector Normalized() </code>
| Returns the vector normalized
| Returns the vector normalized
|}
|}
{{shortpagetitle}}
[[Category: Dota 2 Workshop Tools]]

Latest revision as of 07:23, 11 July 2024

Note.pngПримечание: This page is automatically generated. Any changes may be overwritten

Доступ к API сценариям DOTA 2 из Lua

| Lua является языком с Динамической типизацией, движок Dota 2 в основном написан на C++,и он является Статически типизированным. Таким образом,при вызове API вам нужно будет знать свои типы данных.
(Если вы попытаетесь передать неправильный тип функции API, вы получите сообщение об ошибке в Vconsole.)

Глобальные

Глобальные функции. Они могут быть вызваны без какого-либо класса

Функции Сигнатура Описание
AddFOWViewer(en) Есть пример. void AddFOWViewer(int int_1, Vector Vector_2, float float_3, float float_4, bool bool_5) Добавить временный обзор (засвет) для конкретной команды ( nTeamID, vLocation, flRadius, flDuration, bObstructedVision)
AngleDiff(en) Есть пример. float AngleDiff(float ang1, float ang2) Возвращает(просчитывает,выводит,показывает)разность двух углов.
AppendToLogFile(en) void AppendToLogFile(string string_1, string string_2) Добавление string в LogFile на сервер.
ApplyDamage(en) Есть пример. float ApplyDamage(handle DamageTable) Применить урон по юниту с вводными таблицы :victim, attacker, damage, damage_type, damage_flags, ability
AxisAngleToQuaternion(en) Quaternion AxisAngleToQuaternion(Vector Vector_1, float float_2) (vector,float) строит кватернион, представляющий поворот на угол вокруг указанной векторной оси.
CalcClosestPointOnEntityOBB(en) Пример. Vector CalcClosestPointOnEntityOBB(handle handle_1, Vector Vector_2) Вычисляет ближайшую точку OBB объекта.
CalcDistanceBetweenEntityOBB(en) Пример. float CalcDistanceBetweenEntityOBB(handle handle_1, handle handle_2) Вычисляет расстояние между двумя объектами OBB.Отрицательное возвращаемое значение указывает на ошибку ввода.Возвращаемое значение нуля указывает, что OBB перекрывают друг-друга.
CalcDistanceToLineSegment2D(en) float CalcDistanceToLineSegment2D(Vector vector_1, Vector vector_2, Vector vector_3) Вычисляет расстояние от точки до линии сегмента.
CancelEntityIOEvents(en) void CancelEntityIOEvents(ehandle ehandle_1) Создает все входящие и исходящие события, для определенного объекта.
ClearTeamCustomHealthbarColor(en) Пример. void ClearTeamCustomHealthbarColor(int int_1) Очистить индивидуальный цвет хилбара( teamNumber - использовать номер команды )
CreateEffect(en) bool CreateEffect(handle handle_1) Передает в таблицу - вводные данные о : entity, effect
CreateHeroForPlayer(en) handle CreateHeroForPlayer(string unitName, handle player) Создает героя Доты в соответствии с прописанным именем и сетом в dota_npc_units.txt и устанавливает его,как управляемого игроком героя.
CreateHTTPRequestScriptVM(en) Пример. handle CreateHTTPRequestScriptVM(string string_1, string string_2) Создайте HTTP-запрос. Недавно переименован из CreateHTTPRequest.
CreateItem(en) handle CreateItem(string item_name, handle owner, handle owner) Создает элемент с именем класса item_name, которую owner(владелец) может использовать.
CreateItemOnPositionForLaunch(en) Пример. handle CreateItemOnPositionForLaunch(Vector Vector_1, handle handle_2) Создает физический элемент в заданном месте, может появится в воздухе (но не замещает собой пространство)
CreateItemOnPositionSync(en) handle CreateItemOnPositionSync(Vector Vector_1, handle handle_2) Создает физического объекта в заданном месте.
CreateModifierThinker(en) Пример. handle CreateModifierThinker(handle handle_1, handle handle_2, string string_3, handle handle_4, Vector Vector_5, int int_6, bool bool_7) Создает модификатор, не связанный с NPC. ( hCaster, hAbility, modifierName, paramTable, vOrigin, nTeamNumber, bPhantomBlocker )
CreateTempTree(en) Пример. void CreateTempTree(Vector Vector_1, float float_2) Создает временно существующее дерево.

(vLocation-(Место) flDuration-(Продолжительность)).

CreateTrigger(en) handle CreateTrigger(Vector Vector_1, Vector Vector_2, Vector Vector_3) Создает Trigger( vecMin, vecMax ) : Создает AABB trigger
CreateTriggerRadiusApproximate(en) handle CreateTriggerRadiusApproximate(Vector Vector_1, float float_2) CreateTriggerRadiusApproximate( vecOrigin, flRadius ) :Создает и убирает триггер AABB, размер которого больше предусмотренного радиуса.
CreateUnitByName(en) handle CreateUnitByName(string string_1, Vector Vector_2, bool bool_3, handle handle_4, handle handle_5, int int_6) Создает юнита Доты в соответствии с прописанными настройками в dota_npc_units.txt( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
CreateUnitByNameAsync(en) int CreateUnitByNameAsync(string string_1, Vector Vector_2, bool bool_3, handle handle_4, handle handle_5, int int_6, handle handle_7) Создает юнита Доты в соответствии с прописанными настройками в dota_npc_units.txt Тоже самое что и выше,только с одной дополнительной функцией.

( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )

CreateUnitFromTable(en) handle CreateUnitFromTable(handle handle_1, Vector Vector_2) Создает новый объект, управляемый данными, с указанной таблицей.
cvar_getf(en) float cvar_getf(string string_1) Возвращает значение данного cvar как float.
cvar_setf(en) bool cvar_setf(string string_1, float float_2) Устанавливает значение данного cvar как float.
DebugBreak(en) void DebugBreak() Пауза в отладчике
DebugDrawBox(en) void DebugDrawBox(Vector origin, Vector min, Vector max, int r, int g, int b, int a, float duration) Рисует бокс наложения отладки.
DebugDrawBoxDirection(en) void DebugDrawBoxDirection(Vector Vector_1, Vector Vector_2, Vector Vector_3, Vector Vector_4, Vector Vector_5, float float_6, float float_7) Рисует бокс наложения отладки по направлению.(cent, min, max, forward, vRgb, a, duration)
DebugDrawCircle(en) void DebugDrawCircle(Vector Vector_1, Vector Vector_2, float float_3, float float_4, bool bool_5, float float_6) Рисует круг отладки. (center, vRgb, a, rad, ztest, duration)
DebugDrawClear(en) void DebugDrawClear() Удаляет все отладочные наложения.
DebugDrawLine(en) void DebugDrawLine(Vector Vector_1, Vector Vector_2, int int_3, int int_4, int int_5, bool bool_6, float float_7) Рисует линию отладки. (origin, target, r, g, b, ztest, duration)
DebugDrawLine_vCol(en) void DebugDrawLine_vCol(Vector Vector_1, Vector Vector_2, Vector Vector_3, bool bool_4, float float_5) Рисует линию отладки используя цвет vec.(start, end, vRgb, a, ztest, duration)
DebugDrawScreenTextLine(en) void DebugDrawScreenTextLine(float float_1, float float_2, int int_3, string string_4, int int_5, int int_6, int int_7, int int_8, float float_9) Рисует линию отладки с текстом над ней. (x, y, lineOffset, text, r, g, b, a, duration)
DebugDrawSphere(en) void DebugDrawSphere(Vector Vector_1, Vector Vector_2, float float_3, float float_4, bool bool_5, float float_6) Рисует сферу отладки.(center, vRgb, a, rad, ztest, duration)
DebugDrawText(en) void DebugDrawText(Vector Vector_1, string string_2, bool bool_3, float float_4) Рисует текст в 3D.(origin, text, bViewCheck, duration)
DebugScreenTextPretty(en) void DebugScreenTextPretty(float float_1, float float_2, int int_3, string string_4, int int_5, int int_6, int int_7, int int_8, float float_9, string string_10, int int_11, bool bool_12) Рисует приятный отладочный текст. (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
DoCleaveAttack(en) Пример. int DoCleaveAttack(handle handle_1, handle handle_2, handle handle_3, float float_4, float float_5, string string_6) (hAttacker, hTarget, hAbility, fDamage, fStartRadius, fEndRadius, fDistance, effectName)
DoEntFire(en) void DoEntFire(string string_1, string string_2, string string_3, float float_4, handle handle_5, handle handle_6) EntFire: Создает события ввода / вывода объекта ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
DoEntFireByInstanceHandle(en) void DoEntFireByInstanceHandle(handle handle_1, string string_2, string string_3, float float_4, handle handle_5, handle handle_6) EntFireByHandle:Создает события ввода / вывода объекта
DoIncludeScript(en) bool DoIncludeScript(string string_1, handle handle_2) Выполнить скрипт (внутренний)
DoScriptAssert(en) void DoScriptAssert(bool bool_1, string string_2) ScriptAssert:Задает переданное значение которое является Assert-Утверждение. Входящие данные являются числовыми, выводятся данные и отображаются в диалоговом окне подтверждения.
DoUniqueString(en) string DoUniqueString(string string_1) UniqueString:Создание строки, которая гарантирует уникальность во время выполнения сценария VM, сценария с необязательной корневой строкой. Полезен для добавления данных в таблицу, если неизвестно, какие ключи уже используются в этой таблице.
EmitAnnouncerSound(en) Пример. void EmitAnnouncerSound(string string_1) Воспроизвести голос спикера для всех игроков.
EmitAnnouncerSoundForPlayer(en) Пример. void EmitAnnouncerSoundForPlayer(string string_1, int int_2) Воспроизвести голос спикера для игрока.
EmitAnnouncerSoundForTeam(en) Пример. void EmitAnnouncerSoundForTeam(string string_1, int int_2) Воспроизвести голос спикера для команды.
EmitAnnouncerSoundForTeamOnLocation(en) Пример. void EmitAnnouncerSoundForTeamOnLocation(string string_1, int int_2, Vector Vector_3) Воспроизвести голос спикера для команды в определенном месте.
EmitGlobalSound(en) void EmitGlobalSound(string string_1) Воспроизвести звук с определенным названием для всех игроков.
EmitSoundOn(en) void EmitSoundOn(string string_1, handle handle_2) Воспроизвести звук с определенным названием.
EmitSoundOnClient(en) void EmitSoundOnClient(string string_1, handle handle_2) Воспроизвести звук с определенным названием для данного игрока.
EmitSoundOnLocationForAllies(en) Пример. void EmitSoundOnLocationForAllies(Vector Vector_1, string string_2, handle handle_3) Воспроизведение звука в месте нахождения юнита,слышат только союзники. (vLocation, soundName, hCaster
EmitSoundOnLocationWithCaster(en) Пример. void EmitSoundOnLocationWithCaster(Vector Vector_1, string string_2, handle handle_3) Воспроизведение звука в месте нахождения юнита. (vLocation, soundName, hCaster).
EntIndexToHScript(en) handle EntIndexToHScript(int int_1) Преобразует целочисленный индекс объекта в HScript,который представляет собой,сценарий данного объекта.
ExecuteOrderFromTable(en) Пример. void ExecuteOrderFromTable(handle handle_1) Выполняет запрос из таблицы скриптов.
ExponentialDecay(en) float ExponentialDecay(float float_1, float float_2, float float_3) Сглаживание кривой,становится медленнее,при приближается к нулю.
FileToString(en) Читать обязательно. string FileToString(string a) Считывает string строчные данные из файла,для отправки в скрипт.
FindClearSpaceForUnit(en) bool FindClearSpaceForUnit(handle handle_1, Vector Vector_2, bool bool_3) Размещает юнит в пустом (не занятом) месте.
FindUnitsInRadius(en) Пример. table FindUnitsInRadius(int teamNumber, Vector position, handle cacheUnit, float radius, int teamFilter, int typeFilter, int flagFilter, int order, bool canGrowCache) Поиск юнитов в заданном радиусе по заданным флагам(критериям). ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
FindUnitsInLine(en) Пример. table FindUnitsInLine(int teamNumber, Vector vStartPos, Vector vEndPos, handle cacheUnit, float width, int teamFilter, int typeFilter, int flagFilter) Поиск юнитов в заданном векторе по заданным флагам(критериям) ( iTeamNumber, vStartPos, vEndPos, hCacheUnit, flWidth, iTeamFilter, iTypeFilter, iFlagFilter)
FireEntityIOInputNameOnly(en) void FireEntityIOInputNameOnly(ehandle ehandle_1, string string_2) Запускает элемент действие объекта,предмета без вводных данных.
FireEntityIOInputString(en) void FireEntityIOInputString(ehandle ehandle_1, string string_2, string string_3) Запускает элемент действие объекта,предмета с заданной последовательностью - при доступной памяти.
FireEntityIOInputVec(en) void FireEntityIOInputVec(ehandle ehandle_1, string string_2, Vector Vector_3) Запускает элемент действие объекта,предмета с выбранным вектором Vector ( hEntity, szActionName, vector )
FireGameEvent(en) void FireGameEvent(string eventName, handle parameterTable) Запускает заранее определенное событие, которое можно найти в custom_events.txt либо в dota's resource/*.res
FireGameEventLocal(en) void FireGameEventLocal(string string_1, handle handle_2) Запускает игровое событие без трансляции на клиент игры.
FrameTime(en) float FrameTime() Выдает время потраченное на сервере за последний период.
GetEntityIndexForTreeId(en) Пример. <unknown> GetEntityIndexForTreeId(unsigned unsigned_1) Выдает индекс объекта для идентификации в структуре,указанную как entindex_target из DOTA_UNIT_ORDER_CAST_TARGET_TREE.
GetFrameCount(en) int GetFrameCount() Показывает текущее количество кадров.
GetFrostyBoostAmount(en) float GetFrostyBoostAmount(int a, int b) No Description Set
GetFrostyPointsForRound(en) int GetFrostyPointsForRound(int a, int b, int c) No Description Set
GetGoldFrostyBoostAmount(en) float GetGoldFrostyBoostAmount(int a, int b) No Description Set
GetGoldFrostyPointsForRound(en) int GetGoldFrostyPointsForRound(int a, int b, int c) No Description Set
GetGroundPosition(en) 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(en) handle GetListenServerHost() Get the local player on a listen server.
GetMapName(en) string GetMapName() Get the name of the map.
GetMaxOutputDelay(en) float GetMaxOutputDelay(ehandle a, string b) Get the longest delay for all events attached to an output
GetPhysAngularVelocity(en) Vector GetPhysAngularVelocity(handle a) Get Angular Velocity for VPHYS or normal object
GetPhysVelocity(en) Vector GetPhysVelocity(handle a) Get Velocity for VPHYS or normal object
GetSystemDate(en) string GetSystemDate() Get the current real world date
GetSystemTime(en) string GetSystemTime() Get the current real world time
GetWorldMaxX(en) float GetWorldMaxX() Gets the world's maximum X position.
GetWorldMaxY(en) float GetWorldMaxY() Gets the world's maximum Y position.
GetWorldMinX(en) float GetWorldMinX() Gets the world's minimum X position.
GetWorldMinY(en) float GetWorldMinY() Gets the world's minimum Y position.
InitLogFile(en) 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(en) bool IsDedicatedServer() Returns true if this server is a dedicated server.
IsMarkedForDeletion(en) bool IsMarkedForDeletion(handle a) Returns true if the entity is valid and marked for deletion.
IsValidEntity(en) bool IsValidEntity(handle a) Checks to see if the given hScript is a valid entity
ListenToGameEvent(en) int ListenToGameEvent(string EventName, handle functionNameToCall, handle context) Register as a listener for a game event from script.
Tip.pngСовет:In addition to listening for standard engine events(en), you can also create your own events by placing them in /scripts/custom_events.txt.
LoadKeyValues(en) table LoadKeyValues(string a) Creates a table from the specified keyvalues text file
LoadKeyValuesFromString(en) table LoadKeyValuesFromString(string a) Creates a table from the specified keyvalues string
MakeStringToken(en) int MakeStringToken(string a) Checks to see if the given hScript is a valid entity
Msg(en) void Msg(string a) Print a message
PauseGame(en) void PauseGame(bool a) Pause or unpause the game.
PlayerInstanceFromIndex(en) handle PlayerInstanceFromIndex(int a) Get a script instance of a player by index.
PrecacheEntityFromTable(en) void PrecacheEntityFromTable(string a, handle b, handle c) Precache an entity from KeyValues in table
PrecacheEntityListFromTable(en) void PrecacheEntityListFromTable(handle a, handle b) Precache a list of entity KeyValues table's
PrecacheItemByNameAsync(en) 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(en) void PrecacheItemByNameSync(string a, handle b) Precaches a DOTA item by its dota_npc_items.txt name
PrecacheModel(en) void PrecacheModel(string a, handle b) ( modelName, context ) - Manually precache a single model
PrecacheResource(en) void PrecacheResource(string a, string b, handle c) Manually precache a single resource
PrecacheUnitByNameAsync(en) 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(en) void PrecacheUnitByNameSync(string a, handle b) Precaches a DOTA unit by its dota_npc_units.txt name
PrintLinkedConsoleMessage(en) void PrintLinkedConsoleMessage(string a, string b) Print a console message with a linked console command
RandomFloat(en) float RandomFloat(float a, float b) Get a random float within a range
RandomInt(en) int RandomInt(int a, int b) Get a random int within a range
RandomVector(en) Vector RandomVector(float maxLength) Get a random 2D vector
RegisterSpawnGroupFilterProxy(en) void RegisterSpawnGroupFilterProxy(string a) Create a C proxy for a script-based spawn group filter
ReloadMOTD(en) void ReloadMOTD() Reloads the MotD file
RemoveSpawnGroupFilterProxy(en) void RemoveSpawnGroupFilterProxy(string a) Remove the C proxy for a script-based spawn group filter
RollPercentage(en) 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(en) QAngle RotateOrientation(QAngle a, QAngle b) Rotate a QAngle by another QAngle.
RotatePosition(en) Vector RotatePosition(Vector a, QAngle b, Vector c) Rotate a Vector around a point.
RotateQuaternionByAxisAngle(en) Quaternion RotateQuaternionByAxisAngle(Quaternion a, Vector b, float c) Rotates a quaternion by the specified angle around the specified vector axis
RotationDelta(en) QAngle RotationDelta(QAngle a, QAngle b) Find the delta between two QAngles.
rr_AddDecisionRule(en) bool rr_AddDecisionRule(handle a) Add a rule to the decision database.
rr_CommitAIResponse(en) 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(en) handle rr_GetResponseTargets() Retrieve a table of all available expresser targets, in the form { name : handle, name: handle }.
rr_QueryBestResponse(en) 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(en) void Say(handle entity, string message, bool teamOnly) Have Entity say string, and teamOnly or not
ScreenShake(en) 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(en) void SendFrostivusTimeElapsedToGC() No Description Set
SendFrostyPointsMessageToGC(en) void SendFrostyPointsMessageToGC(handle a) No Description Set
SendToConsole(en) void SendToConsole(string a) Send a string to the console as a client command
SendToServerConsole(en) void SendToServerConsole(string a) Send a string to the console as a server command
SetOpvarFloatAll(en) void SetOpvarFloatAll(string a, string b, string c, float d) Sets an opvar value for all players
SetOpvarFloatPlayer(en) 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(en) void SetQuestName(string a) Set the current quest name.
SetQuestPhase(en) void SetQuestPhase(int a) Set the current quest phase.
SetRenderingEnabled(en) void SetRenderingEnabled(ehandle a, bool b) Set rendering on/off for an ehandle
ShowGenericPopup(en) void ShowGenericPopup(string title, string content, string unknown, string unknown, int containerType) Shows a generic popup to all users
ShowGenericPopupToPlayer(en) void ShowGenericPopupToPlayer(handle a, string b, string c, string d, string e, int f) Show a generic popup dialog to a specific player.
ShowMessage(en) void ShowMessage(string a) Print a hud message on all clients
SpawnEntityFromTableSynchronous(en) handle SpawnEntityFromTableSynchronous(string a, handle b) Synchronously spawns a single entity from a table
SpawnEntityGroupFromTable(en) bool SpawnEntityGroupFromTable(handle groupSpawnTables, bool bAsync, handle hCallback) Hierarchically spawn an entity group from a set of spawn tables.
SpawnEntityListFromTableAsynchronous(en) 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(en) handle SpawnEntityListFromTableSynchronous(handle a) Synchronously spawn an entity group from a list of spawn table's.
SplineQuaternions(en) Quaternion SplineQuaternions(Quaternion a, Quaternion b, float c) (quaternion,quaternion,float) very basic interpolation of v0 to v1 over t on [0,1]
SplineVectors(en) Vector SplineVectors(Vector a, Vector b, float c) (vector,vector,float) very basic interpolation of v0 to v1 over t on [0,1]
StartSoundEvent(en) void StartSoundEvent(string a, handle b) Start a sound event
StopEffect(en) void StopEffect(handle a, string b) (hEntity, szEffectName)
StopListeningToAllGameEvents(en) void StopListeningToAllGameEvents(handle a) Stop listening to all game events within a specific context.
StopListeningToGameEvent(en) bool StopListeningToGameEvent(int a) Stop listening to a particular game event.
StopSoundEvent(en) void StopSoundEvent(string a, handle b) Stops a sound event
StopSoundOn(en) void StopSoundOn(string soundName, handle playingEntity) Stop named sound on Entity
StringToFile(en) bool StringToFile(string a, string b) * Directory traversal doesn't seem to work. The characters '.', '/' and '\\' are ignored.
  • The file name cannot be blank, nor can it consist only of the ignored characters, else the function will do nothing and return false.
  • Only one string can be stored at a time, the file is overwritten to at every call.
  • The file ends with a NUL character.
  • The files are stored at C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota_ugc\game\dota\ems
  • The function is used in conjunction with FileToString(en)
Time(en) float Time() Get the current server time
TraceCollideable(en) bool TraceCollideable(handle a) Pass table - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
TraceHull(en) bool TraceHull(handle a) Pass table - Inputs: start, end, min, max, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
TraceLine(en) bool TraceLine(handle a) Pass table - Inputs: startpos, endpos, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
UnloadSpawnGroup(en) void UnloadSpawnGroup(string a) Unload a spawn group by name
UnloadSpawnGroupByHandle(en) void UnloadSpawnGroupByHandle(int a) Unload a spawn group by handle
UpdateEventPoints(en) void UpdateEventPoints(handle a) No Description Set
UTIL_Remove(en) void UTIL_Remove(handle a) Removes the specified entity
UTIL_RemoveImmediate(en) void UTIL_RemoveImmediate(handle a) Immediately removes the specified entity
VectorToAngles(en) QAngle VectorToAngles(Vector a) Get Qangles (with no roll) for a Vector.
Warning(en) void Warning(string a) Print a warning

CBaseEntity

The base class for stuff

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


CEntities

No Description Set

Global accessor variable: Entities

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


CEntityInstance

extends CBaseEntity

No Description Set

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


CDOTABaseAbility

extends CBaseEntity

No Description Set

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


CDOTA_Ability_Animation_Attack

extends CDOTABaseAbility

No Description Set

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


CDOTA_Ability_Animation_TailSpin

extends CDOTABaseAbility

No Description Set

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


CDOTA_Ability_Nian_Leap

extends CDOTABaseAbility

No Description Set

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


CDOTA_Ability_Nian_Dive

extends CDOTABaseAbility

No Description Set

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


CDOTA_Ability_Nian_Roar

extends CDOTABaseAbility

No Description Set

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


CDOTA_Item

extends CDOTABaseAbility

No Description Set

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


CDOTA_Item_Physical

extends CBaseAnimating

No Description Set

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


CDOTA_Item_DataDriven

extends CDOTA_Item

'

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


CDOTA_Unit_Nian

extends CDOTA_BaseNPC_Creature

No Description Set

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


CBasePlayer

No Description Set

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


CDOTAPlayer

extends CBaseAnimating

No Description Set

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

extends CBaseEntity

No Description Set

Global accessor variable: PlayerResource

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


CDOTA_BaseNPC

extends CBaseFlex

'

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


CDOTA_BaseNPC_Hero

extends CDOTA_BaseNPC

'

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


CDOTA_BaseNPC_Creature

extends CDOTA_BaseNPC

No Description Set

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


CDOTA_BaseNPC_Building

extends CDOTA_BaseNPC

No Description Set

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


CRPG_Unit

No Description Set

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


CDOTABaseGameMode

extends CBaseEntity

No Description Set

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


CDotaQuest

extends CBaseEntity

A quest, as seen in the Tutorial and Frostivus

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


CDotaSubquestBase

extends CDotaQuest

No Description Set

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


CPhysicsComponent

No Description Set

Function Signature Description
ExpensiveInstantRayCast(en) 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(en) void DeleteCreatedSpawnGroups() DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this.
ForceSpawn(en) void ForceSpawn() ForceSpawn() : Spawns all of the entities the point_template is pointing at.
GetSpawnedEntities(en) handle GetSpawnedEntities() GetSpawnedEntities() : Get the list of the most recent spawned entities
SetSpawnCallback(en) 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(en) void AddImpulseAtPosition(Vector a, Vector b) Apply an impulse at a worldspace position to the physics
AddVelocity(en) void AddVelocity(Vector a, Vector b) Add linear and angular velocity to the physics object
DetachFromParent(en) void DetachFromParent() Detach from its parent
GetSequence(en) <> GetSequence() Returns the active sequence
IsAttachedToParent(en) bool IsAttachedToParent() Is attached to parent
LookupSequence(en) <> LookupSequence(string a) Returns a sequence id given a name
SequenceDuration(en) float SequenceDuration(string a) Returns the duration in seconds of the specified sequence
SetAngularVelocity(en) void SetAngularVelocity(Vector a) No Description Set
SetAnimation(en) void SetAnimation(string a) Pass string for the animation to play on this model
SetBodyGroup(en) void SetBodyGroup(string a) No Description Set
SetMaterialGroup(en) void SetMaterialGroup(utlstringtoken a) No Description Set
SetVelocity(en) void SetVelocity(Vector velocity) No Description Set


CBaseAnimating

extends CBaseEntity

A class containing functions involved in animations

Function Signature Description
GetAttachmentAngles(en) Vector GetAttachmentAngles(int a) Get the attachement id's angles as a p,y,r vector
GetAttachmentOrigin(en) Vector GetAttachmentOrigin(int a) Get the attachement id's origin vector
IsSequenceFinished(en) bool IsSequenceFinished() Ask whether the main sequence is done playing
ScriptLookupAttachment(en) int ScriptLookupAttachment(string a) Get the named attachment id
SetBodygroup(en) void SetBodygroup(int a, int b) Sets a bodygroup
SetModelScale(en) 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(en) float SetPoseParameter(string a, float b) Set the specified pose parameter to the specified value


CBaseCombatCharacter

No Description Set

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


ProjectileManager

The projectile manager, it manages projectiles.

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


CBaseTrigger

No Description Set

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


CEnvEntityMaker

extends CBaseEntity

No Description Set

Function Signature Description
SpawnEntity(en) void SpawnEntity() Create an entity at the location of the maker
SpawnEntityAtEntityOrigin(en) void SpawnEntityAtEntityOrigin(handle a) Create an entity at the location of a specified entity instance
SpawnEntityAtLocation(en) 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(en) void SpawnEntityAtNamedEntityOrigin(string a) Create an entity at the location of a named entity


CDOTAVoteSystem

No Description Set

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


CMarkupVolumeTagged

No Description Set

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


CScriptPrecacheContext

No Description Set

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


CScriptKeyValues

No Description Set

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


CScriptParticleManager

No Description Set

Global accessor variable: ParticleManager

Function Signature Description
CreateParticle(en) int CreateParticle(string particleName, int particleAttach, handle owningEntity) Creates a new particle effect
CreateParticleForPlayer(en) int CreateParticleForPlayer(string particleName, int particleAttach, handle owningEntity, handle owningPlayer) Creates a new particle effect that only plays for the specified player
GetParticleReplacement(en) string GetParticleReplacement(string a, handle b) No Description Set
ReleaseParticleIndex(en) void ReleaseParticleIndex(int particleId) Frees the specified particle index
SetParticleAlwaysSimulate(en) void SetParticleAlwaysSimulate(int a) No Description Set
SetParticleControl(en) void SetParticleControl(int particleId, int controlIndex, Vector controlData) Set the control point data for a control on a particle effect
SetParticleControlEnt(en) 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(en) table GetAllHeroes() Returns all the heroes in the world
GetHero(en) handle GetHero(int heroId) Get the Nth hero in the Hero List
GetHeroCount(en) int GetHeroCount() Returns the number of heroes in the world


CNativeOutputs

No Description Set

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


CEnvProjectedTexture

extends CBaseEntity

No Description Set

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


CPhysicsProp

No Description Set

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


CDOTAGamerules

'

Global accessor variable: GameRules

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


CToneMapControllerComponent

No Description Set

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


CDebugOverlayScriptHelper

No Description Set

Function Signature Description
Axis(en) void Axis(Vector a, Quaternion b, float c, bool d, float e) Draws an axis. Specify origin + orientation in world space.
Box(en) 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(en) 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(en) 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(en) 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(en) 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(en) 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(en) 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(en) 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(en) 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(en) 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(en) void EntityAttachments(ehandle a, float b) Draws the attachments of the entity
EntityAxis(en) void EntityAxis(ehandle a, float b, bool c, float d) Draws the axis of the entity origin
EntityBounds(en) void EntityBounds(ehandle a, int b, int c, int d, int e, bool f, float g) Draws bounds of an entity
EntitySkeleton(en) void EntitySkeleton(ehandle a, float b) Draws the skeleton of the entity
EntityText(en) void EntityText(ehandle a, int b, string c, int d, int e, int f, int g, float h) Draws text on an entity
FilledRect2D(en) 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(en) 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(en) 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(en) 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(en) void PopDebugOverlayScope() Pops the identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
PushAndClearDebugOverlayScope(en) void PushAndClearDebugOverlayScope(utlstringtoken a) Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id.
PushDebugOverlayScope(en) void PushDebugOverlayScope(utlstringtoken a) Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch.
RemoveAllInScope(en) void RemoveAllInScope(utlstringtoken a) Removes all overlays marked with a specific identifier, regardless of their lifetime.
SolidCone(en) 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(en) 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(en) 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(en) 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(en) 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(en) 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(en) void UnitTestCycleOverlayRenderType() Toggles the overlay render type, for unit tests
VectorText3D(en) 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(en) 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(en) 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

extends CBaseAnimating

Animated characters who have vertex flex capability (Hi hex6)

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


CSceneEntity

extends CBaseEntity

Choreographed scene which controls animation and/or dialog on one or more actors.

Function Signature Description
AddBroadcastTeamTarget(en) void AddBroadcastTeamTarget(int a) Adds a team (by index) to the broadcast list
Cancel(en) void Cancel() Cancel scene playback
EstimateLength(en) float EstimateLength() Returns length of this scene in seconds.
FindCamera(en) handle FindCamera() Get the camera
FindNamedEntity(en) handle FindNamedEntity(string a) given an entity reference, such as !target, get actual entity from scene object
IsPaused(en) bool IsPaused() If this scene is currently paused.
IsPlayingBack(en) bool IsPlayingBack() If this scene is currently playing.
LoadSceneFromString(en) bool LoadSceneFromString(string a, string b) given a dummy scene name and a vcd string, load the scene
RemoveBroadcastTeamTarget(en) void RemoveBroadcastTeamTarget(int a) Removes a team (by index) from the broadcast list
Start(en) 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(en) float GridPosToWorldCenterX(int a) Get the X position of the center of a given X index
GridPosToWorldCenterY(en) float GridPosToWorldCenterY(int a) Get the Y position of the center of a given Y index
IsBlocked(en) bool IsBlocked(Vector a) Checks whether the given position is blocked
IsNearbyTree(en) bool IsNearbyTree(Vector position, float radius, bool c)
IsTraversable(en) bool IsTraversable(Vector a) Checks whether the given position is traversable
RegrowAllTrees(en) void RegrowAllTrees()
WorldToGridPosX(en) int WorldToGridPosX(float a) Get the X index of a given world X position
WorldToGridPosY(en) 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(en) table GetBool(string variableName) GetBool(name) : returns the convar as a boolean flag.
GetCommandClient(en) handle GetCommandClient() GetCommandClient() : returns the player who issued this console command.
GetDOTACommandClient(en) handle GetDOTACommandClient() GetDOTACommandClient() : returns the DOTA player who issued this console command.
GetFloat(en) table GetFloat(string name) GetFloat(name) : returns the convar as a float. May return nil if no such convar.
GetInt(en) table GetInt(string a) GetInt(name) : returns the convar as an int. May return nil if no such convar.
GetStr(en) table GetStr(string variableName) GetStr(name) : returns the convar as a string. May return nil if no such convar.
RegisterCommand(en) void RegisterCommand(string variableName, handle function, string helpText, int flags) RegisterCommand(name, fn, helpString, flags) : register a console command.
RegisterConvar(en) void RegisterConvar(string name, string defaultValue, string helpText, int flags) RegisterConvar(name, defaultValue, helpString, flags): register a new console variable.
SetBool(en) void SetBool(string variableName, bool value) SetBool(name, val) : sets the value of the convar to the bool.
SetFloat(en) void SetFloat(string variableName, float value) SetFloat(name, val) : sets the value of the convar to the float.
SetInt(en) void SetInt(string a, int b) SetInt(name, val) : sets the value of the convar to the int.
SetStr(en) void SetStr(string a, string b) SetStr(name, val) : sets the value of the convar to the string.


Vector

Vector class

Global accessor variable: Vector(x,y,z)

Function Signature Description
__add(en) Vector __add(Vector a, Vector b) Overloaded +. Adds vectors together
__div(en) Vector __div(Vector a, Vector b) Overloaded /. Divides vectors
__eq(en) bool __eq(Vector a, Vector b) Overloaded ==. Tests for Equality
__len(en) float __len() Overloaded # returns the length of the vector
__mul(en) Vector __mul(Vector a, Vector b) Overloaded * returns the vectors multiplied together
__sub(en) Vector __sub(Vector a, Vector b) Overloaded -. Subtracts vectors
__tostring(en) string __tostring() Overloaded .. Converts vectors to strings
_unm(en) Vector _unm() Overloaded - operator
Cross(en) Vector Cross(Vector a, Vector b) Cross product of two vectors
Dot(en) float Dot(Vector a, Vector b) Dot product of two vectors
Length(en) float Length() Length of the Vector
Length2D(en) float Length2D() Length of the Vector in the XY plane
Normalized(en) Vector Normalized() Returns the vector normalized