API

From Valve Developer Community
Jump to: navigation, search
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