Difference between revisions of "Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/API:zh-cn"

From Valve Developer Community
Jump to: navigation, search
m
Line 4: Line 4:
 
}}
 
}}
 
{{Note | This page is automatically generated.  Any changes may be overwritten}}
 
{{Note | This page is automatically generated.  Any changes may be overwritten}}
 +
 
    
 
    
 +
 
==='''Accessing the DOTA 2 Scripting API from Lua===
 
==='''Accessing the DOTA 2 Scripting API from Lua===
 +
 +
  
 
While Lua is [http://en.wikipedia.org/wiki/Dynamically_typed dynamically typed], the DOTA 2 engine is written primarily in C++, which is [http://en.wikipedia.org/wiki/Type_system#Static_type-checking statically typed]. Thus, you'll need to be conscious of your data types when calling the API. (If you try to pass the wrong type to an API function, you'll get an error message in Vconsole telling you what you passed and what it was expecting.)
 
While Lua is [http://en.wikipedia.org/wiki/Dynamically_typed dynamically typed], the DOTA 2 engine is written primarily in C++, which is [http://en.wikipedia.org/wiki/Type_system#Static_type-checking statically typed]. Thus, you'll need to be conscious of your data types when calling the API. (If you try to pass the wrong type to an API function, you'll get an error message in Vconsole telling you what you passed and what it was expecting.)
 +
 
__TOC__
 
__TOC__
 +
 
=== Global ===
 
=== Global ===
 +
 
''Global functions.  These can be called without any class''
 
''Global functions.  These can be called without any class''
 +
 
{| class="standard-table" style="width: 100%;"
 
{| class="standard-table" style="width: 100%;"
! Function
+
 
! Signature
+
! 函数名
! Description
+
 
 +
! 函数原型
 +
 
 +
! 解释
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.AngleDiff | AngleDiff]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.AngleDiff | AngleDiff]]
 +
 
| <code>float AngleDiff(float ang1, float ang2) </code>
 
| <code>float AngleDiff(float ang1, float ang2) </code>
| Returns the number of degrees difference between two yaw angles
+
 
 +
| 返回两个偏航角度之差
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.AppendToLogFile | AppendToLogFile]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.AppendToLogFile | AppendToLogFile]]
 +
 
| <code>void AppendToLogFile(string a, string b) </code>
 
| <code>void AppendToLogFile(string a, string b) </code>
| Appends a ''string'' to a log file on the server
+
 
 +
| 在服务器日志文件上增加一个string
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ApplyDamage | ApplyDamage]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ApplyDamage | ApplyDamage]]
 +
 
| <code>float ApplyDamage(handle DamageTable) </code>
 
| <code>float ApplyDamage(handle DamageTable) </code>
| Pass ''table'' - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.
+
 
 +
| 对单位造成伤害,Table输入:victim, attacker, damage, damage_type, damage_flags, ability
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.AxisAngleToQuaternion | AxisAngleToQuaternion]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.AxisAngleToQuaternion | AxisAngleToQuaternion]]
 +
 
| <code>Quaternion AxisAngleToQuaternion(Vector a, float b) </code>
 
| <code>Quaternion AxisAngleToQuaternion(Vector a, float b) </code>
| (''vector'',''float'') constructs a quaternion representing a rotation by angle around the specified ''vector'' axis
+
 
 +
| (vector,float) 构造一个四元数,表现出围绕给定的vector 轴线的旋转角
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CancelEntityIOEvents | CancelEntityIOEvents]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CancelEntityIOEvents | CancelEntityIOEvents]]
 +
 
| <code>void CancelEntityIOEvents(ehandle a) </code>
 
| <code>void CancelEntityIOEvents(ehandle a) </code>
| Create all I/O events for a particular entity
+
 
 +
| 为特定的实体创建所有输入/输出事件
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateEffect | CreateEffect]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateEffect | CreateEffect]]
 +
 
| <code>bool CreateEffect(handle a) </code>
 
| <code>bool CreateEffect(handle a) </code>
| Pass ''table'' - Inputs: entity, effect
+
 
 +
| 传递table - 输入:实体,效果
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer | CreateHeroForPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer | CreateHeroForPlayer]]
| <code>handle CreateHeroForPlayer(string a, handle b) </code>
+
 
| Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero
+
| <code>handle CreateHeroForPlayer(string unitName, handle player) </code>
 +
 
 +
| 用DOTA英雄的dota_npc_units.txt中的名字创建它并把它设为给定玩家的控制英雄
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItem | CreateItem]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItem | CreateItem]]
 +
 
| <code>handle CreateItem(string item_name, handle owner, handle owner) </code>
 
| <code>handle CreateItem(string item_name, handle owner, handle owner) </code>
| Creates an item with classname <i>item_name</i> that <i>owner</i> can use.
+
 
 +
| 用类名称item_name创建一个owner可以使用的物品
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionSync | CreateItemOnPositionSync]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateItemOnPositionSync | CreateItemOnPositionSync]]
 +
 
| <code>handle CreateItemOnPositionSync(Vector a, handle b) </code>
 
| <code>handle CreateItemOnPositionSync(Vector a, handle b) </code>
| Create a physical item at a given location
+
 
 +
| 在给定位置创建一个可见的物品
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTrigger | CreateTrigger]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTrigger | CreateTrigger]]
 +
 
| <code>handle CreateTrigger(Vector a, Vector b, Vector c) </code>
 
| <code>handle CreateTrigger(Vector a, Vector b, Vector c) </code>
| CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger
+
 
 +
| CreateTrigger( vecMin, vecMax ) : 创建并返回一个AABB触发器
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTriggerRadiusApproximate | CreateTriggerRadiusApproximate]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateTriggerRadiusApproximate | CreateTriggerRadiusApproximate]]
 +
 
| <code>handle CreateTriggerRadiusApproximate(Vector a, float b) </code>
 
| <code>handle CreateTriggerRadiusApproximate(Vector a, float b) </code>
| CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided
+
 
 +
| CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : 创建并返回一个比给定radius大的AABB触发器
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByName | CreateUnitByName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByName | CreateUnitByName]]
 +
 
| <code>handle CreateUnitByName(string a, Vector b, bool c, handle d, handle e, int f) </code>
 
| <code>handle CreateUnitByName(string a, Vector b, bool c, handle d, handle e, int f) </code>
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
+
 
 +
| 用DOTA单位的dota_npc_units.txt中的名字创建它( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByNameAsync | CreateUnitByNameAsync]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitByNameAsync | CreateUnitByNameAsync]]
 +
 
| <code>int CreateUnitByNameAsync(string a, Vector b, bool c, handle d, handle e, int f, handle g) </code>
 
| <code>int CreateUnitByNameAsync(string a, Vector b, bool c, handle d, handle e, int f, handle g) </code>
| Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
+
 
 +
| 用DOTA单位的dota_npc_units.txt中的名字创建它( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.CreateUnitFromTable | CreateUnitFromTable]]
 +
 
 +
| <code>hscript CreateUnitFromTable(table unitProperties) </code>
 +
 
 +
| Creates a new data-driven entity with the given table
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_getf | cvar_getf]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_getf | cvar_getf]]
 +
 
| <code>float cvar_getf(string a) </code>
 
| <code>float cvar_getf(string a) </code>
| Gets the value of the given cvar, as a ''float''.
+
 
 +
| 获取给定cvar的值,返回float.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_setf | cvar_setf]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.cvar_setf | cvar_setf]]
 +
 
| <code>bool cvar_setf(string a, float b) </code>
 
| <code>bool cvar_setf(string a, float b) </code>
| Sets the value of the given cvar, as a ''float''.
+
 
 +
| 设置给定cvar的值, 传递float.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugBreak | DebugBreak]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugBreak | DebugBreak]]
 +
 
| <code>void DebugBreak() </code>
 
| <code>void DebugBreak() </code>
| Breaks in the debugger
+
 
 +
| 在debugger(调试模式)中停止运行
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBox | DebugDrawBox]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBox | DebugDrawBox]]
| <code>void DebugDrawBox(Vector a, Vector b, Vector c, int d, int e, int f, int g, float h) </code>
+
 
| Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration )
+
| <code>void DebugDrawBox(Vector origin, Vector min, Vector max, int r, int g, int b, int a, float duration) </code>
 +
 
 +
| 显示一个debug overlay窗口(origin, mins, maxs, r, g, b, a, duration )
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBoxDirection | DebugDrawBoxDirection]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawBoxDirection | DebugDrawBoxDirection]]
 +
 
| <code>void DebugDrawBoxDirection(Vector a, Vector b, Vector c, Vector d, Vector e, float f, float g) </code>
 
| <code>void DebugDrawBoxDirection(Vector a, Vector b, Vector c, Vector d, Vector e, float f, float g) </code>
| Draw a debug forward box (cent, min, max, forward, vRgb, a, duration)
+
 
 +
| 显示一个debug forward窗口(cent, min, max, forward, vRgb, a, duration)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawCircle | DebugDrawCircle]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawCircle | DebugDrawCircle]]
 +
 
| <code>void DebugDrawCircle(Vector a, Vector b, float c, float d, bool e, float f) </code>
 
| <code>void DebugDrawCircle(Vector a, Vector b, float c, float d, bool e, float f) </code>
| Draw a debug circle (center, vRgb, a, rad, ztest, duration)
+
 
 +
| 显示一个debug圆(center, vRgb, a, rad, ztest, duration)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawClear | DebugDrawClear]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawClear | DebugDrawClear]]
 +
 
| <code>void DebugDrawClear() </code>
 
| <code>void DebugDrawClear() </code>
| Try to clear all the debug overlay info
+
 
 +
| 尝试清理所有debug overlay信息
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine | DebugDrawLine]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine | DebugDrawLine]]
 +
 
| <code>void DebugDrawLine(Vector a, Vector b, int c, int d, int e, bool f, float g) </code>
 
| <code>void DebugDrawLine(Vector a, Vector b, int c, int d, int e, bool f, float g) </code>
| Draw a debug overlay line (origin, target, r, g, b, ztest, duration)
+
 
 +
| 显示一个debug overlay线段origin, target, r, g, b, ztest, duration)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine_vCol | DebugDrawLine_vCol]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawLine_vCol | DebugDrawLine_vCol]]
 +
 
| <code>void DebugDrawLine_vCol(Vector a, Vector b, Vector c, bool d, float e) </code>
 
| <code>void DebugDrawLine_vCol(Vector a, Vector b, Vector c, bool d, float e) </code>
| Draw a debug line using color vec (start, end, vRgb, a, ztest, duration)
+
 
 +
| 使用vec颜色显示一个debug线段(start, end, vRgb, a, ztest, duration)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawScreenTextLine | DebugDrawScreenTextLine]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawScreenTextLine | DebugDrawScreenTextLine]]
 +
 
| <code>void DebugDrawScreenTextLine(float a, float b, int c, string d, int e, int f, int g, int h, float i) </code>
 
| <code>void DebugDrawScreenTextLine(float a, float b, int c, string d, int e, int f, int g, int h, float i) </code>
| Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration)
+
 
 +
| 显示给定行间距(lineoffset)的文字(x, y, lineOffset, text, r, g, b, a, duration)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawSphere | DebugDrawSphere]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawSphere | DebugDrawSphere]]
 +
 
| <code>void DebugDrawSphere(Vector a, Vector b, float c, float d, bool e, float f) </code>
 
| <code>void DebugDrawSphere(Vector a, Vector b, float c, float d, bool e, float f) </code>
| Draw a debug sphere (center, vRgb, a, rad, ztest, duration)
+
 
 +
| 显示一个debug球(center, vRgb, a, rad, ztest, duration)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawText | DebugDrawText]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugDrawText | DebugDrawText]]
 +
 
| <code>void DebugDrawText(Vector a, string b, bool c, float d) </code>
 
| <code>void DebugDrawText(Vector a, string b, bool c, float d) </code>
| Draw text in 3d (origin, text, bViewCheck, duration)
+
 
 +
| 显示3d文字(origin, text, bViewCheck, duration)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugScreenTextPretty | DebugScreenTextPretty]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DebugScreenTextPretty | DebugScreenTextPretty]]
 +
 
| <code>void DebugScreenTextPretty(float a, float b, int c, string d, int e, int f, int g, int h, float i, string j, int k, bool l) </code>
 
| <code>void DebugScreenTextPretty(float a, float b, int c, string d, int e, int f, int g, int h, float i, string j, int k, bool l) </code>
| Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
+
 
 +
| 显示漂亮的debug文字(x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFire | DoEntFire]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFire | DoEntFire]]
 +
 
| <code>void DoEntFire(string a, string b, string c, float d, handle e, handle f) </code>
 
| <code>void DoEntFire(string a, string b, string c, float d, handle e, handle f) </code>
| EntFire: Generate an entity i/o event ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
+
 
 +
| EntFire: 构造一个实体的输入/输出事件( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFireByInstanceHandle | DoEntFireByInstanceHandle]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoEntFireByInstanceHandle | DoEntFireByInstanceHandle]]
 +
 
| <code>void DoEntFireByInstanceHandle(handle a, string b, string c, float d, handle e, handle f) </code>
 
| <code>void DoEntFireByInstanceHandle(handle a, string b, string c, float d, handle e, handle f) </code>
| EntFireByHandle:Generate and entity i/o event
+
 
 +
| EntFireByHandle:构造一个实体的输入/输出事件
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoIncludeScript | DoIncludeScript]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoIncludeScript | DoIncludeScript]]
 +
 
| <code>bool DoIncludeScript(string a, handle b) </code>
 
| <code>bool DoIncludeScript(string a, handle b) </code>
| Execute a script (internal)
+
 
 +
| 运行一个内部脚本
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoScriptAssert | DoScriptAssert]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoScriptAssert | DoScriptAssert]]
 +
 
| <code>void DoScriptAssert(bool a, string b) </code>
 
| <code>void DoScriptAssert(bool a, string b) </code>
| ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog.
+
 
 +
| ScriptAssert:断言传入数据是数值,输出信息并显示断言对话框(参考编程中的Assert功能,主要用于调试,译者注)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoUniqueString | DoUniqueString]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.DoUniqueString | DoUniqueString]]
 +
 
| <code>string DoUniqueString(string a) </code>
 
| <code>string DoUniqueString(string a) </code>
| UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to table's when not sure what keys are already in use in that table.
+
 
 +
| UniqueString:使用任意的根字符串构造一个保证在VM脚本运行周期内唯一的字符串。当给表增加数据但不确定已用关键字时有用
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound | EmitGlobalSound]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound | EmitGlobalSound]]
 +
 
| <code>void EmitGlobalSound(string a) </code>
 
| <code>void EmitGlobalSound(string a) </code>
| Play named sound for all players
+
 
 +
| 为所有玩家播放给定名称的音效
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOn | EmitSoundOn]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOn | EmitSoundOn]]
 +
 
| <code>void EmitSoundOn(string a, handle b) </code>
 
| <code>void EmitSoundOn(string a, handle b) </code>
| Play named sound on Entity
+
 
 +
| 在一个实体上播放给定名称的音效
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnClient | EmitSoundOnClient]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitSoundOnClient | EmitSoundOnClient]]
 +
 
| <code>void EmitSoundOnClient(string a, handle b) </code>
 
| <code>void EmitSoundOnClient(string a, handle b) </code>
| Play named sound only on the client for the passed in player
+
 
 +
| 为指定玩家播放给定名称的音效
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EntIndexToHScript | EntIndexToHScript]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EntIndexToHScript | EntIndexToHScript]]
 +
 
| <code>handle EntIndexToHScript(int a) </code>
 
| <code>handle EntIndexToHScript(int a) </code>
| Turn an entity index integer to an HScript representing that entity's script instance.
+
 
 +
| 把一个实体的整数索引转化为表达该实体脚本实例的HScript
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExecuteOrderFromTable | ExecuteOrderFromTable]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExecuteOrderFromTable | ExecuteOrderFromTable]]
 +
 
| <code>void ExecuteOrderFromTable(handle a) </code>
 
| <code>void ExecuteOrderFromTable(handle a) </code>
| Issue an order from a script ''table''
+
 
 +
| 从一个Script表发布命令
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExponentialDecay | ExponentialDecay]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ExponentialDecay | ExponentialDecay]]
 +
 
| <code>float ExponentialDecay(float a, float b, float c) </code>
 
| <code>float ExponentialDecay(float a, float b, float c) </code>
| Smooth curve decreasing slower as it approaches zero
+
 
 +
| 平滑的曲线,接近0时减少较慢
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FileToString | FileToString]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FileToString | FileToString]]
 +
 
| <code>string FileToString(string a) </code>
 
| <code>string FileToString(string a) </code>
| Reads a ''string'' from a file to send to script
+
 
 +
| 从文件读取字符串给脚本,目录遍历似乎无效,字符'.','/'和'\\'被忽略,文件从C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota_ugc\game\dota\ems读取,函数的用途与StringToFile相反
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindClearSpaceForUnit | FindClearSpaceForUnit]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindClearSpaceForUnit | FindClearSpaceForUnit]]
 +
 
| <code>void FindClearSpaceForUnit(handle a, Vector b, bool c) </code>
 
| <code>void FindClearSpaceForUnit(handle a, Vector b, bool c) </code>
| Place a unit somewhere not already occupied.
+
 
 +
| 在未被占用的地方创建单位
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInRadius | FindUnitsInRadius]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInRadius | FindUnitsInRadius]]
| <code>table FindUnitsInRadius(int a, Vector b, handle c, float d, int e, int f, int g, int h, bool i) </code>
+
 
| Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
+
| <code>table FindUnitsInRadius(int teamNumber, Vector position, handle cacheUnit, float radius, int teamFilter, int typeFilter, int flagFilter, int order, bool canGrowCache) </code>
 +
 
 +
| 在给定范围内用给定flags搜索单位( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputNameOnly | FireEntityIOInputNameOnly]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputNameOnly | FireEntityIOInputNameOnly]]
 +
 
| <code>void FireEntityIOInputNameOnly(ehandle a, string b) </code>
 
| <code>void FireEntityIOInputNameOnly(ehandle a, string b) </code>
| Fire Entity's Action Input w/no data
+
 
 +
| 触发实体的动作输入w/no数据
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputString | FireEntityIOInputString]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputString | FireEntityIOInputString]]
 +
 
| <code>void FireEntityIOInputString(ehandle a, string b, string c) </code>
 
| <code>void FireEntityIOInputString(ehandle a, string b, string c) </code>
| Fire Entity's Action Input with passed String - you own the memory
+
 
 +
| 用给定字符串(由你分配内存)触发实体的动作输入
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputVec | FireEntityIOInputVec]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireEntityIOInputVec | FireEntityIOInputVec]]
 +
 
| <code>void FireEntityIOInputVec(ehandle a, string b, Vector c) </code>
 
| <code>void FireEntityIOInputVec(ehandle a, string b, Vector c) </code>
| Fire Entity's Action Input with passed ''Vector'' ( hEntity, szActionName, vector )
+
 
 +
| 用给定的Vector( hEntity, szActionName, vector )触发实体的动作输入
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEvent | FireGameEvent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEvent | FireGameEvent]]
 +
 
| <code>void FireGameEvent(string eventName, handle parameterTable) </code>
 
| <code>void FireGameEvent(string eventName, handle parameterTable) </code>
| Fire a pre-defined event, which can be found either in custom_events.txt or in dota's resource/*.res
+
 
 +
| 触发一个预定义事件,可以在custom_events.txt或dota的资源/*.res中找到
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEventLocal | FireGameEventLocal]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FireGameEventLocal | FireGameEventLocal]]
 +
 
| <code>void FireGameEventLocal(string a, handle b) </code>
 
| <code>void FireGameEventLocal(string a, handle b) </code>
| Fire a game event without broadcasting to the client.
+
 
 +
| 触发一个游戏事件但不广播给客户端
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FrameTime | FrameTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.FrameTime | FrameTime]]
 +
 
| <code>float FrameTime() </code>
 
| <code>float FrameTime() </code>
| Get the time spent on the server in the last frame
+
 
 +
| 获取上一帧在服务器上花费的时间
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrameCount | GetFrameCount]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrameCount | GetFrameCount]]
 +
 
| <code>int GetFrameCount() </code>
 
| <code>int GetFrameCount() </code>
| Returns the engines current frame count
+
 
 +
| 返回引擎当然的帧数
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyBoostAmount | GetFrostyBoostAmount]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyBoostAmount | GetFrostyBoostAmount]]
 +
 
| <code>float GetFrostyBoostAmount(int a, int b) </code>
 
| <code>float GetFrostyBoostAmount(int a, int b) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyPointsForRound | GetFrostyPointsForRound]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetFrostyPointsForRound | GetFrostyPointsForRound]]
 +
 
| <code>int GetFrostyPointsForRound(int a, int b, int c) </code>
 
| <code>int GetFrostyPointsForRound(int a, int b, int c) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyBoostAmount | GetGoldFrostyBoostAmount]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyBoostAmount | GetGoldFrostyBoostAmount]]
 +
 
| <code>float GetGoldFrostyBoostAmount(int a, int b) </code>
 
| <code>float GetGoldFrostyBoostAmount(int a, int b) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyPointsForRound | GetGoldFrostyPointsForRound]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGoldFrostyPointsForRound | GetGoldFrostyPointsForRound]]
 +
 
| <code>int GetGoldFrostyPointsForRound(int a, int b, int c) </code>
 
| <code>int GetGoldFrostyPointsForRound(int a, int b, int c) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGroundPosition | GetGroundPosition]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetGroundPosition | GetGroundPosition]]
 +
 
| <code>Vector GetGroundPosition(Vector a, handle b) </code>
 
| <code>Vector GetGroundPosition(Vector a, handle b) </code>
| Returns the supplied position moved to the ground. Second parameter is an NPC for measuring movement collision hull offset.
+
 
 +
| 返回移动到地面的供给位置。第二个参数是一个NPC,用于测量碰撞体积
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetListenServerHost | GetListenServerHost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetListenServerHost | GetListenServerHost]]
 +
 
| <code>handle GetListenServerHost() </code>
 
| <code>handle GetListenServerHost() </code>
| Get the local player on a listen server.
+
 
 +
| 在广播服务器获取本地玩家
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMapName | GetMapName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMapName | GetMapName]]
 +
 
| <code>string GetMapName() </code>
 
| <code>string GetMapName() </code>
| Get the name of the map.
+
 
 +
| 获取地图的名字
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMaxOutputDelay | GetMaxOutputDelay]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetMaxOutputDelay | GetMaxOutputDelay]]
 +
 
| <code>float GetMaxOutputDelay(ehandle a, string b) </code>
 
| <code>float GetMaxOutputDelay(ehandle a, string b) </code>
| Get the longest delay for all events attached to an output
+
 
 +
| 获取输出事件的最大延迟
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysAngularVelocity | GetPhysAngularVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysAngularVelocity | GetPhysAngularVelocity]]
 +
 
| <code>Vector GetPhysAngularVelocity(handle a) </code>
 
| <code>Vector GetPhysAngularVelocity(handle a) </code>
| Get Angular Velocity for VPHYS or normal object
+
 
 +
| 获取VPHYS或普通物体的角速度
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysVelocity | GetPhysVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetPhysVelocity | GetPhysVelocity]]
 +
 
| <code>Vector GetPhysVelocity(handle a) </code>
 
| <code>Vector GetPhysVelocity(handle a) </code>
| Get Velocity for VPHYS or normal object
+
 
 +
| 获取VPHYS或普通物体的速度
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetSystemDate | GetSystemDate]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetSystemDate | GetSystemDate]]
 +
 
| <code>string GetSystemDate() </code>
 
| <code>string GetSystemDate() </code>
| Get the current real world date
+
 
 +
| 获取真实世界的日期
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetSystemTime | GetSystemTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetSystemTime | GetSystemTime]]
 +
 
| <code>string GetSystemTime() </code>
 
| <code>string GetSystemTime() </code>
| Get the current real world time
+
 
 +
| 获取真实世界的时间
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetTeamName | GetTeamName]]
 +
 
 +
| <code>string GetTeamName(int teamNumber) </code>
 +
 
 +
| Returns the team name
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxX | GetWorldMaxX]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxX | GetWorldMaxX]]
 +
 
| <code>float GetWorldMaxX() </code>
 
| <code>float GetWorldMaxX() </code>
| Gets the world's maximum X position.
+
 
 +
| 获取地图X坐标最大值
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxY | GetWorldMaxY]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMaxY | GetWorldMaxY]]
 +
 
| <code>float GetWorldMaxY() </code>
 
| <code>float GetWorldMaxY() </code>
| Gets the world's maximum Y position.
+
 
 +
| 获取地图Y坐标最大值
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinX | GetWorldMinX]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinX | GetWorldMinX]]
 +
 
| <code>float GetWorldMinX() </code>
 
| <code>float GetWorldMinX() </code>
| Gets the world's minimum X position.
+
 
 +
| 获取地图X坐标最小值
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinY | GetWorldMinY]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.GetWorldMinY | GetWorldMinY]]
 +
 
| <code>float GetWorldMinY() </code>
 
| <code>float GetWorldMinY() </code>
| Gets the world's minimum Y position.
+
 
 +
| 获取地图Y坐标最小值
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.InitLogFile | InitLogFile]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.InitLogFile | InitLogFile]]
 +
 
| <code>void InitLogFile(string a, string b) </code>
 
| <code>void InitLogFile(string a, string b) </code>
| If the given file doesn't exist, creates it with the given contents; does nothing if it exists
+
 
 +
| 如果给定文件不存在,用给定内容创建它;如果存在则不做任何动作
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsDedicatedServer | IsDedicatedServer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsDedicatedServer | IsDedicatedServer]]
 +
 
| <code>bool IsDedicatedServer() </code>
 
| <code>bool IsDedicatedServer() </code>
| Returns true if this server is a dedicated server.
+
 
 +
| 如果服务器开放返回true
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsMarkedForDeletion | IsMarkedForDeletion]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsMarkedForDeletion | IsMarkedForDeletion]]
 +
 
| <code>bool IsMarkedForDeletion(handle a) </code>
 
| <code>bool IsMarkedForDeletion(handle a) </code>
| Returns true if the entity is valid and marked for deletion.
+
 
 +
| 如果实体有效并被标记为删除返回true
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsValidEntity | IsValidEntity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsValidEntity | IsValidEntity]]
 +
 
| <code>bool IsValidEntity(handle a) </code>
 
| <code>bool IsValidEntity(handle a) </code>
| Checks to see if the given hScript is a valid entity
+
 
 +
| 检查给定hScript是否为有效实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ListenToGameEvent | ListenToGameEvent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ListenToGameEvent | ListenToGameEvent]]
| <code>int ListenToGameEvent(string a, handle b, handle c) </code>
+
 
| Register as a listener for a game event from script. ( szEventName, hFunctionNameToCall, hContext ){{tip|In addition to listening for [[Dota 2 Workshop Tools/Scripting/Built-In Engine Events|standard engine events]], you can also create your own events by placing them in /scripts/custom_events.txt.}}
+
| <code>int ListenToGameEvent(string EventName, handle functionNameToCall, handle context) </code>
 +
 
 +
| 从脚本给游戏事件注册一个listner,Tip:另外,为listenstandard engine events,你也可以创建自己的事件,把它们放置在/scripts/custom_events.txt.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValues | LoadKeyValues]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValues | LoadKeyValues]]
 +
 
| <code>table LoadKeyValues(string a) </code>
 
| <code>table LoadKeyValues(string a) </code>
| Creates a ''table'' from the specified keyvalues text file
+
 
 +
| 用给定的关键字文件创建table
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValuesFromString | LoadKeyValuesFromString]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.LoadKeyValuesFromString | LoadKeyValuesFromString]]
 +
 
| <code>table LoadKeyValuesFromString(string a) </code>
 
| <code>table LoadKeyValuesFromString(string a) </code>
| Creates a ''table'' from the specified keyvalues ''string''
+
 
 +
| 用给定的关键字string创建table
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.MakeStringToken | MakeStringToken]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.MakeStringToken | MakeStringToken]]
 +
 
| <code>int MakeStringToken(string a) </code>
 
| <code>int MakeStringToken(string a) </code>
| Checks to see if the given hScript is a valid entity
+
 
 +
| 检查给定的hScript是否是有效实体(?)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.Msg | Msg]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.Msg | Msg]]
 +
 
| <code>void Msg(string a) </code>
 
| <code>void Msg(string a) </code>
| Print a message
+
 
 +
| 输出信息
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PauseGame | PauseGame]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PauseGame | PauseGame]]
 +
 
| <code>void PauseGame(bool a) </code>
 
| <code>void PauseGame(bool a) </code>
| Pause or unpause the game.
+
 
 +
| 暂停/开始游戏
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PlayerInstanceFromIndex | PlayerInstanceFromIndex]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PlayerInstanceFromIndex | PlayerInstanceFromIndex]]
 +
 
| <code>handle PlayerInstanceFromIndex(int a) </code>
 
| <code>handle PlayerInstanceFromIndex(int a) </code>
| Get a script instance of a player by index.
+
 
 +
| 通过索引获取玩家的脚本实例
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityFromTable | PrecacheEntityFromTable]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityFromTable | PrecacheEntityFromTable]]
 +
 
| <code>void PrecacheEntityFromTable(string a, handle b, handle c) </code>
 
| <code>void PrecacheEntityFromTable(string a, handle b, handle c) </code>
| Precache an entity from KeyValues in ''table''
+
 
 +
| 用关键字从table中预缓存一个实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityListFromTable | PrecacheEntityListFromTable]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheEntityListFromTable | PrecacheEntityListFromTable]]
 +
 
| <code>void PrecacheEntityListFromTable(handle a, handle b) </code>
 
| <code>void PrecacheEntityListFromTable(handle a, handle b) </code>
| Precache a list of entity KeyValues table's
+
 
 +
| 预缓存一个实体关键字列表
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameAsync | PrecacheItemByNameAsync]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameAsync | PrecacheItemByNameAsync]]
 +
 
| <code>void PrecacheItemByNameAsync(string a, handle b) </code>
 
| <code>void PrecacheItemByNameAsync(string a, handle b) </code>
| Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished.
+
 
 +
| 用DOTA物品的dota_npc_items.txt名称异步预缓存它,结束时提供回调
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameSync | PrecacheItemByNameSync]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheItemByNameSync | PrecacheItemByNameSync]]
 +
 
| <code>void PrecacheItemByNameSync(string a, handle b) </code>
 
| <code>void PrecacheItemByNameSync(string a, handle b) </code>
| Precaches a DOTA item by its dota_npc_items.txt name
+
 
 +
| 用DOTA物品的dota_npc_items.txt名称预缓存它
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheModel | PrecacheModel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheModel | PrecacheModel]]
 +
 
| <code>void PrecacheModel(string a, handle b) </code>
 
| <code>void PrecacheModel(string a, handle b) </code>
| ( modelName, context ) - Manually precache a single model
+
 
 +
| ( modelName, context ) - 手动预缓存一个单一模型
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheResource | PrecacheResource]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheResource | PrecacheResource]]
| <code>void PrecacheResource(string a, string b, handle c) </code>
+
 
| Manually precache a single resource
+
| <code>void PrecacheResource(string precacheMode, string resource, handle context) </code>
 +
 
 +
| 手动预缓存一个单一资源
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameAsync | PrecacheUnitByNameAsync]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameAsync | PrecacheUnitByNameAsync]]
 +
 
| <code>void PrecacheUnitByNameAsync(string a, handle b) </code>
 
| <code>void PrecacheUnitByNameAsync(string a, handle b) </code>
| Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished.
+
 
 +
| 用DOTA单位的dota_npc_units.txt名称异步预缓存它,结束时提供回调
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameSync | PrecacheUnitByNameSync]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrecacheUnitByNameSync | PrecacheUnitByNameSync]]
 +
 
| <code>void PrecacheUnitByNameSync(string a, handle b) </code>
 
| <code>void PrecacheUnitByNameSync(string a, handle b) </code>
| Precaches a DOTA unit by its dota_npc_units.txt name
+
 
 +
| 用DOTA单位的dota_npc_units.txt名称预缓存它
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrintLinkedConsoleMessage | PrintLinkedConsoleMessage]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.PrintLinkedConsoleMessage | PrintLinkedConsoleMessage]]
 +
 
| <code>void PrintLinkedConsoleMessage(string a, string b) </code>
 
| <code>void PrintLinkedConsoleMessage(string a, string b) </code>
 +
 
| Print a console message with a linked console command
 
| Print a console message with a linked console command
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomFloat | RandomFloat]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomFloat | RandomFloat]]
 +
 
| <code>float RandomFloat(float a, float b) </code>
 
| <code>float RandomFloat(float a, float b) </code>
| Get a random ''float'' within a range
+
 
 +
| 获取范围内随机float
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomInt | RandomInt]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomInt | RandomInt]]
 +
 
| <code>int RandomInt(int a, int b) </code>
 
| <code>int RandomInt(int a, int b) </code>
| Get a random ''int'' within a range
+
 
 +
| 获取范围内随机int
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomVector | RandomVector]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RandomVector | RandomVector]]
| <code>Vector RandomVector(float a) </code>
+
 
| Get a random 2D ''vector''. Argument (''float'') is the minimum length of the returned vector.
+
| <code>Vector RandomVector(float maxLength) </code>
 +
 
 +
| 获取随机二维矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RegisterSpawnGroupFilterProxy | RegisterSpawnGroupFilterProxy]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RegisterSpawnGroupFilterProxy | RegisterSpawnGroupFilterProxy]]
 +
 
| <code>void RegisterSpawnGroupFilterProxy(string a) </code>
 
| <code>void RegisterSpawnGroupFilterProxy(string a) </code>
| Create a C proxy for a script-based spawn group filter
+
 
 +
| 为一个脚本基础的生成单位过滤器创建一个C代理
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ReloadMOTD | ReloadMOTD]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ReloadMOTD | ReloadMOTD]]
 +
 
| <code>void ReloadMOTD() </code>
 
| <code>void ReloadMOTD() </code>
| Reloads the MotD file
+
 
 +
| 重载MotD文件
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RemoveSpawnGroupFilterProxy | RemoveSpawnGroupFilterProxy]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RemoveSpawnGroupFilterProxy | RemoveSpawnGroupFilterProxy]]
 +
 
| <code>void RemoveSpawnGroupFilterProxy(string a) </code>
 
| <code>void RemoveSpawnGroupFilterProxy(string a) </code>
| Remove the C proxy for a script-based spawn group filter
+
 
 +
| 为一个脚本基础的生成单位过滤器删除一个C代理
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RollPercentage | RollPercentage]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RollPercentage | RollPercentage]]
 +
 
| <code>bool RollPercentage(int a) </code>
 
| <code>bool RollPercentage(int a) </code>
| Rolls a number from 1 to 100 and returns true if the roll is less than or equal to the number specified
+
 
 +
| 随机生成1-100内的数,小于等于给定数则返回true
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateOrientation | RotateOrientation]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateOrientation | RotateOrientation]]
 +
 
| <code>QAngle RotateOrientation(QAngle a, QAngle b) </code>
 
| <code>QAngle RotateOrientation(QAngle a, QAngle b) </code>
| Rotate a ''QAngle'' by another ''QAngle''.
+
 
 +
| 旋转一个QAngle,用另一个QAngle
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotatePosition | RotatePosition]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotatePosition | RotatePosition]]
 +
 
| <code>Vector RotatePosition(Vector a, QAngle b, Vector c) </code>
 
| <code>Vector RotatePosition(Vector a, QAngle b, Vector c) </code>
| Rotate a ''Vector'' around a point.
+
 
 +
| 围绕点旋转一个Vector
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateQuaternionByAxisAngle | RotateQuaternionByAxisAngle]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotateQuaternionByAxisAngle | RotateQuaternionByAxisAngle]]
 +
 
| <code>Quaternion RotateQuaternionByAxisAngle(Quaternion a, Vector b, float c) </code>
 
| <code>Quaternion RotateQuaternionByAxisAngle(Quaternion a, Vector b, float c) </code>
| Rotates a quaternion by the specified angle around the specified ''vector'' axis
+
 
 +
| 围绕给定vector轴线旋转一个四元数
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotationDelta | RotationDelta]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.RotationDelta | RotationDelta]]
 +
 
| <code>QAngle RotationDelta(QAngle a, QAngle b) </code>
 
| <code>QAngle RotationDelta(QAngle a, QAngle b) </code>
| Find the delta between two ''QAngle''s.
+
 
 +
| 两个QAngle间的delta值
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_AddDecisionRule | rr_AddDecisionRule]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_AddDecisionRule | rr_AddDecisionRule]]
 +
 
| <code>bool rr_AddDecisionRule(handle a) </code>
 
| <code>bool rr_AddDecisionRule(handle a) </code>
| Add a rule to the decision database.
+
 
 +
| 给决定数据库增加一个规则
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_CommitAIResponse | rr_CommitAIResponse]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_CommitAIResponse | rr_CommitAIResponse]]
 +
 
| <code>bool rr_CommitAIResponse(handle a, handle b) </code>
 
| <code>bool rr_CommitAIResponse(handle a, handle b) </code>
| Commit the result of QueryBestResponse back to the given entity to play. Call with params (entity, airesponse)
+
 
 +
| 把QueryBestResponse的结果交付给定的实体播放,用参数调用(entity, airesponse)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_GetResponseTargets | rr_GetResponseTargets]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_GetResponseTargets | rr_GetResponseTargets]]
 +
 
| <code>handle rr_GetResponseTargets() </code>
 
| <code>handle rr_GetResponseTargets() </code>
| Retrieve a ''table'' of all available expresser targets, in the form { name : ''handle'', name: ''handle'' }.
+
 
 +
| 获取所有提供的表达者目标的table,格式为{ name : handle, name: handle }.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_QueryBestResponse | rr_QueryBestResponse]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.rr_QueryBestResponse | rr_QueryBestResponse]]
 +
 
| <code>bool rr_QueryBestResponse(handle a, handle b, handle c) </code>
 
| <code>bool rr_QueryBestResponse(handle a, handle b, handle c) </code>
| Params: ( hEnt, hQuery, hResult ) // Static : tests 'query' against entity's response system and returns the best response found (or ''nil'' if none found).
+
 
 +
| 参数: ( hEnt, hQuery, hResult ) // 静态 : 对实体的回复系统测试 'query'并返回最佳回复(无回复返回nil)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.Say | Say]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.Say | Say]]
 +
 
| <code>void Say(handle entity, string message, bool teamOnly) </code>
 
| <code>void Say(handle entity, string message, bool teamOnly) </code>
| Have Entity say ''string'', and teamOnly or not
+
 
 +
| 让实体说string,是否仅限队友可见
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ScreenShake | ScreenShake]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ScreenShake | ScreenShake]]
 +
 
| <code>void ScreenShake(Vector a, float b, float c, float d, float e, int f, bool g) </code>
 
| <code>void ScreenShake(Vector a, float b, float c, float d, float e, int f, bool g) </code>
| Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake
+
 
 +
| 用下列参数开始镜头摇晃:vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostivusTimeElapsedToGC | SendFrostivusTimeElapsedToGC]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostivusTimeElapsedToGC | SendFrostivusTimeElapsedToGC]]
 +
 
| <code>void SendFrostivusTimeElapsedToGC() </code>
 
| <code>void SendFrostivusTimeElapsedToGC() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostyPointsMessageToGC | SendFrostyPointsMessageToGC]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendFrostyPointsMessageToGC | SendFrostyPointsMessageToGC]]
 +
 
| <code>void SendFrostyPointsMessageToGC(handle a) </code>
 
| <code>void SendFrostyPointsMessageToGC(handle a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToConsole | SendToConsole]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToConsole | SendToConsole]]
 +
 
| <code>void SendToConsole(string a) </code>
 
| <code>void SendToConsole(string a) </code>
| Send a ''string'' to the console as a client command
+
 
 +
| 给控制台发送string作为客户端命令
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToServerConsole | SendToServerConsole]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SendToServerConsole | SendToServerConsole]]
 +
 
| <code>void SendToServerConsole(string a) </code>
 
| <code>void SendToServerConsole(string a) </code>
| Send a ''string'' to the console as a server command
+
 
 +
| 给控制台发送string作为服务器命令
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatAll | SetOpvarFloatAll]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatAll | SetOpvarFloatAll]]
 +
 
| <code>void SetOpvarFloatAll(string a, string b, string c, float d) </code>
 
| <code>void SetOpvarFloatAll(string a, string b, string c, float d) </code>
| Sets an opvar value for all players
+
 
 +
| 为所有玩家设置opvar值
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatPlayer | SetOpvarFloatPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetOpvarFloatPlayer | SetOpvarFloatPlayer]]
 +
 
| <code>void SetOpvarFloatPlayer(string a, string b, string c, float d, handle e) </code>
 
| <code>void SetOpvarFloatPlayer(string a, string b, string c, float d, handle e) </code>
| Sets an opvar value for a single player ( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
+
 
 +
| 为单一玩家设置opvar值( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestName | SetQuestName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestName | SetQuestName]]
 +
 
| <code>void SetQuestName(string a) </code>
 
| <code>void SetQuestName(string a) </code>
| Set the current quest name.
+
 
 +
| 设置当前任务名
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestPhase | SetQuestPhase]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetQuestPhase | SetQuestPhase]]
 +
 
| <code>void SetQuestPhase(int a) </code>
 
| <code>void SetQuestPhase(int a) </code>
| Set the current quest phase.
+
 
 +
| 设置当前任务阶段
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetRenderingEnabled | SetRenderingEnabled]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SetRenderingEnabled | SetRenderingEnabled]]
 +
 
| <code>void SetRenderingEnabled(ehandle a, bool b) </code>
 
| <code>void SetRenderingEnabled(ehandle a, bool b) </code>
| Set rendering on/off for an ''ehandle''
+
 
 +
| 为ehandle设置rendering(渲染)开/
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowCustomHeaderMessage | ShowCustomHeaderMessage]]
 +
 
 +
| <code>void ShowCustomHeaderMessage(string message, int player, int value, float time) </code>
 +
 
 +
| Displays a header message from player
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopup | ShowGenericPopup]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopup | ShowGenericPopup]]
 +
 
| <code>void ShowGenericPopup(string title, string content, string unknown, string unknown, int containerType) </code>
 
| <code>void ShowGenericPopup(string title, string content, string unknown, string unknown, int containerType) </code>
|  
+
 
 +
| 对所有玩家显示通用的弹出窗口
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopupToPlayer | ShowGenericPopupToPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowGenericPopupToPlayer | ShowGenericPopupToPlayer]]
 +
 
| <code>void ShowGenericPopupToPlayer(handle a, string b, string c, string d, string e, int f) </code>
 
| <code>void ShowGenericPopupToPlayer(handle a, string b, string c, string d, string e, int f) </code>
| Show a generic popup dialog to a specific player.
+
 
 +
| 对给定玩家显示通用的弹出窗口
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowMessage | ShowMessage]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.ShowMessage | ShowMessage]]
 +
 
| <code>void ShowMessage(string a) </code>
 
| <code>void ShowMessage(string a) </code>
| Print a hud message on all clients
+
 
 +
| 在所有客户端显示hud信息
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityFromTableSynchronous | SpawnEntityFromTableSynchronous]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityFromTableSynchronous | SpawnEntityFromTableSynchronous]]
 +
 
| <code>handle SpawnEntityFromTableSynchronous(string a, handle b) </code>
 
| <code>handle SpawnEntityFromTableSynchronous(string a, handle b) </code>
| Synchronously spawns a single entity from a ''table''
+
 
 +
| 从table同步生成一个实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityGroupFromTable | SpawnEntityGroupFromTable]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityGroupFromTable | SpawnEntityGroupFromTable]]
 +
 
| <code>bool SpawnEntityGroupFromTable(handle groupSpawnTables, bool bAsync, handle hCallback) </code>
 
| <code>bool SpawnEntityGroupFromTable(handle groupSpawnTables, bool bAsync, handle hCallback) </code>
| Hierarchically spawn an entity group from a set of spawn tables.
+
 
 +
| 从一系列生成表中分级生成一个实体组
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableAsynchronous | SpawnEntityListFromTableAsynchronous]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableAsynchronous | SpawnEntityListFromTableAsynchronous]]
 +
 
| <code>int SpawnEntityListFromTableAsynchronous(handle a, handle b) </code>
 
| <code>int SpawnEntityListFromTableAsynchronous(handle a, handle b) </code>
| Asynchronously spawn an entity group from a list of spawn table's. A callback will be triggered when the spawning is complete
+
 
 +
| 从一个生成表列表异步生成一个实体组,生成完成后会触发一次回调
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableSynchronous | SpawnEntityListFromTableSynchronous]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SpawnEntityListFromTableSynchronous | SpawnEntityListFromTableSynchronous]]
 +
 
| <code>handle SpawnEntityListFromTableSynchronous(handle a) </code>
 
| <code>handle SpawnEntityListFromTableSynchronous(handle a) </code>
| Synchronously spawn an entity group from a list of spawn table's.
+
 
 +
| 从一个生成表列表同步生成一个实体组.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineQuaternions | SplineQuaternions]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineQuaternions | SplineQuaternions]]
 +
 
| <code>Quaternion SplineQuaternions(Quaternion a, Quaternion b, float c) </code>
 
| <code>Quaternion SplineQuaternions(Quaternion a, Quaternion b, float c) </code>
| (quaternion,quaternion,''float'') very basic interpolation of v0 to v1 over t on [0,1]
+
 
 +
| (quaternion,quaternion,float)非常基础的v0到v1差值,t属于[0,1]为参数
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineVectors | SplineVectors]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.SplineVectors | SplineVectors]]
 +
 
| <code>Vector SplineVectors(Vector a, Vector b, float c) </code>
 
| <code>Vector SplineVectors(Vector a, Vector b, float c) </code>
| (''vector'',''vector'',''float'') very basic interpolation of v0 to v1 over t on [0,1]
+
 
 +
| (vector,vector,float)非常基础的v0到v1差值,t属于[0,1]为参数
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StartSoundEvent | StartSoundEvent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StartSoundEvent | StartSoundEvent]]
 +
 
| <code>void StartSoundEvent(string a, handle b) </code>
 
| <code>void StartSoundEvent(string a, handle b) </code>
| Start a sound event
+
 
 +
| 开始音效事件
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopEffect | StopEffect]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopEffect | StopEffect]]
 +
 
| <code>void StopEffect(handle a, string b) </code>
 
| <code>void StopEffect(handle a, string b) </code>
 +
 
| (hEntity, szEffectName)
 
| (hEntity, szEffectName)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToAllGameEvents | StopListeningToAllGameEvents]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToAllGameEvents | StopListeningToAllGameEvents]]
 +
 
| <code>void StopListeningToAllGameEvents(handle a) </code>
 
| <code>void StopListeningToAllGameEvents(handle a) </code>
| Stop listening to all game events within a specific context.
+
 
 +
| 停止listen在给定内容内的所有游戏事件
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToGameEvent | StopListeningToGameEvent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopListeningToGameEvent | StopListeningToGameEvent]]
 +
 
| <code>bool StopListeningToGameEvent(int a) </code>
 
| <code>bool StopListeningToGameEvent(int a) </code>
| Stop listening to a particular game event.
+
 
 +
| 停止listen特定的游戏事件
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundEvent | StopSoundEvent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundEvent | StopSoundEvent]]
 +
 
| <code>void StopSoundEvent(string a, handle b) </code>
 
| <code>void StopSoundEvent(string a, handle b) </code>
| Stops a sound event
+
 
 +
| 停止音效事件
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundOn | StopSoundOn]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StopSoundOn | StopSoundOn]]
 +
 
| <code>void StopSoundOn(string soundName, handle playingEntity) </code>
 
| <code>void StopSoundOn(string soundName, handle playingEntity) </code>
| Stop named sound on Entity
+
 
 +
| 停止实体上的命名音效
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StringToFile | StringToFile]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.StringToFile | StringToFile]]
 +
 
| <code>bool StringToFile(string a, string b) </code>
 
| <code>bool StringToFile(string a, string b) </code>
| Store a ''string'' to a file for later reading
+
 
 +
| * 目录遍历似乎无效,字符'.','/'和'\\'被忽略,文件名不能为空,也不能包含忽略字符,否则函数无效并返回false,一次只能保存一个字符串,每次调用文件都被覆盖,文件以一个NUL字符结尾,文件被保存在C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota_ugc\game\dota\ems,函数用途与FileToString相反
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.Time | Time]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.Time | Time]]
 +
 
| <code>float Time() </code>
 
| <code>float Time() </code>
| Get the current server time
+
 
 +
| 获取当前服务器时间
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceCollideable | TraceCollideable]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceCollideable | TraceCollideable]]
 +
 
| <code>bool TraceCollideable(handle a) </code>
 
| <code>bool TraceCollideable(handle a) </code>
| Pass ''table'' - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
+
 
 +
| 传递table - 输入: start, end, ent, (可选 mins, maxs) -- 输出: pos, fraction, hit, startsolid, normal
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceHull | TraceHull]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceHull | TraceHull]]
 +
 
| <code>bool TraceHull(handle a) </code>
 
| <code>bool TraceHull(handle a) </code>
| Pass ''table'' - Inputs: start, end, min, max, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
+
 
 +
| 传递table - 输入: start, end, min, max, mask, ignore -- 输出: pos, fraction, hit, enthit, startsolid
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceLine | TraceLine]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.TraceLine | TraceLine]]
 +
 
| <code>bool TraceLine(handle a) </code>
 
| <code>bool TraceLine(handle a) </code>
| Pass ''table'' - Inputs: startpos, endpos, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
+
 
 +
| Pass table - 输入: startpos, endpos, mask, ignore -- 输出: pos, fraction, hit, enthit, startsolid
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroup | UnloadSpawnGroup]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroup | UnloadSpawnGroup]]
 +
 
| <code>void UnloadSpawnGroup(string a) </code>
 
| <code>void UnloadSpawnGroup(string a) </code>
| Unload a spawn group by name
+
 
 +
| 通过名称去除生成组
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroupByHandle | UnloadSpawnGroupByHandle]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UnloadSpawnGroupByHandle | UnloadSpawnGroupByHandle]]
 +
 
| <code>void UnloadSpawnGroupByHandle(int a) </code>
 
| <code>void UnloadSpawnGroupByHandle(int a) </code>
| Unload a spawn group by ''handle''
+
 
 +
| 通过handle去除生成组
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UpdateEventPoints | UpdateEventPoints]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UpdateEventPoints | UpdateEventPoints]]
 +
 
| <code>void UpdateEventPoints(handle a) </code>
 
| <code>void UpdateEventPoints(handle a) </code>
| 暂无描述
+
 
 +
| 暂无
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_MessageText | UTIL_MessageText]]
 +
 
 +
| <code>void UTIL_MessageText(int playerId, string message, int r, int g, int b, int a) </code>
 +
 
 +
| Displays a message for a specific player
 +
 
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_MessageText_WithContext | UTIL_MessageText_WithContext]]
 +
 
 +
| <code>void UTIL_MessageText_WithContext(int playerId, string message, int r, int g, int b, int a, table context) </code>
 +
 
 +
| Sends a message to a specific player in the message box with a context table
 +
 
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_MessageTextAll | UTIL_MessageTextAll]]
 +
 
 +
| <code>void UTIL_MessageTextAll(string message, int r, int g, int b, int a) </code>
 +
 
 +
| Sends a message to everyone in the message box
 +
 
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_MessageTextAll_WithContext | UTIL_MessageTextAll_WithContext]]
 +
 
 +
| <code>void UTIL_MessageTextAll_WithContext(string message, int r, int g, int b, int a, table context) </code>
 +
 
 +
| Sends a message to everyone in the message box with a context table
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_Remove | UTIL_Remove]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_Remove | UTIL_Remove]]
 +
 
| <code>void UTIL_Remove(handle a) </code>
 
| <code>void UTIL_Remove(handle a) </code>
| Removes the specified entity
+
 
 +
| 删除给定实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_RemoveImmediate | UTIL_RemoveImmediate]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_RemoveImmediate | UTIL_RemoveImmediate]]
 +
 
| <code>void UTIL_RemoveImmediate(handle a) </code>
 
| <code>void UTIL_RemoveImmediate(handle a) </code>
| Immediately removes the specified entity
+
 
 +
| 立即删除给定实体
 
|-
 
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.VectorToAngles | VectorToAngles]]
+
 
| <code>QAngle VectorToAngles(Vector a) </code>
+
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_ResetMessageText | UTIL_ResetMessageText]]
| Get Qangles (with no roll) for a ''Vector''.
+
 
 +
| <code>void UTIL_ResetMessageText(int playerId) </code>
 +
 
 +
| Resets the message text for the player
 +
 
 
|-
 
|-
| [[Dota 2 Workshop Tools/Scripting/API/Global.Warning | Warning]]
 
| <code>void Warning(string a) </code>
 
| Print a warning
 
|}
 
  
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.UTIL_ResetMessageTextAll | UTIL_ResetMessageTextAll]]
 +
 +
| <code>void UTIL_ResetMessageTextAll() </code>
 +
 +
| Resets the message text for all players
  
=== CBaseEntity ===
 
''The base class for stuff''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
 
|-
 
|-
 +
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.VectorToAngles | VectorToAngles]]
 +
 +
| <code>QAngle VectorToAngles(Vector a) </code>
 +
 +
| 为Vector获取Qangle(没有滚动)
 +
|-
 +
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.Warning | Warning]]
 +
 +
| <code>void Warning(string a) </code>
 +
 +
| 输出警告
 +
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse | ApplyAbsVelocityImpulse]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyAbsVelocityImpulse | ApplyAbsVelocityImpulse]]
 +
 
| <code>void ApplyAbsVelocityImpulse(Vector a) </code>
 
| <code>void ApplyAbsVelocityImpulse(Vector a) </code>
| Apply a Velocity Impulse
+
 
 +
| 添加一个速度冲击
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse | ApplyLocalAngularVelocityImpulse]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.ApplyLocalAngularVelocityImpulse | ApplyLocalAngularVelocityImpulse]]
 +
 
| <code>void ApplyLocalAngularVelocityImpulse(Vector a) </code>
 
| <code>void ApplyLocalAngularVelocityImpulse(Vector a) </code>
| Apply an Ang Velocity Impulse
+
 
 +
| 添加一个角速度的冲击
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSound | EmitSound]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSound | EmitSound]]
 +
 
| <code>void EmitSound(string soundName) </code>
 
| <code>void EmitSound(string soundName) </code>
|
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams | EmitSoundParams]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EmitSoundParams | EmitSoundParams]]
 +
 
| <code>void EmitSoundParams(string soundName, int pitch, float volume, float soundTime) </code>
 
| <code>void EmitSoundParams(string soundName, int pitch, float volume, float soundTime) </code>
| Plays/modifies a sound from this entity. changes sound if Pitch and/or Volume or SoundTime is > 0.
+
 
 +
| 播放/修改这个实体的声音.当音调,音量或播放时间大于零时改变声音
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyeAngles | EyeAngles]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyeAngles | EyeAngles]]
 +
 
| <code>QAngle EyeAngles() </code>
 
| <code>QAngle EyeAngles() </code>
| Get the qangles that this entity is looking at.
+
 
 +
| 获得这个实体的视角qangles
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyePosition | EyePosition]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.EyePosition | EyePosition]]
 +
 
| <code>Vector EyePosition() </code>
 
| <code>Vector EyePosition() </code>
| Get ''vector'' to eye position - absolute coords
+
 
 +
| 获得指向视角位置的矢量,位置为绝对坐标
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.FirstMoveChild | FirstMoveChild]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.FirstMoveChild | FirstMoveChild]]
 +
 
| <code>handle FirstMoveChild() </code>
 
| <code>handle FirstMoveChild() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria | GatherCriteria]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GatherCriteria | GatherCriteria]]
 +
 
| <code>void GatherCriteria(handle a) </code>
 
| <code>void GatherCriteria(handle a) </code>
| Returns a ''table'' containing the criteria that would be used for response queries on this entity. This is the same as the ''table'' that is passed to response rule script function callbacks.
+
 
 +
| 返回一个表包含用在这个实体的判定的标准.这个表等同于传入脚本方法的调用.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAbsOrigin | GetAbsOrigin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAbsOrigin | GetAbsOrigin]]
 +
 
| <code>Vector GetAbsOrigin() </code>
 
| <code>Vector GetAbsOrigin() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngles | GetAngles]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngles | GetAngles]]
 +
 
| <code>QAngle GetAngles() </code>
 
| <code>QAngle GetAngles() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAnglesAsVector | GetAnglesAsVector]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAnglesAsVector | GetAnglesAsVector]]
 +
 
| <code>Vector GetAnglesAsVector() </code>
 
| <code>Vector GetAnglesAsVector() </code>
| Get entity pitch, yaw, roll as a ''vector''
+
 
 +
| 获得实体的颠簸,偏航,摇晃的矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngularVelocity | GetAngularVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetAngularVelocity | GetAngularVelocity]]
 +
 
| <code>Vector GetAngularVelocity() </code>
 
| <code>Vector GetAngularVelocity() </code>
| Get the local angular velocity - returns a ''vector'' of pitch,yaw,roll
+
 
 +
| 获得当前角速度,返回颠簸,偏航,摇晃的矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBaseVelocity | GetBaseVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBaseVelocity | GetBaseVelocity]]
 +
 
| <code>Vector GetBaseVelocity() </code>
 
| <code>Vector GetBaseVelocity() </code>
| Get Base velocity
+
 
 +
| 获得基础速度
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMaxs | GetBoundingMaxs]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMaxs | GetBoundingMaxs]]
 +
 
| <code>Vector GetBoundingMaxs() </code>
 
| <code>Vector GetBoundingMaxs() </code>
| Get a ''vector'' containing max bounds, centered on object
+
 
 +
| 获得一个包含最大范围,以物体为中心的矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMins | GetBoundingMins]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBoundingMins | GetBoundingMins]]
 +
 
| <code>Vector GetBoundingMins() </code>
 
| <code>Vector GetBoundingMins() </code>
| Get a ''vector'' containing min bounds, centered on object
+
 
 +
| 获得一个包含最小范围,以物体为中心的矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBounds | GetBounds]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetBounds | GetBounds]]
 +
 
| <code>table GetBounds() </code>
 
| <code>table GetBounds() </code>
| Get a ''table'' containing the 'Mins' & 'Maxs' ''vector'' bounds, centered on object
+
 
 +
| 获得一个以物体为中心,包含“Mins”和“Maxs”矢量的表
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetCenter | GetCenter]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetCenter | GetCenter]]
 +
 
| <code>Vector GetCenter() </code>
 
| <code>Vector GetCenter() </code>
| Get ''vector'' to center of object - absolute coords
+
 
 +
| 获得指向物体中心的矢量,以绝对坐标的形式
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetChildren | GetChildren]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetChildren | GetChildren]]
 +
 
| <code>handle GetChildren() </code>
 
| <code>handle GetChildren() </code>
| Get the entities parented to this entity.
+
 
 +
| 获得继承这个实体的实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext | GetContext]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetContext | GetContext]]
 +
 
| <code>table GetContext(string a) </code>
 
| <code>table GetContext(string a) </code>
| GetContext( name ): looks up a context and returns it if available. May return ''string'', ''float'', or ''nil'' (if the context isn't found)
+
 
 +
| GetContext( name ):检查一个对象的状态然后返回对象是否可用.可能返回string,float,或nil(如果对象没有找到)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetForwardVector | GetForwardVector]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetForwardVector | GetForwardVector]]
 +
 
| <code>Vector GetForwardVector() </code>
 
| <code>Vector GetForwardVector() </code>
| Get the forward ''vector'' of the entity
+
 
 +
| 获得这个实体的前进矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetHealth | GetHealth]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetHealth | GetHealth]]
 +
 
| <code>int GetHealth() </code>
 
| <code>int GetHealth() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalAngularVelocity | GetLocalAngularVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalAngularVelocity | GetLocalAngularVelocity]]
 +
 
| <code>QAngle GetLocalAngularVelocity() </code>
 
| <code>QAngle GetLocalAngularVelocity() </code>
| Maybe local angvel
+
 
 +
| 可能为当前角速度
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalVelocity | GetLocalVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetLocalVelocity | GetLocalVelocity]]
 +
 
| <code>Vector GetLocalVelocity() </code>
 
| <code>Vector GetLocalVelocity() </code>
| Get Entity relative velocity
+
 
 +
| 获得实体相对速度
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMaxHealth | GetMaxHealth]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMaxHealth | GetMaxHealth]]
 +
 
| <code>int GetMaxHealth() </code>
 
| <code>int GetMaxHealth() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetModelName | GetModelName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetModelName | GetModelName]]
 +
 
| <code>string GetModelName() </code>
 
| <code>string GetModelName() </code>
| Returns the name of the model
+
 
 +
| 获得模型的名字
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMoveParent | GetMoveParent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetMoveParent | GetMoveParent]]
 +
 
| <code>handle GetMoveParent() </code>
 
| <code>handle GetMoveParent() </code>
| If in hierarchy, retrieves the entity's parent
+
 
 +
| 如果在有继承对象,恢复实体所继承的对象
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOrigin | GetOrigin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOrigin | GetOrigin]]
 +
 
| <code>Vector GetOrigin() </code>
 
| <code>Vector GetOrigin() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwner | GetOwner]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwner | GetOwner]]
 +
 
| <code>handle GetOwner() </code>
 
| <code>handle GetOwner() </code>
| Gets this entity's owner
+
 
 +
| 获得实体的所有者
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwnerEntity | GetOwnerEntity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetOwnerEntity | GetOwnerEntity]]
 +
 
| <code>handle GetOwnerEntity() </code>
 
| <code>handle GetOwnerEntity() </code>
| Get the owner entity, if there is one
+
 
 +
| 获得拥有者的实体,如果有的话
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRightVector | GetRightVector]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRightVector | GetRightVector]]
 +
 
| <code>Vector GetRightVector() </code>
 
| <code>Vector GetRightVector() </code>
| Get the right ''vector'' of the entity
+
 
 +
| 获得实体的右方矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRootMoveParent | GetRootMoveParent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetRootMoveParent | GetRootMoveParent]]
 +
 
| <code>handle GetRootMoveParent() </code>
 
| <code>handle GetRootMoveParent() </code>
| If in hierarchy, walks up the hierarchy to find the root parent
+
 
 +
| 如果在继承关系里,在继承关系中寻找所继承的根源对象
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetSoundDuration | GetSoundDuration]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetSoundDuration | GetSoundDuration]]
 +
 
| <code>float GetSoundDuration(string soundName, string actormodelname) </code>
 
| <code>float GetSoundDuration(string soundName, string actormodelname) </code>
| Returns ''float'' duration of the sound. Takes soundname and optional actormodelname.
+
 
 +
| 返回声音的播放时间.传入声音名字和可选的应用模型名字.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetTeam | GetTeam]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetTeam | GetTeam]]
 +
 
| <code>int GetTeam() </code>
 
| <code>int GetTeam() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetUpVector | GetUpVector]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetUpVector | GetUpVector]]
 +
 
| <code>Vector GetUpVector() </code>
 
| <code>Vector GetUpVector() </code>
| Get the up ''vector'' of the entity
+
 
 +
| 获得实体的上方矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetVelocity | GetVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetVelocity | GetVelocity]]
 +
 
| <code>Vector GetVelocity() </code>
 
| <code>Vector GetVelocity() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsAlive | IsAlive]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsAlive | IsAlive]]
 +
 
| <code>bool IsAlive() </code>
 
| <code>bool IsAlive() </code>
| 暂无描述。
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsPlayer | IsPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.IsPlayer | IsPlayer]]
 +
 
| <code>bool IsPlayer() </code>
 
| <code>bool IsPlayer() </code>
| Is this a player entity?
+
 
 +
| 是否为玩家的实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Kill | Kill]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Kill | Kill]]
 +
 
| <code>void Kill() </code>
 
| <code>void Kill() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.NextMovePeer | NextMovePeer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.NextMovePeer | NextMovePeer]]
 +
 
| <code>handle NextMovePeer() </code>
 
| <code>handle NextMovePeer() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction | OverrideFriction]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.OverrideFriction | OverrideFriction]]
 +
 
| <code>void OverrideFriction(float a, float b) </code>
 
| <code>void OverrideFriction(float a, float b) </code>
| Takes duration, value for a temporary override
+
 
 +
| 暂时重设阻力的持续时间和值
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.PrecacheScriptSound | PrecacheScriptSound]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.PrecacheScriptSound | PrecacheScriptSound]]
 +
 
| <code>void PrecacheScriptSound(string a) </code>
 
| <code>void PrecacheScriptSound(string a) </code>
| Precache a sound for later playing.
+
 
 +
| 预载声音文件
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAbsOrigin | SetAbsOrigin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAbsOrigin | SetAbsOrigin]]
 +
 
| <code>void SetAbsOrigin(Vector origin) </code>
 
| <code>void SetAbsOrigin(Vector origin) </code>
| SetAbsOrigin
+
 
 +
| 设置绝对来源
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngles | SetAngles]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngles | SetAngles]]
 +
 
| <code>void SetAngles(float pitch, float yaw, float roll) </code>
 
| <code>void SetAngles(float pitch, float yaw, float roll) </code>
| Set entity pitch, yaw, roll
+
 
 +
| 设置实体的颠簸,偏航,摇晃
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngularVelocity | SetAngularVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetAngularVelocity | SetAngularVelocity]]
 +
 
| <code>void SetAngularVelocity(float pitch, float yaw, float roll) </code>
 
| <code>void SetAngularVelocity(float pitch, float yaw, float roll) </code>
| Set the local angular velocity - takes ''float'' pitch,yaw,roll velocities
+
 
 +
| 设置当前角速度,使用实数颠簸,偏航,摇晃速度
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext | SetContext]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContext | SetContext]]
 +
 
| <code>void SetContext(string a, string b, float c) </code>
 
| <code>void SetContext(string a, string b, float c) </code>
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a ''string''. Will last for duration (set 0 to mean 'forever').
+
 
 +
| SetContext( 名字 , , 持续时间 ):存储任何在实体对话内容里的配对值.值是一个字符串.持续一段时间.(0代表永久)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextNum | SetContextNum]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextNum | SetContextNum]]
 +
 
| <code>void SetContextNum(string a, float b, float c) </code>
 
| <code>void SetContextNum(string a, float b, float c) </code>
| SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (''int'' or ''float''). Will last for duration (set 0 to mean 'forever').
+
 
 +
| SetContext( 名字 , , 持续时间 ):存储任何在实体对话内容里的配对值.值是一个数字(int或者float).持续一段时间.(0代表永久)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextThink | SetContextThink]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetContextThink | SetContextThink]]
 +
 
| <code>void SetContextThink(string a, handle b, float c) </code>
 
| <code>void SetContextThink(string a, handle b, float c) </code>
| Set a think function on this entity.
+
 
 +
| 在这个实体上设置一个计时器/DescriptionCN><HowToCall><Parameter>a:名字,b:实体? c:时间</Parameter><Return></Return><PS></PS></HowToCall>
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetForwardVector | SetForwardVector]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetForwardVector | SetForwardVector]]
 +
 
| <code>void SetForwardVector(Vector forwardVec) </code>
 
| <code>void SetForwardVector(Vector forwardVec) </code>
| Set the orientation of the entity to have this forward ''forwardVec''
+
 
 +
| 设置实体的方向为前进矢量
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction | SetFriction]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetFriction | SetFriction]]
 +
 
| <code>void SetFriction(float a) </code>
 
| <code>void SetFriction(float a) </code>
| Set PLAYER friction, ignored for objects
+
 
 +
| 设置玩家阻力,无视物体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetGravity | SetGravity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetGravity | SetGravity]]
 +
 
| <code>void SetGravity(float a) </code>
 
| <code>void SetGravity(float a) </code>
| Set PLAYER gravity, ignored for objects
+
 
 +
| 设置玩家引力,无视物体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetHealth | SetHealth]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetHealth | SetHealth]]
 +
 
| <code>void SetHealth(int hp) </code>
 
| <code>void SetHealth(int hp) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetMaxHealth | SetMaxHealth]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetMaxHealth | SetMaxHealth]]
 +
 
| <code>void SetMaxHealth(int maxHP) </code>
 
| <code>void SetMaxHealth(int maxHP) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetModel | SetModel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetModel | SetModel]]
 +
 
| <code>void SetModel(string modelName) </code>
 
| <code>void SetModel(string modelName) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOrigin | SetOrigin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOrigin | SetOrigin]]
 +
 
| <code>void SetOrigin(Vector origin) </code>
 
| <code>void SetOrigin(Vector origin) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOwner | SetOwner]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetOwner | SetOwner]]
 +
 
| <code>void SetOwner(handle owningEntity) </code>
 
| <code>void SetOwner(handle owningEntity) </code>
| Sets this entity's owner
+
 
 +
| 设定实体的所有者
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent | SetParent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetParent | SetParent]]
 +
 
| <code>void SetParent(handle a, string b) </code>
 
| <code>void SetParent(handle a, string b) </code>
| Set the parent for this entity.
+
 
 +
| 设定这个实体的所继承的父实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetRenderColor | SetRenderColor]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetRenderColor | SetRenderColor]]
 +
 
| <code>void SetRenderColor(int a, int b, int c) </code>
 
| <code>void SetRenderColor(int a, int b, int c) </code>
| SetRenderColor( r, g, b ): Sets the render color of the entity.
+
 
 +
| SetRenderColor( r, g, b ):设定实体的渲染颜色
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetSize | SetSize]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetSize | SetSize]]
 +
 
| <code>void SetSize(Vector a, Vector b) </code>
 
| <code>void SetSize(Vector a, Vector b) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetTeam | SetTeam]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetTeam | SetTeam]]
 +
 
| <code>void SetTeam(int team) </code>
 
| <code>void SetTeam(int team) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity | SetVelocity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.SetVelocity | SetVelocity]]
 +
 
| <code>void SetVelocity(Vector a) </code>
 
| <code>void SetVelocity(Vector a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.StopSound | StopSound]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.StopSound | StopSound]]
 +
 
| <code>void StopSound(string soundName) </code>
 
| <code>void StopSound(string soundName) </code>
| Stops a named sound playing from this entity.
+
 
 +
| 停止播放这个实体的特定的声音
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Trigger | Trigger]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBaseEntity.Trigger | Trigger]]
 +
 
| <code>void Trigger() </code>
 
| <code>void Trigger() </code>
| Fires off this entity's OnTrigger responses
 
|}
 
  
 +
| 触发这个实体的触发器
 +
|-
  
=== CEntities ===
+
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.CreateByClassname | CreateByClassname]]
''暂无描述''
 
  
''Global accessor variable:'' <code>Entities</code>
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.CreateByClassname | CreateByClassname]]
 
 
| <code>handle CreateByClassname(string className) </code>
 
| <code>handle CreateByClassname(string className) </code>
| Creates an entity by classname
+
 
 +
| 用类名来创建一个实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname | FindAllByClassname]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassname | FindAllByClassname]]
 +
 
| <code>table FindAllByClassname(string a) </code>
 
| <code>table FindAllByClassname(string a) </code>
| Finds all entities by class name. Returns an array containing all the found entities.
+
 
 +
| 通过类名来寻找所有实体.返回被找到实体的数组或表.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassnameWithin | FindAllByClassnameWithin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByClassnameWithin | FindAllByClassnameWithin]]
 +
 
| <code>table FindAllByClassnameWithin(string a, Vector b, float c) </code>
 
| <code>table FindAllByClassnameWithin(string a, Vector b, float c) </code>
| Find entities by class name within a radius.
+
 
 +
| 在一个半径范围内通过类名寻找实体.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByModel | FindAllByModel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByModel | FindAllByModel]]
 +
 
| <code>table FindAllByModel(string modelName) </code>
 
| <code>table FindAllByModel(string modelName) </code>
| Find entities by model name.
+
 
 +
| 通过模型名字来找到对象.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByName | FindAllByName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByName | FindAllByName]]
 +
 
| <code>table FindAllByName(string name) </code>
 
| <code>table FindAllByName(string name) </code>
| Find all entities by name. Returns an array containing all the found entities in it.
+
 
 +
| 通过名字来寻找所有实体.返回被找到实体的数组或表.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByNameWithin | FindAllByNameWithin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByNameWithin | FindAllByNameWithin]]
 +
 
| <code>table FindAllByNameWithin(string name, Vector origin, float maxRadius) </code>
 
| <code>table FindAllByNameWithin(string name, Vector origin, float maxRadius) </code>
| Find entities by name within a radius.
+
 
 +
| 在半径范围内通过名字来寻找实体.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByTarget | FindAllByTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllByTarget | FindAllByTarget]]
 +
 
| <code>table FindAllByTarget(string targetName) </code>
 
| <code>table FindAllByTarget(string targetName) </code>
| Find entities by targetname.
+
 
 +
| 通过目标名字来寻找实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllInSphere | FindAllInSphere]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindAllInSphere | FindAllInSphere]]
 +
 
| <code>table FindAllInSphere(Vector origin, float maxRadius) </code>
 
| <code>table FindAllInSphere(Vector origin, float maxRadius) </code>
| Find entities within a radius.
+
 
 +
| 在(球形)范围内寻找实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassname | FindByClassname]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassname | FindByClassname]]
 +
 
| <code>handle FindByClassname(handle startFrom, string className) </code>
 
| <code>handle FindByClassname(handle startFrom, string className) </code>
| Find entities by class name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
+
 
 +
| 通过类名寻找实体.传入nil就从头进行迭代寻找,传入之前找到的实体可以以之作为起点开始寻找
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameNearest | FindByClassnameNearest]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameNearest | FindByClassnameNearest]]
 +
 
| <code>handle FindByClassnameNearest(string className, Vector origin, float maxRadius) </code>
 
| <code>handle FindByClassnameNearest(string className, Vector origin, float maxRadius) </code>
| Find entities by class name nearest to a point.
+
 
 +
| 在最近一个点通过类名寻找实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameWithin | FindByClassnameWithin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByClassnameWithin | FindByClassnameWithin]]
 +
 
| <code>handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) </code>
 
| <code>handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) </code>
| Find entities by class name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
+
 
 +
| 在半径范围内通过类名寻找实体.传入nil就从头进行迭代寻找,传入之前找到的实体可以以之作为起点开始寻找
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModel | FindByModel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModel | FindByModel]]
 +
 
| <code>handle FindByModel(handle startFrom, string modelName) </code>
 
| <code>handle FindByModel(handle startFrom, string modelName) </code>
| Find entities by model name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
+
 
 +
| 通过模型名字寻找实体.传入nil就从头进行迭代寻找,传入之前找到的实体可以以之作为起点开始寻找
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModelWithin | FindByModelWithin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByModelWithin | FindByModelWithin]]
 +
 
| <code>handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) </code>
 
| <code>handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) </code>
| Find entities by model name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
+
 
 +
| 在半径范围内通过模型名字寻找实体.传入nil就从头进行迭代寻找,传入之前找到的实体可以以之作为起点开始寻找
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByName | FindByName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByName | FindByName]]
 +
 
| <code>handle FindByName(handle lastEnt, string searchString) </code>
 
| <code>handle FindByName(handle lastEnt, string searchString) </code>
| Find entities by name. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
+
 
 +
| 通过名字寻找实体.传入nil就从头进行迭代寻找,传入之前找到的实体可以以之作为起点开始寻找
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameNearest | FindByNameNearest]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameNearest | FindByNameNearest]]
 +
 
| <code>handle FindByNameNearest(string name, Vector origin, float maxRadius) </code>
 
| <code>handle FindByNameNearest(string name, Vector origin, float maxRadius) </code>
| Find entities by name nearest to a point.
+
 
 +
| 通过名字寻找最近原点的实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameWithin | FindByNameWithin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByNameWithin | FindByNameWithin]]
 +
 
| <code>handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) </code>
 
| <code>handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) </code>
| Find entities by name within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
+
 
 +
| 在半径范围内通过名字寻找实体.传入nil就从头进行迭代寻找,传入之前找到的实体可以以之作为起点开始寻找
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByTarget | FindByTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindByTarget | FindByTarget]]
 +
 
| <code>handle FindByTarget(handle startFrom, string targetName) </code>
 
| <code>handle FindByTarget(handle startFrom, string targetName) </code>
| Find entities by targetname. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
+
 
 +
| 通过目标名字寻找实体.传入nil就从头进行迭代寻找,传入之前找到的实体可以以之作为起点开始寻找
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindInSphere | FindInSphere]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.FindInSphere | FindInSphere]]
 +
 
| <code>handle FindInSphere(handle startFrom, Vector origin, float maxRadius) </code>
 
| <code>handle FindInSphere(handle startFrom, Vector origin, float maxRadius) </code>
| Find entities within a radius. Pass ''nil'' to start an iteration, or reference to a previously found entity to continue a search
+
 
 +
| 在半径范围内寻找实体.传入nil就从头进行迭代寻找,传入之前找到的实体可以以之作为起点开始寻找
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.First | First]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.First | First]]
 +
 
| <code>handle First() </code>
 
| <code>handle First() </code>
| Begin an iteration over the list of entities
+
 
 +
| 在实体数组或表中开始一个迭代程序
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.Next | Next]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntities.Next | Next]]
 +
 
| <code>handle Next(handle startFrom) </code>
 
| <code>handle Next(handle startFrom) </code>
| Continue an iteration over the list of entities, providing reference to a previously found entity
 
|}
 
  
 +
| 从指定列表中的实体开始迭代
 +
|-
  
=== CEntityInstance ===
 
''暂无描述''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput | ConnectOutput]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.ConnectOutput | ConnectOutput]]
 +
 
| <code>void ConnectOutput(string a, string b) </code>
 
| <code>void ConnectOutput(string a, string b) </code>
| Adds an I/O connection that will call the named function on this entity when the specified output fires.
+
 
 +
| 添加一个I/O链接,这可以当特定输出触发时,在这个实体调用方法
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.Destroy | Destroy]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.Destroy | Destroy]]
 +
 
| <code>void Destroy() </code>
 
| <code>void Destroy() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput | DisconnectOutput]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectOutput | DisconnectOutput]]
 +
 
| <code>void DisconnectOutput(string a, string b) </code>
 
| <code>void DisconnectOutput(string a, string b) </code>
| Removes a connected script function from an I/O event on this entity.
+
 
 +
| 从这个实体的I/O事件移除已连接的脚本方法
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectRedirectedOutput | DisconnectRedirectedOutput]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.DisconnectRedirectedOutput | DisconnectRedirectedOutput]]
 +
 
| <code>void DisconnectRedirectedOutput(string a, string b, handle c) </code>
 
| <code>void DisconnectRedirectedOutput(string a, string b, handle c) </code>
| Removes a connected script function from an I/O event on the passed entity.
+
 
 +
| 从传入实体的I/O事件移除已连接的脚本方法
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.entindex | entindex]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.entindex | entindex]]
 +
 
| <code>int entindex() </code>
 
| <code>int entindex() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput | FireOutput]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.FireOutput | FireOutput]]
| <code>void FireOutput(string a, handle b, handle c, table d, float e) </code>
+
 
| Fire an entity output
+
| <code>void FireOutput(string outputName, handle activator, handle caller, table args, float delay) </code>
 +
 
 +
| 触发实体的输出
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetClassname | GetClassname]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetClassname | GetClassname]]
 +
 
| <code>string GetClassname() </code>
 
| <code>string GetClassname() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetDebugName | GetDebugName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetDebugName | GetDebugName]]
 +
 
| <code>string GetDebugName() </code>
 
| <code>string GetDebugName() </code>
| Get the entity name w/help if not defined (i.e. classname/etc)
+
 
 +
| 如果没有定义的话获得实体名字的帮助
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityHandle | GetEntityHandle]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityHandle | GetEntityHandle]]
 +
 
| <code>ehandle GetEntityHandle() </code>
 
| <code>ehandle GetEntityHandle() </code>
| Get the entity as an EHANDLE
+
 
 +
| 获得这个实体的EHANDLE
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityIndex | GetEntityIndex]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetEntityIndex | GetEntityIndex]]
 +
 
| <code>int GetEntityIndex() </code>
 
| <code>int GetEntityIndex() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr | GetIntAttr]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetIntAttr | GetIntAttr]]
 +
 
| <code>int GetIntAttr(string a) </code>
 
| <code>int GetIntAttr(string a) </code>
| Get Integer Attribute
+
 
 +
| 获得整型属性
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetName | GetName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetName | GetName]]
 +
 
| <code>string GetName() </code>
 
| <code>string GetName() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePrivateScriptScope | GetOrCreatePrivateScriptScope]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePrivateScriptScope | GetOrCreatePrivateScriptScope]]
 +
 
| <code>handle GetOrCreatePrivateScriptScope() </code>
 
| <code>handle GetOrCreatePrivateScriptScope() </code>
| Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
+
 
 +
| 恢复实体相关的每个实例私有的脚本数据,必要时会创建
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePublicScriptScope | GetOrCreatePublicScriptScope]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetOrCreatePublicScriptScope | GetOrCreatePublicScriptScope]]
 +
 
| <code>handle GetOrCreatePublicScriptScope() </code>
 
| <code>handle GetOrCreatePublicScriptScope() </code>
| Retrieve, creating if necessary, the public script-side data associated with an entity
+
 
 +
| 恢复实体相关的公用脚本数据,必要时会创建
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPrivateScriptScope | GetPrivateScriptScope]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPrivateScriptScope | GetPrivateScriptScope]]
 +
 
| <code>handle GetPrivateScriptScope() </code>
 
| <code>handle GetPrivateScriptScope() </code>
| Retrieve the private per-instance script-side data associated with an entity
+
 
 +
| 恢复实体相关的每个实例私有的脚本数据
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPublicScriptScope | GetPublicScriptScope]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.GetPublicScriptScope | GetPublicScriptScope]]
 +
 
| <code>handle GetPublicScriptScope() </code>
 
| <code>handle GetPublicScriptScope() </code>
| Retrieve the public script-side data associated with an entity
+
 
 +
| 恢复实体相关的公用脚本数据
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput | RedirectOutput]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RedirectOutput | RedirectOutput]]
 +
 
| <code>void RedirectOutput(string a, string b, handle c) </code>
 
| <code>void RedirectOutput(string a, string b, handle c) </code>
| Adds an I/O connection that will call the named function on the passed entity when the specified output fires.
+
 
 +
| 添加一个I/O链接,这可以当特定输出触发时,在这个实体调用方法
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RemoveSelf | RemoveSelf]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.RemoveSelf | RemoveSelf]]
 +
 
| <code>void RemoveSelf() </code>
 
| <code>void RemoveSelf() </code>
| Delete this entity
+
 
 +
| 删除这个实体
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.SetIntAttr | SetIntAttr]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CEntityInstance.SetIntAttr | SetIntAttr]]
 +
 
| <code>void SetIntAttr(string a, int b) </code>
 
| <code>void SetIntAttr(string a, int b) </code>
| Set Integer Attribute
 
|}
 
  
 +
| 设置整型属性
 +
|-
  
=== CDOTABaseAbility ===
 
:::::extends [[#CBaseEntity| CBaseEntity]]
 
''暂无描述''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CastAbility | CastAbility]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CastAbility | CastAbility]]
 +
 
| <code>void CastAbility() </code>
 
| <code>void CastAbility() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ContinueCasting | ContinueCasting]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ContinueCasting | ContinueCasting]]
 +
 
| <code>bool ContinueCasting() </code>
 
| <code>bool ContinueCasting() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]]
 +
 
| <code>void CreateVisibilityNode(Vector a, float b, float c) </code>
 
| <code>void CreateVisibilityNode(Vector a, float b, float c) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.DecrementModifierRefCount | DecrementModifierRefCount]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.DecrementModifierRefCount | DecrementModifierRefCount]]
 +
 
| <code>void DecrementModifierRefCount() </code>
 
| <code>void DecrementModifierRefCount() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]]
 +
 
| <code>void EndChannel(bool a) </code>
 
| <code>void EndChannel(bool a) </code>
| Param: ''bool'' bInterrupted
+
 
 +
| 参数: bool bInterrupted
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndCooldown | EndCooldown]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndCooldown | EndCooldown]]
 +
 
| <code>void EndCooldown() </code>
 
| <code>void EndCooldown() </code>
| Clear the cooldown remaining on this ability.
+
 
 +
| 刷新这个技能
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamage | GetAbilityDamage]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamage | GetAbilityDamage]]
 +
 
| <code>int GetAbilityDamage() </code>
 
| <code>int GetAbilityDamage() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamageType | GetAbilityDamageType]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamageType | GetAbilityDamageType]]
 +
 
| <code>int GetAbilityDamageType() </code>
 
| <code>int GetAbilityDamageType() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityIndex | GetAbilityIndex]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityIndex | GetAbilityIndex]]
 +
 
| <code>int GetAbilityIndex() </code>
 
| <code>int GetAbilityIndex() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityName | GetAbilityName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityName | GetAbilityName]]
 +
 
| <code>string GetAbilityName() </code>
 
| <code>string GetAbilityName() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetFlags | GetAbilityTargetFlags]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetFlags | GetAbilityTargetFlags]]
 +
 
| <code>int GetAbilityTargetFlags() </code>
 
| <code>int GetAbilityTargetFlags() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetTeam | GetAbilityTargetTeam]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetTeam | GetAbilityTargetTeam]]
 +
 
| <code>int GetAbilityTargetTeam() </code>
 
| <code>int GetAbilityTargetTeam() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetType | GetAbilityTargetType]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetType | GetAbilityTargetType]]
 +
 
| <code>int GetAbilityTargetType() </code>
 
| <code>int GetAbilityTargetType() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityType | GetAbilityType]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityType | GetAbilityType]]
 +
 
| <code>int GetAbilityType() </code>
 
| <code>int GetAbilityType() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAnimationIgnoresModelScale | GetAnimationIgnoresModelScale]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAnimationIgnoresModelScale | GetAnimationIgnoresModelScale]]
 +
 
| <code>bool GetAnimationIgnoresModelScale() </code>
 
| <code>bool GetAnimationIgnoresModelScale() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedPrimaryAbilities | GetAssociatedPrimaryAbilities]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedPrimaryAbilities | GetAssociatedPrimaryAbilities]]
 +
 
| <code>string GetAssociatedPrimaryAbilities() </code>
 
| <code>string GetAssociatedPrimaryAbilities() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedSecondaryAbilities | GetAssociatedSecondaryAbilities]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedSecondaryAbilities | GetAssociatedSecondaryAbilities]]
 +
 
| <code>string GetAssociatedSecondaryAbilities() </code>
 
| <code>string GetAssociatedSecondaryAbilities() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAutoCastState | GetAutoCastState]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAutoCastState | GetAutoCastState]]
 +
 
| <code>bool GetAutoCastState() </code>
 
| <code>bool GetAutoCastState() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBackswingTime | GetBackswingTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBackswingTime | GetBackswingTime]]
 +
 
| <code>float GetBackswingTime() </code>
 
| <code>float GetBackswingTime() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBehavior | GetBehavior]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBehavior | GetBehavior]]
 +
 
| <code>int GetBehavior() </code>
 
| <code>int GetBehavior() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCaster | GetCaster]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCaster | GetCaster]]
 +
 
| <code>handle GetCaster() </code>
 
| <code>handle GetCaster() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastPoint | GetCastPoint]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastPoint | GetCastPoint]]
 +
 
| <code>float GetCastPoint() </code>
 
| <code>float GetCastPoint() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastRange | GetCastRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastRange | GetCastRange]]
 +
 
| <code>int GetCastRange() </code>
 
| <code>int GetCastRange() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]]
 +
 
| <code>int GetChannelledManaCostPerSecond(int a) </code>
 
| <code>int GetChannelledManaCostPerSecond(int a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelStartTime | GetChannelStartTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelStartTime | GetChannelStartTime]]
 +
 
| <code>float GetChannelStartTime() </code>
 
| <code>float GetChannelStartTime() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelTime | GetChannelTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelTime | GetChannelTime]]
 +
 
| <code>float GetChannelTime() </code>
 
| <code>float GetChannelTime() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCloneSource | GetCloneSource]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCloneSource | GetCloneSource]]
 +
 
| <code>handle GetCloneSource() </code>
 
| <code>handle GetCloneSource() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetConceptRecipientType | GetConceptRecipientType]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetConceptRecipientType | GetConceptRecipientType]]
 +
 
| <code>int GetConceptRecipientType() </code>
 
| <code>int GetConceptRecipientType() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]]
 +
 
| <code>float GetCooldown(int a) </code>
 
| <code>float GetCooldown(int a) </code>
| Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
+
 
 +
| 获得技能在给出的等级设定上的冷却时间,而不是目前的剩余的冷却时间
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTime | GetCooldownTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTime | GetCooldownTime]]
 +
 
| <code>float GetCooldownTime() </code>
 
| <code>float GetCooldownTime() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTimeRemaining | GetCooldownTimeRemaining]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTimeRemaining | GetCooldownTimeRemaining]]
 +
 
| <code>float GetCooldownTimeRemaining() </code>
 
| <code>float GetCooldownTimeRemaining() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorPosition | GetCursorPosition]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorPosition | GetCursorPosition]]
 +
 
| <code>Vector GetCursorPosition() </code>
 
| <code>Vector GetCursorPosition() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTarget | GetCursorTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTarget | GetCursorTarget]]
 +
 
| <code>handle GetCursorTarget() </code>
 
| <code>handle GetCursorTarget() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTargetingNothing | GetCursorTargetingNothing]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTargetingNothing | GetCursorTargetingNothing]]
 +
 
| <code>bool GetCursorTargetingNothing() </code>
 
| <code>bool GetCursorTargetingNothing() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetDuration | GetDuration]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetDuration | GetDuration]]
 +
 
| <code>float GetDuration() </code>
 
| <code>float GetDuration() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]]
 +
 
| <code>int GetGoldCost(int a) </code>
 
| <code>int GetGoldCost(int a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]]
 +
 
| <code>int GetGoldCostForUpgrade(int a) </code>
 
| <code>int GetGoldCostForUpgrade(int a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetHeroLevelRequiredToUpgrade | GetHeroLevelRequiredToUpgrade]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetHeroLevelRequiredToUpgrade | GetHeroLevelRequiredToUpgrade]]
 +
 
| <code>int GetHeroLevelRequiredToUpgrade() </code>
 
| <code>int GetHeroLevelRequiredToUpgrade() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetIntrinsicModifierName | GetIntrinsicModifierName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetIntrinsicModifierName | GetIntrinsicModifierName]]
 +
 
| <code>string GetIntrinsicModifierName() </code>
 
| <code>string GetIntrinsicModifierName() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevel | GetLevel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevel | GetLevel]]
 +
 
| <code>int GetLevel() </code>
 
| <code>int GetLevel() </code>
| Get the current level of the ability
+
 
 +
| 获得技能目前的等级
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]]
 +
 
| <code>table GetLevelSpecialValueFor(string a, int b) </code>
 
| <code>table GetLevelSpecialValueFor(string a, int b) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]]
 +
 
| <code>int GetManaCost(int a) </code>
 
| <code>int GetManaCost(int a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetMaxLevel | GetMaxLevel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetMaxLevel | GetMaxLevel]]
 +
 
| <code>int GetMaxLevel() </code>
 
| <code>int GetMaxLevel() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValue | GetModifierValue]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValue | GetModifierValue]]
 +
 
| <code>float GetModifierValue() </code>
 
| <code>float GetModifierValue() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValueBonus | GetModifierValueBonus]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValueBonus | GetModifierValueBonus]]
 +
 
| <code>float GetModifierValueBonus() </code>
 
| <code>float GetModifierValueBonus() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetPlaybackRateOverride | GetPlaybackRateOverride]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetPlaybackRateOverride | GetPlaybackRateOverride]]
 +
 
| <code>float GetPlaybackRateOverride() </code>
 
| <code>float GetPlaybackRateOverride() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSharedCooldownName | GetSharedCooldownName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSharedCooldownName | GetSharedCooldownName]]
 +
 
| <code>string GetSharedCooldownName() </code>
 
| <code>string GetSharedCooldownName() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]]
 +
 
| <code>table GetSpecialValueFor(string a) </code>
 
| <code>table GetSpecialValueFor(string a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetStolenActivityModifier | GetStolenActivityModifier]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetStolenActivityModifier | GetStolenActivityModifier]]
 +
 
| <code>string GetStolenActivityModifier() </code>
 
| <code>string GetStolenActivityModifier() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetToggleState | GetToggleState]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetToggleState | GetToggleState]]
 +
 
| <code>bool GetToggleState() </code>
 
| <code>bool GetToggleState() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]]
 +
 
| <code>bool HeroXPChange(float a) </code>
 
| <code>bool HeroXPChange(float a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IncrementModifierRefCount | IncrementModifierRefCount]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IncrementModifierRefCount | IncrementModifierRefCount]]
 +
 
| <code>void IncrementModifierRefCount() </code>
 
| <code>void IncrementModifierRefCount() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsActivated | IsActivated]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsActivated | IsActivated]]
 +
 
| <code>bool IsActivated() </code>
 
| <code>bool IsActivated() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsAttributeBonus | IsAttributeBonus]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsAttributeBonus | IsAttributeBonus]]
 +
 
| <code>bool IsAttributeBonus() </code>
 
| <code>bool IsAttributeBonus() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsChanneling | IsChanneling]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsChanneling | IsChanneling]]
 +
 
| <code>bool IsChanneling() </code>
 
| <code>bool IsChanneling() </code>
| Returns whether the ability is currently channeling.
+
 
 +
| 返回目前技能是否在施法状态
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCooldownReady | IsCooldownReady]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCooldownReady | IsCooldownReady]]
 +
 
| <code>bool IsCooldownReady() </code>
 
| <code>bool IsCooldownReady() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCosmetic | IsCosmetic]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCosmetic | IsCosmetic]]
 +
 
| <code>bool IsCosmetic() </code>
 
| <code>bool IsCosmetic() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsFullyCastable | IsFullyCastable]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsFullyCastable | IsFullyCastable]]
 +
 
| <code>bool IsFullyCastable() </code>
 
| <code>bool IsFullyCastable() </code>
| Returns whether the ability can be cast.
+
 
 +
| 返回技能能否被释放
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHidden | IsHidden]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHidden | IsHidden]]
 +
 
| <code>bool IsHidden() </code>
 
| <code>bool IsHidden() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenWhenStolen | IsHiddenWhenStolen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenWhenStolen | IsHiddenWhenStolen]]
 +
 
| <code>bool IsHiddenWhenStolen() </code>
 
| <code>bool IsHiddenWhenStolen() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsInAbilityPhase | IsInAbilityPhase]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsInAbilityPhase | IsInAbilityPhase]]
 +
 
| <code>bool IsInAbilityPhase() </code>
 
| <code>bool IsInAbilityPhase() </code>
| Returns whether the ability is currently casting.
+
 
 +
| 返回技能目前是否在被释放
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsItem | IsItem]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsItem | IsItem]]
 +
 
| <code>bool IsItem() </code>
 
| <code>bool IsItem() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]]
 +
 
| <code>bool IsOwnersGoldEnough(int a) </code>
 
| <code>bool IsOwnersGoldEnough(int a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnoughForUpgrade | IsOwnersGoldEnoughForUpgrade]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnoughForUpgrade | IsOwnersGoldEnoughForUpgrade]]
 +
 
| <code>bool IsOwnersGoldEnoughForUpgrade() </code>
 
| <code>bool IsOwnersGoldEnoughForUpgrade() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersManaEnough | IsOwnersManaEnough]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersManaEnough | IsOwnersManaEnough]]
 +
 
| <code>bool IsOwnersManaEnough() </code>
 
| <code>bool IsOwnersManaEnough() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsPassive | IsPassive]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsPassive | IsPassive]]
 +
 
| <code>bool IsPassive() </code>
 
| <code>bool IsPassive() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsSharedWithTeammates | IsSharedWithTeammates]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsSharedWithTeammates | IsSharedWithTeammates]]
 +
 
| <code>bool IsSharedWithTeammates() </code>
 
| <code>bool IsSharedWithTeammates() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStealable | IsStealable]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStealable | IsStealable]]
 +
 
| <code>bool IsStealable() </code>
 
| <code>bool IsStealable() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStolen | IsStolen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStolen | IsStolen]]
 +
 
| <code>bool IsStolen() </code>
 
| <code>bool IsStolen() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsToggle | IsToggle]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsToggle | IsToggle]]
 +
 
| <code>bool IsToggle() </code>
 
| <code>bool IsToggle() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsTrained | IsTrained]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsTrained | IsTrained]]
 +
 
| <code>bool IsTrained() </code>
 
| <code>bool IsTrained() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.MarkAbilityButtonDirty | MarkAbilityButtonDirty]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.MarkAbilityButtonDirty | MarkAbilityButtonDirty]]
 +
 
| <code>void MarkAbilityButtonDirty() </code>
 
| <code>void MarkAbilityButtonDirty() </code>
| Mark the ability button for this ability as needing a refresh
+
 
 +
| 标记这个技能图标表示需要刷新
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.NumModifiersUsingAbility | NumModifiersUsingAbility]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.NumModifiersUsingAbility | NumModifiersUsingAbility]]
 +
 
| <code>int NumModifiersUsingAbility() </code>
 
| <code>int NumModifiersUsingAbility() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseInterrupted | OnAbilityPhaseInterrupted]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseInterrupted | OnAbilityPhaseInterrupted]]
 +
 
| <code>void OnAbilityPhaseInterrupted() </code>
 
| <code>void OnAbilityPhaseInterrupted() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseStart | OnAbilityPhaseStart]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseStart | OnAbilityPhaseStart]]
 +
 
| <code>bool OnAbilityPhaseStart() </code>
 
| <code>bool OnAbilityPhaseStart() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPinged | OnAbilityPinged]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPinged | OnAbilityPinged]]
 +
 
| <code>void OnAbilityPinged() </code>
 
| <code>void OnAbilityPinged() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]]
 +
 
| <code>void OnChannelFinish(bool a) </code>
 
| <code>void OnChannelFinish(bool a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]]
 +
 
| <code>void OnChannelThink(float a) </code>
 
| <code>void OnChannelThink(float a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroCalculateStatBonus | OnHeroCalculateStatBonus]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroCalculateStatBonus | OnHeroCalculateStatBonus]]
 +
 
| <code>void OnHeroCalculateStatBonus() </code>
 
| <code>void OnHeroCalculateStatBonus() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroLevelUp | OnHeroLevelUp]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroLevelUp | OnHeroLevelUp]]
 +
 
| <code>void OnHeroLevelUp() </code>
 
| <code>void OnHeroLevelUp() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnInventoryContentsChanged | OnInventoryContentsChanged]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnInventoryContentsChanged | OnInventoryContentsChanged]]
 +
 
| <code>void OnInventoryContentsChanged() </code>
 
| <code>void OnInventoryContentsChanged() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerDied | OnOwnerDied]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerDied | OnOwnerDied]]
 +
 
| <code>void OnOwnerDied() </code>
 
| <code>void OnOwnerDied() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerSpawned | OnOwnerSpawned]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerSpawned | OnOwnerSpawned]]
 +
 
| <code>void OnOwnerSpawned() </code>
 
| <code>void OnOwnerSpawned() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnSpellStart | OnSpellStart]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnSpellStart | OnSpellStart]]
 +
 
| <code>void OnSpellStart() </code>
 
| <code>void OnSpellStart() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnToggle | OnToggle]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnToggle | OnToggle]]
 +
 
| <code>void OnToggle() </code>
 
| <code>void OnToggle() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnUpgrade | OnUpgrade]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnUpgrade | OnUpgrade]]
 +
 
| <code>void OnUpgrade() </code>
 
| <code>void OnUpgrade() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCost | PayGoldCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCost | PayGoldCost]]
 +
 
| <code>void PayGoldCost() </code>
 
| <code>void PayGoldCost() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCostForUpgrade | PayGoldCostForUpgrade]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCostForUpgrade | PayGoldCostForUpgrade]]
 +
 
| <code>void PayGoldCostForUpgrade() </code>
 
| <code>void PayGoldCostForUpgrade() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayManaCost | PayManaCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayManaCost | PayManaCost]]
 +
 
| <code>void PayManaCost() </code>
 
| <code>void PayManaCost() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PlaysDefaultAnimWhenStolen | PlaysDefaultAnimWhenStolen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PlaysDefaultAnimWhenStolen | PlaysDefaultAnimWhenStolen]]
 +
 
| <code>bool PlaysDefaultAnimWhenStolen() </code>
 
| <code>bool PlaysDefaultAnimWhenStolen() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ProcsMagicStick | ProcsMagicStick]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ProcsMagicStick | ProcsMagicStick]]
 +
 
| <code>bool ProcsMagicStick() </code>
 
| <code>bool ProcsMagicStick() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefCountsModifiers | RefCountsModifiers]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefCountsModifiers | RefCountsModifiers]]
 +
 
| <code>bool RefCountsModifiers() </code>
 
| <code>bool RefCountsModifiers() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefundManaCost | RefundManaCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefundManaCost | RefundManaCost]]
 +
 
| <code>void RefundManaCost() </code>
 
| <code>void RefundManaCost() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ResetToggleOnRespawn | ResetToggleOnRespawn]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ResetToggleOnRespawn | ResetToggleOnRespawn]]
 +
 
| <code>bool ResetToggleOnRespawn() </code>
 
| <code>bool ResetToggleOnRespawn() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]]
 +
 
| <code>void SetAbilityIndex(int a) </code>
 
| <code>void SetAbilityIndex(int a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]]
 +
 
| <code>void SetActivated(bool a) </code>
 
| <code>void SetActivated(bool a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]]
 +
 
| <code>void SetChanneling(bool a) </code>
 
| <code>void SetChanneling(bool a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]]
 +
 
| <code>void SetHidden(bool a) </code>
 
| <code>void SetHidden(bool a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]]
 +
 
| <code>void SetInAbilityPhase(bool a) </code>
 
| <code>void SetInAbilityPhase(bool a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetLevel | SetLevel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetLevel | SetLevel]]
 +
 
| <code>void SetLevel(int a) </code>
 
| <code>void SetLevel(int a) </code>
| Sets the level of this ability.
+
 
 +
| 设置这个技能的等级
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint | SetOverrideCastPoint]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint | SetOverrideCastPoint]]
 +
 
| <code>void SetOverrideCastPoint(float a) </code>
 
| <code>void SetOverrideCastPoint(float a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]]
 +
 
| <code>void SetRefCountsModifiers(bool a) </code>
 
| <code>void SetRefCountsModifiers(bool a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]]
 +
 
| <code>void SetStolen(bool a) </code>
 
| <code>void SetStolen(bool a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ShouldUseResources | ShouldUseResources]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ShouldUseResources | ShouldUseResources]]
 +
 
| <code>bool ShouldUseResources() </code>
 
| <code>bool ShouldUseResources() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]]
 +
 
| <code>void SpeakAbilityConcept(int a) </code>
 
| <code>void SpeakAbilityConcept(int a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakTrigger | SpeakTrigger]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakTrigger | SpeakTrigger]]
 +
 
| <code>bool SpeakTrigger() </code>
 
| <code>bool SpeakTrigger() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.StartCooldown | StartCooldown]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.StartCooldown | StartCooldown]]
 +
 
| <code>void StartCooldown(float a) </code>
 
| <code>void StartCooldown(float a) </code>
| param: flCooldown
+
 
 +
| 参数:fl冷却时间?
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAbility | ToggleAbility]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAbility | ToggleAbility]]
 +
 
| <code>void ToggleAbility() </code>
 
| <code>void ToggleAbility() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAutoCast | ToggleAutoCast]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAutoCast | ToggleAutoCast]]
 +
 
| <code>void ToggleAutoCast() </code>
 
| <code>void ToggleAutoCast() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UpgradeAbility | UpgradeAbility]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UpgradeAbility | UpgradeAbility]]
 +
 
| <code>void UpgradeAbility() </code>
 
| <code>void UpgradeAbility() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]]
 +
 
| <code>void UseResources(bool a, bool b, bool c) </code>
 
| <code>void UseResources(bool a, bool b, bool c) </code>
| 暂无描述
 
|}
 
  
 +
| 暂无
 +
|-
  
=== CDOTA_Ability_Animation_Attack ===
 
:::::extends [[#CDOTABaseAbility| CDOTABaseAbility]]
 
''暂无描述''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_Attack.SetPlaybackRate | SetPlaybackRate]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_Attack.SetPlaybackRate | SetPlaybackRate]]
 +
 
| <code>void SetPlaybackRate(float a) </code>
 
| <code>void SetPlaybackRate(float a) </code>
| Override playbackrate
 
|}
 
  
 +
| 重写播放速率
 +
|-
  
=== CDOTA_Ability_Animation_TailSpin ===
 
:::::extends [[#CDOTABaseAbility| CDOTABaseAbility]]
 
''暂无描述''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_TailSpin.SetPlaybackRate | SetPlaybackRate]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Animation_TailSpin.SetPlaybackRate | SetPlaybackRate]]
 +
 
| <code>void SetPlaybackRate(float a) </code>
 
| <code>void SetPlaybackRate(float a) </code>
 +
 
| Override playbackrate
 
| Override playbackrate
 +
 
|}
 
|}
 +
 +
 +
  
  
 
=== CDOTA_Ability_Nian_Leap ===
 
=== CDOTA_Ability_Nian_Leap ===
 +
 
:::::extends [[#CDOTABaseAbility| CDOTABaseAbility]]
 
:::::extends [[#CDOTABaseAbility| CDOTABaseAbility]]
''暂无描述''
+
 
 +
''No Description Set''
 +
 
 
{| class="standard-table" style="width: 100%;"
 
{| class="standard-table" style="width: 100%;"
! Function
+
 
! Signature
+
! 函数名
! Description
+
 
|-
+
! 函数原型
 +
 
 +
! 解释
 +
 
 +
|-
 +
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Leap.SetPlaybackRate | SetPlaybackRate]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Leap.SetPlaybackRate | SetPlaybackRate]]
 +
 
| <code>void SetPlaybackRate(float a) </code>
 
| <code>void SetPlaybackRate(float a) </code>
 +
 
| Override playbackrate
 
| Override playbackrate
 +
 
|}
 
|}
 +
 +
 +
  
  
 
=== CDOTA_Ability_Nian_Dive ===
 
=== CDOTA_Ability_Nian_Dive ===
 +
 
:::::extends [[#CDOTABaseAbility| CDOTABaseAbility]]
 
:::::extends [[#CDOTABaseAbility| CDOTABaseAbility]]
''暂无描述''
+
 
 +
''No Description Set''
 +
 
 
{| class="standard-table" style="width: 100%;"
 
{| class="standard-table" style="width: 100%;"
! Function
+
 
! Signature
+
! 函数名
! Description
+
 
 +
! 函数原型
 +
 
 +
! 解释
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Dive.SetPlaybackRate | SetPlaybackRate]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Dive.SetPlaybackRate | SetPlaybackRate]]
 +
 
| <code>void SetPlaybackRate(float a) </code>
 
| <code>void SetPlaybackRate(float a) </code>
 +
 
| Override playbackrate
 
| Override playbackrate
 +
 
|}
 
|}
 +
 +
 +
  
  
 
=== CDOTA_Ability_Nian_Roar ===
 
=== CDOTA_Ability_Nian_Roar ===
 +
 
:::::extends [[#CDOTABaseAbility| CDOTABaseAbility]]
 
:::::extends [[#CDOTABaseAbility| CDOTABaseAbility]]
''暂无描述''
+
 
 +
''No Description Set''
 +
 
 
{| class="standard-table" style="width: 100%;"
 
{| class="standard-table" style="width: 100%;"
! Function
+
 
! Signature
+
! 函数名
! Description
+
 
 +
! 函数原型
 +
 
 +
! 解释
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Roar.GetCastCount | GetCastCount]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Ability_Nian_Roar.GetCastCount | GetCastCount]]
 +
 
| <code>int GetCastCount() </code>
 
| <code>int GetCastCount() </code>
| Number of times Nian has used the roar
 
|}
 
  
 +
| 年兽使用了咆哮的次数
 +
|-
  
=== CDOTA_Item ===
 
''暂无描述''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetContainer | GetContainer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetContainer | GetContainer]]
 +
 
| <code>handle GetContainer() </code>
 
| <code>handle GetContainer() </code>
| Get the container for this item.
+
 
 +
| 获得物品所有者
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCost | GetCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCost | GetCost]]
 +
 
| <code>int GetCost() </code>
 
| <code>int GetCost() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCurrentCharges | GetCurrentCharges]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetCurrentCharges | GetCurrentCharges]]
 +
 
| <code>int GetCurrentCharges() </code>
 
| <code>int GetCurrentCharges() </code>
| Get the number of charges this item currently has.
+
 
 +
| 获得物品的目前充能
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetInitialCharges | GetInitialCharges]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetInitialCharges | GetInitialCharges]]
 +
 
| <code>int GetInitialCharges() </code>
 
| <code>int GetInitialCharges() </code>
| Get the initial number of charges this item has.
+
 
 +
| 获得物品的初始充能
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaser | GetPurchaser]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaser | GetPurchaser]]
 +
 
| <code>handle GetPurchaser() </code>
 
| <code>handle GetPurchaser() </code>
| Get the purchaser for this item.
+
 
 +
| 获得物品的购买者
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaseTime | GetPurchaseTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetPurchaseTime | GetPurchaseTime]]
 +
 
| <code>float GetPurchaseTime() </code>
 
| <code>float GetPurchaseTime() </code>
| Get the purchase time of this item
+
 
 +
| 获得物品的购买时间
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetShareability | GetShareability]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.GetShareability | GetShareability]]
 +
 
| <code>int GetShareability() </code>
 
| <code>int GetShareability() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.IsPermanent | IsPermanent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.IsPermanent | IsPermanent]]
 +
 
| <code>bool IsPermanent() </code>
 
| <code>bool IsPermanent() </code>
| Is this a permanent item?
+
 
 +
| 判断物品是否非消耗品
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot | LaunchLoot]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.LaunchLoot | LaunchLoot]]
| <code>void LaunchLoot(bool a, float b, float c, Vector d) </code>
+
 
| 暂无描述
+
| <code>void LaunchLoot(bool useOnContact, float height, float speed, Vector destination) </code>
 +
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetCurrentCharges | SetCurrentCharges]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetCurrentCharges | SetCurrentCharges]]
 +
 
| <code>void SetCurrentCharges(int a) </code>
 
| <code>void SetCurrentCharges(int a) </code>
| Set the number of charges on this item
+
 
 +
| 设置物品的充能数
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaser | SetPurchaser]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaser | SetPurchaser]]
 +
 
| <code>void SetPurchaser(handle a) </code>
 
| <code>void SetPurchaser(handle a) </code>
| Set the purchaser of record for this item.
+
 
 +
| 设置物品的购买者
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaseTime | SetPurchaseTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetPurchaseTime | SetPurchaseTime]]
 +
 
| <code>void SetPurchaseTime(float a) </code>
 
| <code>void SetPurchaseTime(float a) </code>
| Set the purchase time of this item
+
 
 +
| 设置物品的购买时间
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetStacksWithOtherOwners | SetStacksWithOtherOwners]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.SetStacksWithOtherOwners | SetStacksWithOtherOwners]]
 +
 
| <code>void SetStacksWithOtherOwners(bool a) </code>
 
| <code>void SetStacksWithOtherOwners(bool a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.StacksWithOtherOwners | StacksWithOtherOwners]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.StacksWithOtherOwners | StacksWithOtherOwners]]
 +
 
| <code>bool StacksWithOtherOwners() </code>
 
| <code>bool StacksWithOtherOwners() </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.Think | Think]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item.Think | Think]]
 +
 
| <code>void Think() </code>
 
| <code>void Think() </code>
| Think this item
 
|}
 
  
 +
| 判断此物品
 +
|-
  
=== CDOTA_Item_Physical ===
 
''暂无描述''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetContainedItem | GetContainedItem]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetContainedItem | GetContainedItem]]
 +
 
| <code>handle GetContainedItem() </code>
 
| <code>handle GetContainedItem() </code>
| Returned the contained item.
+
 
 +
| 返回禁用的物品?
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetCreationTime | GetCreationTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.GetCreationTime | GetCreationTime]]
 +
 
| <code>float GetCreationTime() </code>
 
| <code>float GetCreationTime() </code>
| Returns the game time when this item was created in the world
+
 
 +
| 返回物品第一次出现在地图上的时间
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.SetContainedItem | SetContainedItem]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_Physical.SetContainedItem | SetContainedItem]]
 +
 
| <code>void SetContainedItem(handle a) </code>
 
| <code>void SetContainedItem(handle a) </code>
| Set the contained item.
 
|}
 
  
 +
| 设置禁用的物品?
 +
|-
  
=== CDOTA_Item_DataDriven ===
 
''''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_DataDriven.ApplyDataDrivenModifier | ApplyDataDrivenModifier]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Item_DataDriven.ApplyDataDrivenModifier | ApplyDataDrivenModifier]]
 +
 
| <code>void ApplyDataDrivenModifier(handle source, handle target, string modifier_name, handle modifierArgs) </code>
 
| <code>void ApplyDataDrivenModifier(handle source, handle target, string modifier_name, handle modifierArgs) </code>
|
 
|}
 
  
 +
| 暂无
 +
|-
  
=== CDOTA_Unit_Nian ===
 
''暂无描述''
 
{| class="standard-table" style="width: 100%;"
 
! Function
 
! Signature
 
! Description
 
|-
 
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetHorn | GetHorn]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetHorn | GetHorn]]
 +
 
| <code>handle GetHorn() </code>
 
| <code>handle GetHorn() </code>
 +
 
| Is the Nian horn?
 
| Is the Nian horn?
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetTail | GetTail]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.GetTail | GetTail]]
 +
 
| <code>handle GetTail() </code>
 
| <code>handle GetTail() </code>
 +
 
| Is the Nian's tail broken?
 
| Is the Nian's tail broken?
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsHornAlive | IsHornAlive]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsHornAlive | IsHornAlive]]
 +
 
| <code>bool IsHornAlive() </code>
 
| <code>bool IsHornAlive() </code>
 +
 
| Is the Nian's horn broken?
 
| Is the Nian's horn broken?
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsTailAlive | IsTailAlive]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_Unit_Nian.IsTailAlive | IsTailAlive]]
 +
 
| <code>bool IsTailAlive() </code>
 
| <code>bool IsTailAlive() </code>
 +
 
| Is the Nian's tail broken?
 
| Is the Nian's tail broken?
 +
 
|}
 
|}
 +
 +
 +
  
  
 
=== CBasePlayer ===
 
=== CBasePlayer ===
''暂无描述''
+
 
 +
''No Description Set''
 +
 
 
{| class="standard-table" style="width: 100%;"
 
{| class="standard-table" style="width: 100%;"
! Function
+
 
! Signature
+
! 函数名
! Description
+
 
 +
! 函数原型
 +
 
 +
! 解释
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CBasePlayer.IsNoclipping | IsNoclipping]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CBasePlayer.IsNoclipping | IsNoclipping]]
 +
 
| <code>bool IsNoclipping() </code>
 
| <code>bool IsNoclipping() </code>
 +
 
| Returns true if the player is in noclip mode.
 
| Returns true if the player is in noclip mode.
 +
 
|}
 
|}
 +
 +
 +
  
  
 
=== CDOTAPlayer ===
 
=== CDOTAPlayer ===
''暂无描述''
+
 
{| class="standard-table" style="width: 100%;"
+
:::::extends [[#CBaseAnimating| CBaseAnimating]]
! Function
+
 
! Signature
+
''No Description Set''
! Description
+
 
 +
{| class="standard-table" style="width: 100%;"
 +
 
 +
! 函数名
 +
 
 +
! 函数原型
 +
 
 +
! 解释
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetAssignedHero | GetAssignedHero]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetAssignedHero | GetAssignedHero]]
 +
 
| <code>handle GetAssignedHero() </code>
 
| <code>handle GetAssignedHero() </code>
 +
 
| Get the player's hero.
 
| Get the player's hero.
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetControlledRPGUnit | GetControlledRPGUnit]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetControlledRPGUnit | GetControlledRPGUnit]]
 +
 
| <code>handle GetControlledRPGUnit() </code>
 
| <code>handle GetControlledRPGUnit() </code>
 +
 
| Get the RPG unit this player controls.
 
| Get the RPG unit this player controls.
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetPlayerID | GetPlayerID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.GetPlayerID | GetPlayerID]]
 +
 
| <code>int GetPlayerID() </code>
 
| <code>int GetPlayerID() </code>
 +
 
| Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
 
| Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.MakeRandomHeroSelection | MakeRandomHeroSelection]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.MakeRandomHeroSelection | MakeRandomHeroSelection]]
 +
 
| <code>void MakeRandomHeroSelection() </code>
 
| <code>void MakeRandomHeroSelection() </code>
 +
 
| Randoms this player's hero.
 
| Randoms this player's hero.
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit | SetKillCamUnit]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetKillCamUnit | SetKillCamUnit]]
 +
 
| <code>void SetKillCamUnit(handle a) </code>
 
| <code>void SetKillCamUnit(handle a) </code>
 +
 
| Set the kill cam unit for this hero.
 
| Set the kill cam unit for this hero.
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetMusicStatus | SetMusicStatus]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAPlayer.SetMusicStatus | SetMusicStatus]]
 +
 
| <code>void SetMusicStatus(int nMusicStatus, float flIntensity) </code>
 
| <code>void SetMusicStatus(int nMusicStatus, float flIntensity) </code>
 +
 
| Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.
 
| Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.
 +
 
|}
 
|}
 +
 +
 +
  
  
 
=== CDOTA_PlayerResource ===
 
=== CDOTA_PlayerResource ===
''暂无描述''
+
 
 +
:::::extends [[#CBaseEntity| CBaseEntity]]
 +
 
 +
''No Description Set''
 +
 
 +
 
  
 
''Global accessor variable:'' <code>PlayerResource</code>
 
''Global accessor variable:'' <code>PlayerResource</code>
 +
 
{| class="standard-table" style="width: 100%;"
 
{| class="standard-table" style="width: 100%;"
! Function
+
 
! Signature
+
! 函数名
! Description
+
 
 +
! 函数原型
 +
 
 +
! 解释
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup | AddAegisPickup]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddAegisPickup | AddAegisPickup]]
 +
 
| <code>void AddAegisPickup(int a) </code>
 
| <code>void AddAegisPickup(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddClaimedFarm | AddClaimedFarm]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddClaimedFarm | AddClaimedFarm]]
 +
 
| <code>void AddClaimedFarm(int a, float b) </code>
 
| <code>void AddClaimedFarm(int a, float b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddGoldSpentOnSupport | AddGoldSpentOnSupport]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddGoldSpentOnSupport | AddGoldSpentOnSupport]]
 +
 
| <code>void AddGoldSpentOnSupport(int a, int b) </code>
 
| <code>void AddGoldSpentOnSupport(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddRunePickup | AddRunePickup]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AddRunePickup | AddRunePickup]]
 +
 
| <code>void AddRunePickup(int a) </code>
 
| <code>void AddRunePickup(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AreUnitsSharedWithPlayerID | AreUnitsSharedWithPlayerID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.AreUnitsSharedWithPlayerID | AreUnitsSharedWithPlayerID]]
 +
 
| <code>bool AreUnitsSharedWithPlayerID(int a, int b) </code>
 
| <code>bool AreUnitsSharedWithPlayerID(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearKillsMatrix | ClearKillsMatrix]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearKillsMatrix | ClearKillsMatrix]]
 +
 
| <code>void ClearKillsMatrix(int a) </code>
 
| <code>void ClearKillsMatrix(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitMultikill | ClearLastHitMultikill]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitMultikill | ClearLastHitMultikill]]
 +
 
| <code>void ClearLastHitMultikill(int a) </code>
 
| <code>void ClearLastHitMultikill(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak | ClearLastHitStreak]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearLastHitStreak | ClearLastHitStreak]]
 +
 
| <code>void ClearLastHitStreak(int a) </code>
 
| <code>void ClearLastHitStreak(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearRawPlayerDamageMatrix | ClearRawPlayerDamageMatrix]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearRawPlayerDamageMatrix | ClearRawPlayerDamageMatrix]]
 +
 
| <code>void ClearRawPlayerDamageMatrix(int a) </code>
 
| <code>void ClearRawPlayerDamageMatrix(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak | ClearStreak]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ClearStreak | ClearStreak]]
 +
 
| <code>void ClearStreak(int a) </code>
 
| <code>void ClearStreak(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAegisPickups | GetAegisPickups]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAegisPickups | GetAegisPickups]]
 +
 
| <code>int GetAegisPickups(int a) </code>
 
| <code>int GetAegisPickups(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAssists | GetAssists]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetAssists | GetAssists]]
 +
 
| <code>int GetAssists(int a) </code>
 
| <code>int GetAssists(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannel | GetBroadcasterChannel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannel | GetBroadcasterChannel]]
 +
 
| <code><> GetBroadcasterChannel(int a) </code>
 
| <code><> GetBroadcasterChannel(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannelSlot | GetBroadcasterChannelSlot]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetBroadcasterChannelSlot | GetBroadcasterChannelSlot]]
 +
 
| <code><> GetBroadcasterChannelSlot(int a) </code>
 
| <code><> GetBroadcasterChannelSlot(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies | GetClaimedDenies]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedDenies | GetClaimedDenies]]
 +
 
| <code>int GetClaimedDenies(int a) </code>
 
| <code>int GetClaimedDenies(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedFarm | GetClaimedFarm]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedFarm | GetClaimedFarm]]
 +
 
| <code>float GetClaimedFarm(int a) </code>
 
| <code>float GetClaimedFarm(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedMisses | GetClaimedMisses]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetClaimedMisses | GetClaimedMisses]]
 +
 
| <code>int GetClaimedMisses(int a) </code>
 
| <code>int GetClaimedMisses(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetConnectionState | GetConnectionState]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetConnectionState | GetConnectionState]]
 +
 
| <code><> GetConnectionState(int a) </code>
 
| <code><> GetConnectionState(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCreepDamageTaken | GetCreepDamageTaken]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCreepDamageTaken | GetCreepDamageTaken]]
 +
 
| <code>int GetCreepDamageTaken(int a) </code>
 
| <code>int GetCreepDamageTaken(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCooldown | GetCustomBuybackCooldown]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCooldown | GetCustomBuybackCooldown]]
 +
 
| <code>float GetCustomBuybackCooldown(int a) </code>
 
| <code>float GetCustomBuybackCooldown(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCost | GetCustomBuybackCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomBuybackCost | GetCustomBuybackCost]]
 +
 
| <code>int GetCustomBuybackCost(int a) </code>
 
| <code>int GetCustomBuybackCost(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetCustomTeamAssignment | GetCustomTeamAssignment]]
 +
 
 +
| <code>int GetCustomTeamAssignment(int playerIndex) </code>
 +
 
 +
| returns the team number that the player should join
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDamageDoneToHero | GetDamageDoneToHero]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDamageDoneToHero | GetDamageDoneToHero]]
 +
 
| <code>int GetDamageDoneToHero(int a, int b) </code>
 
| <code>int GetDamageDoneToHero(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDeaths | GetDeaths]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDeaths | GetDeaths]]
 +
 
| <code>int GetDeaths(int a) </code>
 
| <code>int GetDeaths(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies | GetDenies]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetDenies | GetDenies]]
 +
 
| <code>int GetDenies(int a) </code>
 
| <code>int GetDenies(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPointsForPlayerID | GetEventPointsForPlayerID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPointsForPlayerID | GetEventPointsForPlayerID]]
 +
 
| <code>int GetEventPointsForPlayerID(int a) </code>
 
| <code>int GetEventPointsForPlayerID(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPremiumPointsGranted | GetEventPremiumPointsGranted]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventPremiumPointsGranted | GetEventPremiumPointsGranted]]
 +
 
| <code>int GetEventPremiumPointsGranted(int a) </code>
 
| <code>int GetEventPremiumPointsGranted(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventRankGranted | GetEventRankGranted]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetEventRankGranted | GetEventRankGranted]]
 +
 
| <code>int GetEventRankGranted(int a) </code>
 
| <code>int GetEventRankGranted(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGold | GetGold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGold | GetGold]]
| <code>int GetGold(int a) </code>
+
 
| 暂无描述
+
| <code>int GetGold(int playerID) </code>
 +
 
 +
| Returns how much gold the specified player currently has
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldBagsCollected | GetGoldBagsCollected]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldBagsCollected | GetGoldBagsCollected]]
 +
 
| <code>int GetGoldBagsCollected(int a) </code>
 
| <code>int GetGoldBagsCollected(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath | GetGoldLostToDeath]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldLostToDeath | GetGoldLostToDeath]]
 +
 
| <code>int GetGoldLostToDeath(int a) </code>
 
| <code>int GetGoldLostToDeath(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldPerMin | GetGoldPerMin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldPerMin | GetGoldPerMin]]
 +
 
| <code>float GetGoldPerMin(int a) </code>
 
| <code>float GetGoldPerMin(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnBuybacks | GetGoldSpentOnBuybacks]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnBuybacks | GetGoldSpentOnBuybacks]]
 +
 
| <code>int GetGoldSpentOnBuybacks(int a) </code>
 
| <code>int GetGoldSpentOnBuybacks(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnConsumables | GetGoldSpentOnConsumables]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnConsumables | GetGoldSpentOnConsumables]]
 +
 
| <code>int GetGoldSpentOnConsumables(int a) </code>
 
| <code>int GetGoldSpentOnConsumables(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnItems | GetGoldSpentOnItems]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnItems | GetGoldSpentOnItems]]
 +
 
| <code>int GetGoldSpentOnItems(int a) </code>
 
| <code>int GetGoldSpentOnItems(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnSupport | GetGoldSpentOnSupport]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetGoldSpentOnSupport | GetGoldSpentOnSupport]]
 +
 
| <code>int GetGoldSpentOnSupport(int a) </code>
 
| <code>int GetGoldSpentOnSupport(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHealing | GetHealing]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHealing | GetHealing]]
 +
 
| <code>float GetHealing(int a) </code>
 
| <code>float GetHealing(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHeroDamageTaken | GetHeroDamageTaken]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetHeroDamageTaken | GetHeroDamageTaken]]
 +
 
| <code>int GetHeroDamageTaken(int a) </code>
 
| <code>int GetHeroDamageTaken(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills | GetKills]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKills | GetKills]]
| <code>int GetKills(int a) </code>
+
 
| 暂无描述
+
| <code>int GetKills(int playerID) </code>
 +
 
 +
| Return how many kills the specified player currently gets
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero | GetKillsDoneToHero]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetKillsDoneToHero | GetKillsDoneToHero]]
| <code>int GetKillsDoneToHero(int a, int b) </code>
+
 
| 暂无描述
+
| <code>int GetKillsDoneToHero(int attackerPlayerID, int victimPlayerID) </code>
 +
 
 +
| Returns the number of times the attacker (first argument) has killed the victim (second argument)
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitMultikill | GetLastHitMultikill]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitMultikill | GetLastHitMultikill]]
 +
 
| <code>int GetLastHitMultikill(int a) </code>
 
| <code>int GetLastHitMultikill(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHits | GetLastHits]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHits | GetLastHits]]
| <code>int GetLastHits(int a) </code>
+
 
| 暂无描述
+
| <code>int GetLastHits(int playerID) </code>
 +
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitStreak | GetLastHitStreak]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLastHitStreak | GetLastHitStreak]]
 +
 
| <code>int GetLastHitStreak(int a) </code>
 
| <code>int GetLastHitStreak(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLevel | GetLevel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetLevel | GetLevel]]
 +
 
| <code>int GetLevel(int playerID) </code>
 
| <code>int GetLevel(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses | GetMisses]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetMisses | GetMisses]]
 +
 
| <code>int GetMisses(int a) </code>
 
| <code>int GetMisses(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNearbyCreepDeaths | GetNearbyCreepDeaths]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNearbyCreepDeaths | GetNearbyCreepDeaths]]
 +
 
| <code>int GetNearbyCreepDeaths(int a) </code>
 
| <code>int GetNearbyCreepDeaths(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthCourierForTeam | GetNthCourierForTeam]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthCourierForTeam | GetNthCourierForTeam]]
 +
 
| <code>handle GetNthCourierForTeam(int a, int b) </code>
 
| <code>handle GetNthCourierForTeam(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthPlayerIDOnTeam | GetNthPlayerIDOnTeam]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNthPlayerIDOnTeam | GetNthPlayerIDOnTeam]]
 +
 
| <code>int GetNthPlayerIDOnTeam(int a, int b) </code>
 
| <code>int GetNthPlayerIDOnTeam(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumConsumablesPurchased | GetNumConsumablesPurchased]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumConsumablesPurchased | GetNumConsumablesPurchased]]
 +
 
| <code>int GetNumConsumablesPurchased(int a) </code>
 
| <code>int GetNumConsumablesPurchased(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumCouriersForTeam | GetNumCouriersForTeam]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumCouriersForTeam | GetNumCouriersForTeam]]
 +
 
| <code>int GetNumCouriersForTeam(int a) </code>
 
| <code>int GetNumCouriersForTeam(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumItemsPurchased | GetNumItemsPurchased]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetNumItemsPurchased | GetNumItemsPurchased]]
 +
 
| <code>int GetNumItemsPurchased(int a) </code>
 
| <code>int GetNumItemsPurchased(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayer | GetPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayer | GetPlayer]]
| <code>handle GetPlayer(int a) </code>
+
 
| 暂无描述
+
| <code>handle GetPlayer(int playerID) </code>
 +
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely | GetPlayerLoadedCompletely]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerLoadedCompletely | GetPlayerLoadedCompletely]]
 +
 
| <code>bool GetPlayerLoadedCompletely(int a) </code>
 
| <code>bool GetPlayerLoadedCompletely(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerName | GetPlayerName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerName | GetPlayerName]]
 +
 
| <code>string GetPlayerName(int a) </code>
 
| <code>string GetPlayerName(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerReservedState | GetPlayerReservedState]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetPlayerReservedState | GetPlayerReservedState]]
 +
 
| <code>bool GetPlayerReservedState(int a) </code>
 
| <code>bool GetPlayerReservedState(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRawPlayerDamage | GetRawPlayerDamage]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRawPlayerDamage | GetRawPlayerDamage]]
 +
 
| <code>int GetRawPlayerDamage(int a) </code>
 
| <code>int GetRawPlayerDamage(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetReliableGold | GetReliableGold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetReliableGold | GetReliableGold]]
| <code>int GetReliableGold(int a) </code>
+
 
| 暂无描述
+
| <code>int GetReliableGold(int playerID) </code>
 +
 
 +
| Returns how much reliable gold the specified player currently has
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRespawnSeconds | GetRespawnSeconds]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRespawnSeconds | GetRespawnSeconds]]
 +
 
| <code>int GetRespawnSeconds(int a) </code>
 
| <code>int GetRespawnSeconds(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRoshanKills | GetRoshanKills]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRoshanKills | GetRoshanKills]]
 +
 
| <code>int GetRoshanKills(int a) </code>
 
| <code>int GetRoshanKills(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRunePickups | GetRunePickups]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetRunePickups | GetRunePickups]]
 +
 
| <code>int GetRunePickups(int a) </code>
 
| <code>int GetRunePickups(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroEntity | GetSelectedHeroEntity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroEntity | GetSelectedHeroEntity]]
 +
 
| <code>handle GetSelectedHeroEntity(int a) </code>
 
| <code>handle GetSelectedHeroEntity(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroID | GetSelectedHeroID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroID | GetSelectedHeroID]]
 +
 
| <code>int GetSelectedHeroID(int a) </code>
 
| <code>int GetSelectedHeroID(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroName | GetSelectedHeroName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSelectedHeroName | GetSelectedHeroName]]
 +
 
| <code>string GetSelectedHeroName(int a) </code>
 
| <code>string GetSelectedHeroName(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSteamAccountID | GetSteamAccountID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetSteamAccountID | GetSteamAccountID]]
 +
 
| <code><> GetSteamAccountID(int a) </code>
 
| <code><> GetSteamAccountID(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStreak | GetStreak]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStreak | GetStreak]]
 +
 
| <code>int GetStreak(int a) </code>
 
| <code>int GetStreak(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStuns | GetStuns]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetStuns | GetStuns]]
 +
 
| <code>float GetStuns(int a) </code>
 
| <code>float GetStuns(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeam | GetTeam]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeam | GetTeam]]
 +
 
| <code>int GetTeam(int a) </code>
 
| <code>int GetTeam(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeamKills | GetTeamKills]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTeamKills | GetTeamKills]]
 +
 
| <code>int GetTeamKills(int a) </code>
 
| <code>int GetTeamKills(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastConsumablePurchase | GetTimeOfLastConsumablePurchase]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastConsumablePurchase | GetTimeOfLastConsumablePurchase]]
 +
 
| <code>float GetTimeOfLastConsumablePurchase(int a) </code>
 
| <code>float GetTimeOfLastConsumablePurchase(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath | GetTimeOfLastDeath]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastDeath | GetTimeOfLastDeath]]
 +
 
| <code>float GetTimeOfLastDeath(int a) </code>
 
| <code>float GetTimeOfLastDeath(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastItemPurchase | GetTimeOfLastItemPurchase]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTimeOfLastItemPurchase | GetTimeOfLastItemPurchase]]
 +
 
| <code>float GetTimeOfLastItemPurchase(int a) </code>
 
| <code>float GetTimeOfLastItemPurchase(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold | GetTotalEarnedGold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedGold | GetTotalEarnedGold]]
 +
 
| <code>int GetTotalEarnedGold(int a) </code>
 
| <code>int GetTotalEarnedGold(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedXP | GetTotalEarnedXP]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalEarnedXP | GetTotalEarnedXP]]
 +
 
| <code>int GetTotalEarnedXP(int a) </code>
 
| <code>int GetTotalEarnedXP(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalGoldSpent | GetTotalGoldSpent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTotalGoldSpent | GetTotalGoldSpent]]
 +
 
| <code>int GetTotalGoldSpent(int a) </code>
 
| <code>int GetTotalGoldSpent(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken | GetTowerDamageTaken]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerDamageTaken | GetTowerDamageTaken]]
 +
 
| <code>int GetTowerDamageTaken(int a) </code>
 
| <code>int GetTowerDamageTaken(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerKills | GetTowerKills]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetTowerKills | GetTowerKills]]
 +
 
| <code>int GetTowerKills(int a) </code>
 
| <code>int GetTowerKills(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnitShareMaskForPlayer | GetUnitShareMaskForPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnitShareMaskForPlayer | GetUnitShareMaskForPlayer]]
 +
 
| <code>int GetUnitShareMaskForPlayer(int a, int b) </code>
 
| <code>int GetUnitShareMaskForPlayer(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnreliableGold | GetUnreliableGold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetUnreliableGold | GetUnreliableGold]]
| <code>int GetUnreliableGold(int a) </code>
+
 
| 暂无描述
+
| <code>int GetUnreliableGold(int playerID) </code>
 +
 
 +
| Returns how much unreliable gold the specified player currently has
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetXPPerMin | GetXPPerMin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.GetXPPerMin | GetXPPerMin]]
 +
 
| <code>float GetXPPerMin(int a) </code>
 
| <code>float GetXPPerMin(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRandomed | HasRandomed]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRandomed | HasRandomed]]
 +
 
| <code>bool HasRandomed(int a) </code>
 
| <code>bool HasRandomed(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRepicked | HasRepicked]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasRepicked | HasRepicked]]
 +
 
| <code>bool HasRepicked(int playerID) </code>
 
| <code>bool HasRepicked(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero | HasSelectedHero]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HasSelectedHero | HasSelectedHero]]
 +
 
| <code>bool HasSelectedHero(int a) </code>
 
| <code>bool HasSelectedHero(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HaveAllPlayersJoined | HaveAllPlayersJoined]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HaveAllPlayersJoined | HaveAllPlayersJoined]]
 +
 
| <code>bool HaveAllPlayersJoined() </code>
 
| <code>bool HaveAllPlayersJoined() </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp | HeroLevelUp]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.HeroLevelUp | HeroLevelUp]]
 +
 
| <code>void HeroLevelUp(int a) </code>
 
| <code>void HeroLevelUp(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementAssists | IncrementAssists]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementAssists | IncrementAssists]]
 +
 
| <code>void IncrementAssists(int playerID) </code>
 
| <code>void IncrementAssists(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies | IncrementClaimedDenies]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedDenies | IncrementClaimedDenies]]
 +
 
| <code>void IncrementClaimedDenies(int a) </code>
 
| <code>void IncrementClaimedDenies(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedMisses | IncrementClaimedMisses]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementClaimedMisses | IncrementClaimedMisses]]
 +
 
| <code>void IncrementClaimedMisses(int a) </code>
 
| <code>void IncrementClaimedMisses(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDeaths | IncrementDeaths]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDeaths | IncrementDeaths]]
 +
 
| <code>void IncrementDeaths(int playerID) </code>
 
| <code>void IncrementDeaths(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies | IncrementDenies]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementDenies | IncrementDenies]]
 +
 
| <code>void IncrementDenies(int a) </code>
 
| <code>void IncrementDenies(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementGoldBagsCollected | IncrementGoldBagsCollected]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementGoldBagsCollected | IncrementGoldBagsCollected]]
 +
 
| <code>void IncrementGoldBagsCollected(int a) </code>
 
| <code>void IncrementGoldBagsCollected(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementKills | IncrementKills]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementKills | IncrementKills]]
 +
 
| <code>void IncrementKills(int playerID, int kills) </code>
 
| <code>void IncrementKills(int playerID, int kills) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill | IncrementLastHitMultikill]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitMultikill | IncrementLastHitMultikill]]
 +
 
| <code>void IncrementLastHitMultikill(int a) </code>
 
| <code>void IncrementLastHitMultikill(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHits | IncrementLastHits]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHits | IncrementLastHits]]
 +
 
| <code>void IncrementLastHits(int a) </code>
 
| <code>void IncrementLastHits(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitStreak | IncrementLastHitStreak]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementLastHitStreak | IncrementLastHitStreak]]
 +
 
| <code>void IncrementLastHitStreak(int a) </code>
 
| <code>void IncrementLastHitStreak(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses | IncrementMisses]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementMisses | IncrementMisses]]
 +
 
| <code>void IncrementMisses(int a) </code>
 
| <code>void IncrementMisses(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementNearbyCreepDeaths | IncrementNearbyCreepDeaths]]
 +
 
| <code>void IncrementNearbyCreepDeaths(int a) </code>
 
| <code>void IncrementNearbyCreepDeaths(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementStreak | IncrementStreak]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementStreak | IncrementStreak]]
 +
 
| <code>void IncrementStreak(int a) </code>
 
| <code>void IncrementStreak(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementTotalEarnedXP | IncrementTotalEarnedXP]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IncrementTotalEarnedXP | IncrementTotalEarnedXP]]
 +
 
| <code>void IncrementTotalEarnedXP(int a, int b) </code>
 
| <code>void IncrementTotalEarnedXP(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsBroadcaster | IsBroadcaster]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsBroadcaster | IsBroadcaster]]
 +
 
| <code>bool IsBroadcaster(int a) </code>
 
| <code>bool IsBroadcaster(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsDisableHelpSetForPlayerID | IsDisableHelpSetForPlayerID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsDisableHelpSetForPlayerID | IsDisableHelpSetForPlayerID]]
 +
 
| <code>bool IsDisableHelpSetForPlayerID(int a, int b) </code>
 
| <code>bool IsDisableHelpSetForPlayerID(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsFakeClient | IsFakeClient]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsFakeClient | IsFakeClient]]
 +
 
| <code>bool IsFakeClient(int a) </code>
 
| <code>bool IsFakeClient(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSelected | IsHeroSelected]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSelected | IsHeroSelected]]
 +
 
| <code>bool IsHeroSelected(string a) </code>
 
| <code>bool IsHeroSelected(string a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSharedWithPlayerID | IsHeroSharedWithPlayerID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsHeroSharedWithPlayerID | IsHeroSharedWithPlayerID]]
 +
 
| <code>bool IsHeroSharedWithPlayerID(int a, int b) </code>
 
| <code>bool IsHeroSharedWithPlayerID(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayer | IsValidPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayer | IsValidPlayer]]
 +
 
| <code>bool IsValidPlayer(int playerID) </code>
 
| <code>bool IsValidPlayer(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayerID | IsValidPlayerID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidPlayerID | IsValidPlayerID]]
 +
 
| <code>bool IsValidPlayerID(int playerID) </code>
 
| <code>bool IsValidPlayerID(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayer | IsValidTeamPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayer | IsValidTeamPlayer]]
 +
 
| <code>bool IsValidTeamPlayer(int playerID) </code>
 
| <code>bool IsValidTeamPlayer(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayerID | IsValidTeamPlayerID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.IsValidTeamPlayerID | IsValidTeamPlayerID]]
 +
 
| <code>bool IsValidTeamPlayerID(int playerID) </code>
 
| <code>bool IsValidTeamPlayerID(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold | ModifyGold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ModifyGold | ModifyGold]]
 +
 
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int d) </code>
 
| <code>int ModifyGold(int playerID, int goldAmmt, bool reliable, int d) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ReplaceHeroWith | ReplaceHeroWith]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ReplaceHeroWith | ReplaceHeroWith]]
 +
 
| <code>handle ReplaceHeroWith(int a, string b, int c, int d) </code>
 
| <code>handle ReplaceHeroWith(int a, string b, int c, int d) </code>
 +
 
| (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
 
| (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetBuybackCostTime | ResetBuybackCostTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetBuybackCostTime | ResetBuybackCostTime]]
 +
 
| <code>void ResetBuybackCostTime(int a) </code>
 
| <code>void ResetBuybackCostTime(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetTotalEarnedGold | ResetTotalEarnedGold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.ResetTotalEarnedGold | ResetTotalEarnedGold]]
 +
 
| <code>void ResetTotalEarnedGold(int a) </code>
 
| <code>void ResetTotalEarnedGold(int a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackCooldownTime | SetBuybackCooldownTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackCooldownTime | SetBuybackCooldownTime]]
 +
 
| <code>void SetBuybackCooldownTime(int a, float b) </code>
 
| <code>void SetBuybackCooldownTime(int a, float b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetBuybackGoldLimitTime | SetBuybackGoldLimitTime]]
 +
 
| <code>void SetBuybackGoldLimitTime(int a, float b) </code>
 
| <code>void SetBuybackGoldLimitTime(int a, float b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCameraTarget | SetCameraTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCameraTarget | SetCameraTarget]]
 +
 
| <code>void SetCameraTarget(int a, handle b) </code>
 
| <code>void SetCameraTarget(int a, handle b) </code>
 +
 
| (playerID, entity) - force the given player's camera to follow the given entity
 
| (playerID, entity) - force the given player's camera to follow the given entity
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCooldown | SetCustomBuybackCooldown]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCooldown | SetCustomBuybackCooldown]]
 +
 
| <code>void SetCustomBuybackCooldown(int a, float b) </code>
 
| <code>void SetCustomBuybackCooldown(int a, float b) </code>
 +
 
| Set the buyback cooldown for this player.
 
| Set the buyback cooldown for this player.
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCost | SetCustomBuybackCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomBuybackCost | SetCustomBuybackCost]]
 +
 
| <code>void SetCustomBuybackCost(int a, int b) </code>
 
| <code>void SetCustomBuybackCost(int a, int b) </code>
 +
 
| Set the buyback cost for this player.
 
| Set the buyback cost for this player.
 +
 +
|-
 +
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetCustomTeamAssignment | SetCustomTeamAssignment]]
 +
 +
| <code>void SetCustomTeamAssignment(int playerIndex, int teamToJoin) </code>
 +
 +
| Sets the team that the player should join
 +
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetGold | SetGold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetGold | SetGold]]
| <code>void SetGold(int a, int b, bool c) </code>
+
 
| 暂无描述
+
| <code>void SetGold(int playerID, int amount, bool reliableGold) </code>
 +
 
 +
| Sets the reliable/unreliable gold of the specified player
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRandomed | SetHasRandomed]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRandomed | SetHasRandomed]]
 +
 
| <code>void SetHasRandomed(int playerID) </code>
 
| <code>void SetHasRandomed(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRepicked | SetHasRepicked]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetHasRepicked | SetHasRepicked]]
 +
 
| <code>void SetHasRepicked(int playerID) </code>
 
| <code>void SetHasRepicked(int playerID) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime | SetLastBuybackTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetLastBuybackTime | SetLastBuybackTime]]
 +
 
| <code>void SetLastBuybackTime(int a, int b) </code>
 
| <code>void SetLastBuybackTime(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetPlayerReservedState | SetPlayerReservedState]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetPlayerReservedState | SetPlayerReservedState]]
 +
 
| <code>void SetPlayerReservedState(int a, bool b) </code>
 
| <code>void SetPlayerReservedState(int a, bool b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetUnitShareMaskForPlayer | SetUnitShareMaskForPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SetUnitShareMaskForPlayer | SetUnitShareMaskForPlayer]]
 +
 
| <code>void SetUnitShareMaskForPlayer(int a, int b, int c, bool d) </code>
 
| <code>void SetUnitShareMaskForPlayer(int a, int b, int c, bool d) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SpendGold | SpendGold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.SpendGold | SpendGold]]
| <code>void SpendGold(int a, int b, int c) </code>
+
 
| 暂无描述
+
| <code>void SpendGold(int playerID, int amount, int reason) </code>
 +
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.UpdateTeamSlot | UpdateTeamSlot]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.UpdateTeamSlot | UpdateTeamSlot]]
 +
 
| <code>void UpdateTeamSlot(int a, int b) </code>
 
| <code>void UpdateTeamSlot(int a, int b) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.WhoSelectedHero | WhoSelectedHero]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_PlayerResource.WhoSelectedHero | WhoSelectedHero]]
 +
 
| <code>int WhoSelectedHero(string a) </code>
 
| <code>int WhoSelectedHero(string a) </code>
| 暂无描述
+
 
 +
| No Description Set
 +
 
 
|}
 
|}
 +
 +
 +
  
  
 
=== CDOTA_BaseNPC ===
 
=== CDOTA_BaseNPC ===
 +
 +
:::::extends [[#CBaseFlex| CBaseFlex]]
 +
 
''''
 
''''
 +
 
{| class="standard-table" style="width: 100%;"
 
{| class="standard-table" style="width: 100%;"
! Function
+
 
! Signature
+
! 函数名
! Description
+
 
 +
! 函数原型
 +
 
 +
! 解释
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility | AddAbility]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddAbility | AddAbility]]
 +
 
| <code>void AddAbility(string a) </code>
 
| <code>void AddAbility(string a) </code>
| Add an ability to this unit by name.
+
 
 +
| 以技能名称为该单位新增技能。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddItem | AddItem]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddItem | AddItem]]
 +
 
| <code>void AddItem(handle a) </code>
 
| <code>void AddItem(handle a) </code>
| Add an item to this unit's inventory.
+
 
 +
| 增加物品到该单位的库存 。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNewModifier | AddNewModifier]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNewModifier | AddNewModifier]]
 +
 
| <code>void AddNewModifier(handle caster, handle optionalSourceAbility, string modifierName, handle modifierData) </code>
 
| <code>void AddNewModifier(handle caster, handle optionalSourceAbility, string modifierName, handle modifierData) </code>
|  
+
 
 +
| 为该单位增加修改器。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw | AddNoDraw]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AddNoDraw | AddNoDraw]]
 +
 
| <code>void AddNoDraw() </code>
 
| <code>void AddNoDraw() </code>
 +
 
| Adds the no draw flag.
 
| Adds the no draw flag.
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits | AlertNearbyUnits]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AlertNearbyUnits | AlertNearbyUnits]]
 +
 
| <code>void AlertNearbyUnits(handle a, handle b) </code>
 
| <code>void AlertNearbyUnits(handle a, handle b) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AngerNearbyUnits | AngerNearbyUnits]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AngerNearbyUnits | AngerNearbyUnits]]
 +
 
| <code>void AngerNearbyUnits() </code>
 
| <code>void AngerNearbyUnits() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan | AttackNoEarlierThan]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackNoEarlierThan | AttackNoEarlierThan]]
 +
 
| <code>void AttackNoEarlierThan(float a) </code>
 
| <code>void AttackNoEarlierThan(float a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackReady | AttackReady]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.AttackReady | AttackReady]]
 +
 
| <code>bool AttackReady() </code>
 
| <code>bool AttackReady() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.BoundingRadius2D | BoundingRadius2D]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.BoundingRadius2D | BoundingRadius2D]]
 +
 
| <code>float BoundingRadius2D() </code>
 
| <code>float BoundingRadius2D() </code>
| 暂无描述
+
 
 +
| 暂无
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CanEntityBeSeenByMyTeam | CanEntityBeSeenByMyTeam]]
 +
 
 +
| <code>bool CanEntityBeSeenByMyTeam(handle a) </code>
 +
 
 +
| Check FoW to see if an entity is visible.
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately | CastAbilityImmediately]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityImmediately | CastAbilityImmediately]]
| <code>void CastAbilityImmediately(handle a, int b) </code>
+
 
| Cast an ability immediately.
+
| <code>void CastAbilityImmediately(handle ability, int playerIndex) </code>
 +
 
 +
| 技能立即施法。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityNoTarget | CastAbilityNoTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityNoTarget | CastAbilityNoTarget]]
 +
 
| <code>void CastAbilityNoTarget(handle ability, int playerIndex) </code>
 
| <code>void CastAbilityNoTarget(handle ability, int playerIndex) </code>
| Cast an ability with no target. ( hAbility, iPlayerIndex )
+
 
 +
| 无目标的施放技能 ( hAbility, iPlayerIndex )
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition | CastAbilityOnPosition]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnPosition | CastAbilityOnPosition]]
 +
 
| <code>void CastAbilityOnPosition(Vector a, handle b, int c) </code>
 
| <code>void CastAbilityOnPosition(Vector a, handle b, int c) </code>
| Cast an ability on a position.
+
 
 +
| 对一地点施放技能。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnTarget | CastAbilityOnTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityOnTarget | CastAbilityOnTarget]]
 +
 
| <code>void CastAbilityOnTarget(handle target, handle ability, int playerIndex) </code>
 
| <code>void CastAbilityOnTarget(handle target, handle ability, int playerIndex) </code>
| Cast an ability on a target entity.
+
 
 +
| 对一实体施放技能。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle | CastAbilityToggle]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.CastAbilityToggle | CastAbilityToggle]]
 +
 
| <code>void CastAbilityToggle(handle a, int b) </code>
 
| <code>void CastAbilityToggle(handle a, int b) </code>
| Toggle an ability. ( hAbility, iPlayerIndex )
+
 
 +
| 切换技能 ( hAbility, iPlayerIndex )
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DisassembleItem | DisassembleItem]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DisassembleItem | DisassembleItem]]
 +
 
| <code>void DisassembleItem(handle a) </code>
 
| <code>void DisassembleItem(handle a) </code>
| Disassemble the passed item in this unit's inventory.
+
 
 +
| 拆解该单位库存中过时的物品。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPosition | DropItemAtPosition]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPosition | DropItemAtPosition]]
 +
 
| <code>void DropItemAtPosition(Vector a, handle b) </code>
 
| <code>void DropItemAtPosition(Vector a, handle b) </code>
| Drop an item at a given point.
+
 
 +
| 在指定地点掉落物品。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPositionImmediate | DropItemAtPositionImmediate]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.DropItemAtPositionImmediate | DropItemAtPositionImmediate]]
 +
 
| <code>void DropItemAtPositionImmediate(handle a, Vector b) </code>
 
| <code>void DropItemAtPositionImmediate(handle a, Vector b) </code>
| Immediately drop a carried item at a given position.
+
 
 +
| 立即在指定地点掉落物品。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.EjectItemFromStash | EjectItemFromStash]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.EjectItemFromStash | EjectItemFromStash]]
 +
 
| <code>void EjectItemFromStash(handle a) </code>
 
| <code>void EjectItemFromStash(handle a) </code>
| Drops the selected item out of this unit's stash.
+
 
 +
| 自库存栏丢落指定的物品。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.FindAbilityByName | FindAbilityByName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.FindAbilityByName | FindAbilityByName]]
 +
 
| <code>handle FindAbilityByName(string a) </code>
 
| <code>handle FindAbilityByName(string a) </code>
| Retrieve an ability by name from the unit.
+
 
 +
| 以名称寻找技能。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ForceKill | ForceKill]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.ForceKill | ForceKill]]
 +
 
| <code>void ForceKill(bool a) </code>
 
| <code>void ForceKill(bool a) </code>
| Kill this unit immediately.
+
 
 +
| 强制击杀该单位。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityByIndex | GetAbilityByIndex]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityByIndex | GetAbilityByIndex]]
 +
 
| <code>handle GetAbilityByIndex(int a) </code>
 
| <code>handle GetAbilityByIndex(int a) </code>
| Retrieve an ability by index from the unit.
+
 
 +
| 以下标值检索该单位的技能。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityCount | GetAbilityCount]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAbilityCount | GetAbilityCount]]
 +
 
| <code>int GetAbilityCount() </code>
 
| <code>int GetAbilityCount() </code>
| 暂无描述
+
 
 +
| 获取拥有的技能数量。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAcquisitionRange | GetAcquisitionRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAcquisitionRange | GetAcquisitionRange]]
 +
 
| <code>float GetAcquisitionRange() </code>
 
| <code>float GetAcquisitionRange() </code>
| Gets the range at which this unit will auto-acquire.
+
 
 +
| 获取单位的自动收集距离。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAdditionalBattleMusicWeight | GetAdditionalBattleMusicWeight]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAdditionalBattleMusicWeight | GetAdditionalBattleMusicWeight]]
 +
 
| <code>float GetAdditionalBattleMusicWeight() </code>
 
| <code>float GetAdditionalBattleMusicWeight() </code>
| Combat involving this creature will have this weight added to the music calcuations
+
 
 +
| 获取当与该单位战斗时将会计算的战斗音乐权重。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackAnimationPoint | GetAttackAnimationPoint]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackAnimationPoint | GetAttackAnimationPoint]]
 +
 
| <code>float GetAttackAnimationPoint() </code>
 
| <code>float GetAttackAnimationPoint() </code>
| 暂无描述
+
 
 +
| 暂无
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackCapability | GetAttackCapability]]
 +
 
 +
| <code>int GetAttackCapability() </code>
 +
 
 +
| Gets the Attack Capabilities of the unit
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackDamage | GetAttackDamage]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackDamage | GetAttackDamage]]
 +
 
| <code>int GetAttackDamage() </code>
 
| <code>int GetAttackDamage() </code>
| Returns a random integer between the minimum and maximum base damage of the unit.
+
 
 +
| 获取该单位伤害最大值与最小值之间的随机整数。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRange | GetAttackRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRange | GetAttackRange]]
 +
 
| <code>float GetAttackRange() </code>
 
| <code>float GetAttackRange() </code>
| Gets this unit's attack range after all modifiers.
+
 
 +
| 获取单位当前的攻击距离。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRangeBuffer | GetAttackRangeBuffer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackRangeBuffer | GetAttackRangeBuffer]]
 +
 
| <code>float GetAttackRangeBuffer() </code>
 
| <code>float GetAttackRangeBuffer() </code>
| Gets the attack range buffer.
+
 
 +
| 获取状态增加的攻击距离。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackSpeed | GetAttackSpeed]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackSpeed | GetAttackSpeed]]
 +
 
| <code>float GetAttackSpeed() </code>
 
| <code>float GetAttackSpeed() </code>
| 暂无描述
+
 
 +
| 获取该单位的攻速。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttacksPerSecond | GetAttacksPerSecond]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttacksPerSecond | GetAttacksPerSecond]]
 +
 
| <code>float GetAttacksPerSecond() </code>
 
| <code>float GetAttacksPerSecond() </code>
| 暂无描述
+
 
 +
| 获取APS值(每秒能够打几下)。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackTarget | GetAttackTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAttackTarget | GetAttackTarget]]
 +
 
| <code>handle GetAttackTarget() </code>
 
| <code>handle GetAttackTarget() </code>
| 暂无描述
+
 
 +
| 返回该单位的攻击目标。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAverageTrueAttackDamage | GetAverageTrueAttackDamage]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetAverageTrueAttackDamage | GetAverageTrueAttackDamage]]
 +
 
| <code>int GetAverageTrueAttackDamage() </code>
 
| <code>int GetAverageTrueAttackDamage() </code>
| Returns the average value of the minimum and maximum damage values.
+
 
 +
| 获取该单位最大伤害值与最小伤害值的平均数。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackRange | GetBaseAttackRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackRange | GetBaseAttackRange]]
 +
 
| <code>int GetBaseAttackRange() </code>
 
| <code>int GetBaseAttackRange() </code>
| Gets this unit's attack range before modifiers.
+
 
 +
| 获取单位的基础攻击距离(修改器不列入计算)。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackTime | GetBaseAttackTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseAttackTime | GetBaseAttackTime]]
 +
 
| <code>float GetBaseAttackTime() </code>
 
| <code>float GetBaseAttackTime() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMax | GetBaseDamageMax]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMax | GetBaseDamageMax]]
 +
 
| <code>int GetBaseDamageMax() </code>
 
| <code>int GetBaseDamageMax() </code>
| Gets the minimum base damage.
+
 
 +
| 获取最大伤害值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMin | GetBaseDamageMin]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDamageMin | GetBaseDamageMin]]
 +
 
| <code>int GetBaseDamageMin() </code>
 
| <code>int GetBaseDamageMin() </code>
| Gets the minimum base damage.
+
 
 +
| 获取最小伤害值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDayTimeVisionRange | GetBaseDayTimeVisionRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseDayTimeVisionRange | GetBaseDayTimeVisionRange]]
 +
 
| <code>int GetBaseDayTimeVisionRange() </code>
 
| <code>int GetBaseDayTimeVisionRange() </code>
| Returns the vision range before modifiers.
+
 
 +
| 获取单位的基础日间视野距离(修改器不列入计算)。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseHealthRegen | GetBaseHealthRegen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseHealthRegen | GetBaseHealthRegen]]
 +
 
| <code>float GetBaseHealthRegen() </code>
 
| <code>float GetBaseHealthRegen() </code>
| 暂无描述
+
 
 +
| 获取单位的基础血量恢复值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMagicalResistanceValue | GetBaseMagicalResistanceValue]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMagicalResistanceValue | GetBaseMagicalResistanceValue]]
 +
 
| <code>float GetBaseMagicalResistanceValue() </code>
 
| <code>float GetBaseMagicalResistanceValue() </code>
| Returns base magical armor value.
+
 
 +
| 获取单位的基础魔法抗性值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMaxHealth | GetBaseMaxHealth]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMaxHealth | GetBaseMaxHealth]]
 +
 
| <code>float GetBaseMaxHealth() </code>
 
| <code>float GetBaseMaxHealth() </code>
| Gets the base max health value.
+
 
 +
| 获取基础血量值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMoveSpeed | GetBaseMoveSpeed]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseMoveSpeed | GetBaseMoveSpeed]]
 +
 
| <code>float GetBaseMoveSpeed() </code>
 
| <code>float GetBaseMoveSpeed() </code>
| 暂无描述
+
 
 +
| 获取基础跑速。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseNightTimeVisionRange | GetBaseNightTimeVisionRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetBaseNightTimeVisionRange | GetBaseNightTimeVisionRange]]
 +
 
| <code>int GetBaseNightTimeVisionRange() </code>
 
| <code>int GetBaseNightTimeVisionRange() </code>
| Returns the vision range before modifiers.
+
 
 +
| 获取单位基础的夜间视野距离(修改器不列入计算)。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint | GetCastPoint]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCastPoint | GetCastPoint]]
 +
 
| <code>float GetCastPoint(bool a) </code>
 
| <code>float GetCastPoint(bool a) </code>
| Parameter: bAttack
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCollisionPadding | GetCollisionPadding]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCollisionPadding | GetCollisionPadding]]
 +
 
| <code>float GetCollisionPadding() </code>
 
| <code>float GetCollisionPadding() </code>
| Returns the size of the collision padding around the hull.
+
 
 +
| 返回该单位的碰撞体积。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetConstantBasedManaRegen | GetConstantBasedManaRegen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetConstantBasedManaRegen | GetConstantBasedManaRegen]]
 +
 
| <code>float GetConstantBasedManaRegen() </code>
 
| <code>float GetConstantBasedManaRegen() </code>
| This Mana regen is derived from constant bonuses like Basilius.
+
 
 +
| 获取基础的魔力恢复值常数。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCreationTime | GetCreationTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCreationTime | GetCreationTime]]
 +
 
| <code>float GetCreationTime() </code>
 
| <code>float GetCreationTime() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentActiveAbility | GetCurrentActiveAbility]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentActiveAbility | GetCurrentActiveAbility]]
 +
 
| <code>handle GetCurrentActiveAbility() </code>
 
| <code>handle GetCurrentActiveAbility() </code>
| Get the ability this unit is currently casting.
+
 
 +
| 获取该单位正在使用中的法术。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentVisionRange | GetCurrentVisionRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCurrentVisionRange | GetCurrentVisionRange]]
 +
 
| <code>int GetCurrentVisionRange() </code>
 
| <code>int GetCurrentVisionRange() </code>
| Gets the current vision range.
+
 
 +
| 获取当前的视野距离。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorCastTarget | GetCursorCastTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorCastTarget | GetCursorCastTarget]]
 +
 
| <code>handle GetCursorCastTarget() </code>
 
| <code>handle GetCursorCastTarget() </code>
| 暂无描述
+
 
 +
| 获取鼠标指定的施法目标。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorPosition | GetCursorPosition]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorPosition | GetCursorPosition]]
 +
 
| <code>Vector GetCursorPosition() </code>
 
| <code>Vector GetCursorPosition() </code>
| 暂无描述
+
 
 +
| 获取鼠标位置。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorTargetingNothing | GetCursorTargetingNothing]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetCursorTargetingNothing | GetCursorTargetingNothing]]
 +
 
| <code>bool GetCursorTargetingNothing() </code>
 
| <code>bool GetCursorTargetingNothing() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDayTimeVisionRange | GetDayTimeVisionRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDayTimeVisionRange | GetDayTimeVisionRange]]
 +
 
| <code>int GetDayTimeVisionRange() </code>
 
| <code>int GetDayTimeVisionRange() </code>
| Returns the vision range after modifiers.
+
 
 +
| 获取该单位的日间视野(将修改器并入计算)。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDeathXP | GetDeathXP]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetDeathXP | GetDeathXP]]
 +
 
| <code>int GetDeathXP() </code>
 
| <code>int GetDeathXP() </code>
| Get the XP bounty on this unit
+
 
 +
| 获取该单位的击杀经验值奖赏。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetForceAttackTarget | GetForceAttackTarget]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetForceAttackTarget | GetForceAttackTarget]]
 +
 
| <code>handle GetForceAttackTarget() </code>
 
| <code>handle GetForceAttackTarget() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetGoldBounty | GetGoldBounty]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetGoldBounty | GetGoldBounty]]
 +
 
| <code>int GetGoldBounty() </code>
 
| <code>int GetGoldBounty() </code>
| Get the gold bounty on this unit
+
 
 +
| 获取该单位的击杀金钱奖赏。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHasteFactor | GetHasteFactor]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHasteFactor | GetHasteFactor]]
 +
 
| <code>float GetHasteFactor() </code>
 
| <code>float GetHasteFactor() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealth | GetHealth]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealth | GetHealth]]
 +
 
| <code>int GetHealth() </code>
 
| <code>int GetHealth() </code>
| Get the health of this unit.
+
 
 +
| 获取该单位的血量。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthDeficit | GetHealthDeficit]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthDeficit | GetHealthDeficit]]
 +
 
| <code>int GetHealthDeficit() </code>
 
| <code>int GetHealthDeficit() </code>
| Returns integer amount of health missing from max.
+
 
 +
| 返回损失的血量 (最大血量 - 当前血量)。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthPercent | GetHealthPercent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthPercent | GetHealthPercent]]
 +
 
| <code>int GetHealthPercent() </code>
 
| <code>int GetHealthPercent() </code>
| Get the current health percent of the unit.
+
 
 +
| 获取该单位当前的血量百分比。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthRegen | GetHealthRegen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHealthRegen | GetHealthRegen]]
 +
 
| <code>float GetHealthRegen() </code>
 
| <code>float GetHealthRegen() </code>
| 暂无描述
+
 
 +
| 获取该单位当前的血量恢复值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHullRadius | GetHullRadius]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetHullRadius | GetHullRadius]]
 +
 
| <code>float GetHullRadius() </code>
 
| <code>float GetHullRadius() </code>
| Get the collision hull radius of this NPC
+
 
 +
| 获取该单位的碰撞体积半径。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIdealSpeed | GetIdealSpeed]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIdealSpeed | GetIdealSpeed]]
 +
 
| <code>float GetIdealSpeed() </code>
 
| <code>float GetIdealSpeed() </code>
| Returns speed after all modifiers.
+
 
 +
| 获取该单位的跑速(将修改器并入计算)。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetIncreasedAttackSpeed | GetIncreasedAttackSpeed]]
 +
 
| <code>float GetIncreasedAttackSpeed() </code>
 
| <code>float GetIncreasedAttackSpeed() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetInitialGoalEntity | GetInitialGoalEntity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetInitialGoalEntity | GetInitialGoalEntity]]
 +
 
| <code>handle GetInitialGoalEntity() </code>
 
| <code>handle GetInitialGoalEntity() </code>
| Returns the initial waypoint goal for this NPC
+
 
 +
| 返回该单位初始的路径点。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot | GetItemInSlot]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetItemInSlot | GetItemInSlot]]
 +
 
| <code>handle GetItemInSlot(int a) </code>
 
| <code>handle GetItemInSlot(int a) </code>
| Returns nth item in inventory slot (index is zero based)
+
 
 +
| 以下标值获取物品栏中的物品。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLastIdleChangeTime | GetLastIdleChangeTime]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLastIdleChangeTime | GetLastIdleChangeTime]]
 +
 
| <code>float GetLastIdleChangeTime() </code>
 
| <code>float GetLastIdleChangeTime() </code>
| Get the last game time that this unit switched to/from idle state.
+
 
 +
| 获取该单位最后 进入/离开 闲置状态的时间。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLevel | GetLevel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetLevel | GetLevel]]
 +
 
| <code>int GetLevel() </code>
 
| <code>int GetLevel() </code>
| Returns the level of this unit.
+
 
 +
| 返回该单位当前的等级。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMagicalArmorValue | GetMagicalArmorValue]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMagicalArmorValue | GetMagicalArmorValue]]
 +
 
| <code>float GetMagicalArmorValue() </code>
 
| <code>float GetMagicalArmorValue() </code>
| Returns current magical armor value.
+
 
 +
| 返回该单位当前的魔法抗性值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMainControllingPlayer | GetMainControllingPlayer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMainControllingPlayer | GetMainControllingPlayer]]
 +
 
| <code>int GetMainControllingPlayer() </code>
 
| <code>int GetMainControllingPlayer() </code>
| Returns the player ID of the controlling player.
+
 
 +
| 返回控制该单位的玩家ID。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMana | GetMana]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMana | GetMana]]
 +
 
| <code>float GetMana() </code>
 
| <code>float GetMana() </code>
| Get the mana on this unit.
+
 
 +
| 获取该单位的魔力值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaPercent | GetManaPercent]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaPercent | GetManaPercent]]
 +
 
| <code>int GetManaPercent() </code>
 
| <code>int GetManaPercent() </code>
| Get the percent of mana remaining.
+
 
 +
| 获取该单位的剩余魔力值百分比。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaRegen | GetManaRegen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetManaRegen | GetManaRegen]]
 +
 
| <code>float GetManaRegen() </code>
 
| <code>float GetManaRegen() </code>
| 暂无描述
+
 
 +
| 获取该单位的魔力恢复值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxHealth | GetMaxHealth]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxHealth | GetMaxHealth]]
 +
 
| <code>int GetMaxHealth() </code>
 
| <code>int GetMaxHealth() </code>
| Get the maximum health of this unit.
+
 
 +
| 获取该单位的最大血量。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxMana | GetMaxMana]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMaxMana | GetMaxMana]]
 +
 
| <code>float GetMaxMana() </code>
 
| <code>float GetMaxMana() </code>
| Get the maximum mana of this unit.
+
 
 +
| 获取该单位的最大魔力。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModelRadius | GetModelRadius]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModelRadius | GetModelRadius]]
 +
 
| <code>float GetModelRadius() </code>
 
| <code>float GetModelRadius() </code>
| 暂无描述
+
 
 +
| 获取模型大小半径。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierCount | GetModifierCount]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierCount | GetModifierCount]]
 +
 
| <code>int GetModifierCount() </code>
 
| <code>int GetModifierCount() </code>
| How many modifiers does this unit have?
+
 
 +
| 返回该单位所拥有的修改器数量。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex | GetModifierNameByIndex]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierNameByIndex | GetModifierNameByIndex]]
 +
 
| <code>string GetModifierNameByIndex(int a) </code>
 
| <code>string GetModifierNameByIndex(int a) </code>
| Get a modifier name by index.
+
 
 +
| 以下标值索引修改器,并返回修改器名称字符串。
 +
|-
 +
 
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetModifierStackCount | GetModifierStackCount]]
 +
 
 +
| <code>void GetModifierStackCount(string modifierName, handle b) </code>
 +
 
 +
| Gets the stack count of a given modifier.
 +
 
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMoveSpeedModifier | GetMoveSpeedModifier]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMoveSpeedModifier | GetMoveSpeedModifier]]
 +
 
| <code>float GetMoveSpeedModifier(float a) </code>
 
| <code>float GetMoveSpeedModifier(float a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMustReachEachGoalEntity | GetMustReachEachGoalEntity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetMustReachEachGoalEntity | GetMustReachEachGoalEntity]]
 +
 
| <code>bool GetMustReachEachGoalEntity() </code>
 
| <code>bool GetMustReachEachGoalEntity() </code>
| Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
+
 
 +
| 该单位是否被要求走访每个路径点?
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetNightTimeVisionRange | GetNightTimeVisionRange]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetNightTimeVisionRange | GetNightTimeVisionRange]]
 +
 
| <code>int GetNightTimeVisionRange() </code>
 
| <code>int GetNightTimeVisionRange() </code>
| Returns the vision range after modifiers.
+
 
 +
| 返回夜间视野距离(将修改器并入计算)。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetOpposingTeamNumber | GetOpposingTeamNumber]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetOpposingTeamNumber | GetOpposingTeamNumber]]
 +
 
| <code>int GetOpposingTeamNumber() </code>
 
| <code>int GetOpposingTeamNumber() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPaddedCollisionRadius | GetPaddedCollisionRadius]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPaddedCollisionRadius | GetPaddedCollisionRadius]]
 +
 
| <code>float GetPaddedCollisionRadius() </code>
 
| <code>float GetPaddedCollisionRadius() </code>
| Get the collision hull radius (including padding) of this NPC
+
 
 +
| 获取单位碰撞体积半径。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPercentageBasedManaRegen | GetPercentageBasedManaRegen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPercentageBasedManaRegen | GetPercentageBasedManaRegen]]
 +
 
| <code>float GetPercentageBasedManaRegen() </code>
 
| <code>float GetPercentageBasedManaRegen() </code>
| This Mana regen is derived from % bonuses (from items like Void Stone).
+
 
 +
| 获取基础魔力恢复值百分比。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorBaseValue | GetPhysicalArmorBaseValue]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorBaseValue | GetPhysicalArmorBaseValue]]
 +
 
| <code>float GetPhysicalArmorBaseValue() </code>
 
| <code>float GetPhysicalArmorBaseValue() </code>
| Returns base physical armor value.
+
 
 +
| 返回基础护甲值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorValue | GetPhysicalArmorValue]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPhysicalArmorValue | GetPhysicalArmorValue]]
 +
 
| <code>float GetPhysicalArmorValue() </code>
 
| <code>float GetPhysicalArmorValue() </code>
| Returns current physical armor value.
+
 
 +
| 返回当前的护甲值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwner | GetPlayerOwner]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwner | GetPlayerOwner]]
 +
 
| <code>handle GetPlayerOwner() </code>
 
| <code>handle GetPlayerOwner() </code>
| Returns the player that owns this unit
+
 
 +
| 获取拥有此单位的玩家实体。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwnerID | GetPlayerOwnerID]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetPlayerOwnerID | GetPlayerOwnerID]]
 +
 
| <code>int GetPlayerOwnerID() </code>
 
| <code>int GetPlayerOwnerID() </code>
| Get the owner player ID for this unit.
+
 
 +
| 获取拥有此单位的玩家ID。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetProjectileSpeed | GetProjectileSpeed]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetProjectileSpeed | GetProjectileSpeed]]
 +
 
| <code>int GetProjectileSpeed() </code>
 
| <code>int GetProjectileSpeed() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit | GetRangeToUnit]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetRangeToUnit | GetRangeToUnit]]
 +
 
| <code>float GetRangeToUnit(handle a) </code>
 
| <code>float GetRangeToUnit(handle a) </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetSecondsPerAttack | GetSecondsPerAttack]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetSecondsPerAttack | GetSecondsPerAttack]]
 +
 
| <code>float GetSecondsPerAttack() </code>
 
| <code>float GetSecondsPerAttack() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetStatsBasedManaRegen | GetStatsBasedManaRegen]]
 +
 
| <code>float GetStatsBasedManaRegen() </code>
 
| <code>float GetStatsBasedManaRegen() </code>
| Returns mana regen rate per intelligence.
+
 
 +
| 获取因智慧而增加的魔法恢复值。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTeamNumber | GetTeamNumber]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTeamNumber | GetTeamNumber]]
 +
 
| <code>int GetTeamNumber() </code>
 
| <code>int GetTeamNumber() </code>
| Get the team number of this unit.
+
 
 +
| 获取该单位所属的队伍ID。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTotalPurchasedUpgradeGoldCost | GetTotalPurchasedUpgradeGoldCost]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetTotalPurchasedUpgradeGoldCost | GetTotalPurchasedUpgradeGoldCost]]
 +
 
| <code>int GetTotalPurchasedUpgradeGoldCost() </code>
 
| <code>int GetTotalPurchasedUpgradeGoldCost() </code>
| Get how much gold has been spent on ability upgrades.
+
 
 +
| 获取用在升级的金钱。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitLabel | GetUnitLabel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitLabel | GetUnitLabel]]
 +
 
| <code>string GetUnitLabel() </code>
 
| <code>string GetUnitLabel() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitName | GetUnitName]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GetUnitName | GetUnitName]]
 +
 
| <code>string GetUnitName() </code>
 
| <code>string GetUnitName() </code>
| 暂无描述
+
 
 +
| 获取单位名称。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana | GiveMana]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.GiveMana | GiveMana]]
 +
 
| <code>void GiveMana(float a) </code>
 
| <code>void GiveMana(float a) </code>
| Give mana to this unit, this can be used for mana gained by abilities or item usage.
+
 
 +
| 给予此单位指定的魔法值。(Giff me mana!)
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAbility | HasAbility]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAbility | HasAbility]]
 +
 
| <code>bool HasAbility(string a) </code>
 
| <code>bool HasAbility(string a) </code>
| See whether this unit has an ability by name.
+
 
 +
| 以技能名称搜寻该单位是否拥有此技能。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAttackCapability | HasAttackCapability]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasAttackCapability | HasAttackCapability]]
 +
 
| <code>bool HasAttackCapability() </code>
 
| <code>bool HasAttackCapability() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyingVision | HasFlyingVision]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyingVision | HasFlyingVision]]
 +
 
| <code>bool HasFlyingVision() </code>
 
| <code>bool HasFlyingVision() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyMovementCapability | HasFlyMovementCapability]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasFlyMovementCapability | HasFlyMovementCapability]]
 +
 
| <code>bool HasFlyMovementCapability() </code>
 
| <code>bool HasFlyMovementCapability() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasGroundMovementCapability | HasGroundMovementCapability]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasGroundMovementCapability | HasGroundMovementCapability]]
 +
 
| <code>bool HasGroundMovementCapability() </code>
 
| <code>bool HasGroundMovementCapability() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasInventory | HasInventory]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasInventory | HasInventory]]
 +
 
| <code>bool HasInventory() </code>
 
| <code>bool HasInventory() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory | HasItemInInventory]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasItemInInventory | HasItemInInventory]]
 +
 
| <code>bool HasItemInInventory(string a) </code>
 
| <code>bool HasItemInInventory(string a) </code>
| See whether this unit has an item by name.
+
 
 +
| 以物品名称搜寻该单位是否拥有此物品。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasModifier | HasModifier]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasModifier | HasModifier]]
 +
 
| <code>bool HasModifier(string a) </code>
 
| <code>bool HasModifier(string a) </code>
| Sees if this unit has a given modifier
+
 
 +
| 以修改器名称搜寻该单位是否拥有此修改器。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasMovementCapability | HasMovementCapability]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasMovementCapability | HasMovementCapability]]
 +
 
| <code>bool HasMovementCapability() </code>
 
| <code>bool HasMovementCapability() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasScepter | HasScepter]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.HasScepter | HasScepter]]
 +
 
| <code>bool HasScepter() </code>
 
| <code>bool HasScepter() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal | Heal]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Heal | Heal]]
| <code>void Heal(float a, handle b) </code>
+
 
| Heal this unit.
+
| <code>void Heal(float amount, handle source) </code>
 +
 
 +
| 治疗该单位。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Hold | Hold]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Hold | Hold]]
 +
 
| <code>void Hold() </code>
 
| <code>void Hold() </code>
| Hold position.
+
 
 +
| 命令单位在原地待命。
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Interrupt | Interrupt]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.Interrupt | Interrupt]]
 +
 
| <code>void Interrupt() </code>
 
| <code>void Interrupt() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptChannel | InterruptChannel]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptChannel | InterruptChannel]]
 +
 
| <code>void InterruptChannel() </code>
 
| <code>void InterruptChannel() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers | InterruptMotionControllers]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.InterruptMotionControllers | InterruptMotionControllers]]
 +
 
| <code>void InterruptMotionControllers(bool a) </code>
 
| <code>void InterruptMotionControllers(bool a) </code>
| Parameter boolean determines finding clear space.
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAlive | IsAlive]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAlive | IsAlive]]
 +
 
| <code>bool IsAlive() </code>
 
| <code>bool IsAlive() </code>
| Is this unit alive?
+
 
 +
| 此单位是否还活着?
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAncient | IsAncient]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAncient | IsAncient]]
 +
 
| <code>bool IsAncient() </code>
 
| <code>bool IsAncient() </code>
| Is this creature an Ancient?
+
 
 +
| 该生物是否为远古野怪?
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackImmune | IsAttackImmune]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackImmune | IsAttackImmune]]
 +
 
| <code>bool IsAttackImmune() </code>
 
| <code>bool IsAttackImmune() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttacking | IsAttacking]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttacking | IsAttacking]]
 +
 
| <code>bool IsAttacking() </code>
 
| <code>bool IsAttacking() </code>
| 暂无描述
+
 
 +
| 暂无
 
|-
 
|-
 +
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity | IsAttackingEntity]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTA_BaseNPC.IsAttackingEntity | IsAttackingEntity]]
 +
 
| <code>bool IsAttackingEntity(handle a) </code>
 
| <code>bool IsAttackingEntity(handle a) </code>
| 暂无描述
+