Dota 2 Workshop Tools/Scripting/API: Difference between revisions
Jochnickel (talk | contribs) |
Jochnickel (talk | contribs) |
||
Line 1,818: | Line 1,818: | ||
| <code>void UseResources(bool bMana, bool bGold, bool bCooldown) </code> | | <code>void UseResources(bool bMana, bool bGold, bool bCooldown) </code> | ||
| Use the ability's resources. Return true for each resource to determine which resource should be used - mana, gold, and cooldown. | | Use the ability's resources. Return true for each resource to determine which resource should be used - mana, gold, and cooldown. | ||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CanAbilityBeUpgraded | CanAbilityBeUpgraded]] | |||
| <code><unknown> CanAbilityBeUpgraded()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CastAbility | CastAbility]] | |||
| <code>bool CastAbility()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ContinueCasting | ContinueCasting]] | |||
| <code>bool ContinueCasting()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.CreateVisibilityNode | CreateVisibilityNode]] | |||
| <code>void CreateVisibilityNode(Vector vLocation, float fRadius, float fDuration)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.DecrementModifierRefCount | DecrementModifierRefCount]] | |||
| <code>void DecrementModifierRefCount()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndChannel | EndChannel]] | |||
| <code>void EndChannel(bool bInterrupted)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.EndCooldown | EndCooldown]] | |||
| <code>void EndCooldown()</code> | |||
| Clear the cooldown remaining on this ability. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAOERadius | GetAOERadius]] | |||
| <code>int GetAOERadius()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamage | GetAbilityDamage]] | |||
| <code>int GetAbilityDamage()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityDamageType | GetAbilityDamageType]] | |||
| <code>int GetAbilityDamageType()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityIndex | GetAbilityIndex]] | |||
| <code>int GetAbilityIndex()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityKeyValues | GetAbilityKeyValues]] | |||
| <code>table GetAbilityKeyValues()</code> | |||
| Gets the key values definition for this ability. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityName | GetAbilityName]] | |||
| <code>string GetAbilityName()</code> | |||
| Returns the name of this ability. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetFlags | GetAbilityTargetFlags]] | |||
| <code>int GetAbilityTargetFlags()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetTeam | GetAbilityTargetTeam]] | |||
| <code>int GetAbilityTargetTeam()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityTargetType | GetAbilityTargetType]] | |||
| <code>int GetAbilityTargetType()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityType | GetAbilityType]] | |||
| <code>int GetAbilityType()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAnimationIgnoresModelScale | GetAnimationIgnoresModelScale]] | |||
| <code>bool GetAnimationIgnoresModelScale()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedPrimaryAbilities | GetAssociatedPrimaryAbilities]] | |||
| <code>string GetAssociatedPrimaryAbilities()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAssociatedSecondaryAbilities | GetAssociatedSecondaryAbilities]] | |||
| <code>string GetAssociatedSecondaryAbilities()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAutoCastState | GetAutoCastState]] | |||
| <code>bool GetAutoCastState()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBackswingTime | GetBackswingTime]] | |||
| <code>float GetBackswingTime()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetBehavior | GetBehavior]] | |||
| <code>int GetBehavior()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastPoint | GetCastPoint]] | |||
| <code>float GetCastPoint()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCastRange | GetCastRange]] | |||
| <code>int GetCastRange(Vector vLocation, handle hTarget)</code> | |||
| Gets the cast range of the ability. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCaster | GetCaster]] | |||
| <code>handle GetCaster()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelStartTime | GetChannelStartTime]] | |||
| <code>float GetChannelStartTime()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelTime | GetChannelTime]] | |||
| <code>float GetChannelTime()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetChannelledManaCostPerSecond | GetChannelledManaCostPerSecond]] | |||
| <code>int GetChannelledManaCostPerSecond(int iLevel)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCloneSource | GetCloneSource]] | |||
| <code>handle GetCloneSource()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetConceptRecipientType | GetConceptRecipientType]] | |||
| <code>int GetConceptRecipientType()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldown | GetCooldown]] | |||
| <code>float GetCooldown(int iLevel)</code> | |||
| Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTime | GetCooldownTime]] | |||
| <code>float GetCooldownTime()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCooldownTimeRemaining | GetCooldownTimeRemaining]] | |||
| <code>float GetCooldownTimeRemaining()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorPosition | GetCursorPosition]] | |||
| <code>Vector GetCursorPosition()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTarget | GetCursorTarget]] | |||
| <code>handle GetCursorTarget()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetCursorTargetingNothing | GetCursorTargetingNothing]] | |||
| <code>bool GetCursorTargetingNothing()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetDuration | GetDuration]] | |||
| <code>float GetDuration()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetEffectiveCooldown | GetEffectiveCooldown]] | |||
| <code>float GetEffectiveCooldown(int iLevel)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCost | GetGoldCost]] | |||
| <code>int GetGoldCost(int iLevel)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetGoldCostForUpgrade | GetGoldCostForUpgrade]] | |||
| <code>int GetGoldCostForUpgrade(int iLevel)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetHeroLevelRequiredToUpgrade | GetHeroLevelRequiredToUpgrade]] | |||
| <code>int GetHeroLevelRequiredToUpgrade()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetIntrinsicModifierName | GetIntrinsicModifierName]] | |||
| <code>string GetIntrinsicModifierName()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevel | GetLevel]] | |||
| <code>int GetLevel()</code> | |||
| Get the current level of the ability. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetLevelSpecialValueFor | GetLevelSpecialValueFor]] | |||
| <code>table GetLevelSpecialValueFor(string szName, int nLevel)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetManaCost | GetManaCost]] | |||
| <code>int GetManaCost(int iLevel)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetMaxLevel | GetMaxLevel]] | |||
| <code>int GetMaxLevel()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValue | GetModifierValue]] | |||
| <code>float GetModifierValue()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetModifierValueBonus | GetModifierValueBonus]] | |||
| <code>float GetModifierValueBonus()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetPlaybackRateOverride | GetPlaybackRateOverride]] | |||
| <code>float GetPlaybackRateOverride()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSharedCooldownName | GetSharedCooldownName]] | |||
| <code>string GetSharedCooldownName()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetSpecialValueFor | GetSpecialValueFor]] | |||
| <code>table GetSpecialValueFor(string szName)</code> | |||
| Gets a value from this ability's special value block for its current level. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetStolenActivityModifier | GetStolenActivityModifier]] | |||
| <code>string GetStolenActivityModifier()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetToggleState | GetToggleState]] | |||
| <code>bool GetToggleState()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetUpgradeRecommended | GetUpgradeRecommended]] | |||
| <code>bool GetUpgradeRecommended()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.HeroXPChange | HeroXPChange]] | |||
| <code>bool HeroXPChange(float flXP)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IncrementModifierRefCount | IncrementModifierRefCount]] | |||
| <code>void IncrementModifierRefCount()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsActivated | IsActivated]] | |||
| <code>bool IsActivated()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsAttributeBonus | IsAttributeBonus]] | |||
| <code>bool IsAttributeBonus()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsChanneling | IsChanneling]] | |||
| <code>bool IsChanneling()</code> | |||
| Returns whether the ability is currently channeling. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCooldownReady | IsCooldownReady]] | |||
| <code>bool IsCooldownReady()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsCosmetic | IsCosmetic]] | |||
| <code>bool IsCosmetic(handle hEntity)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsFullyCastable | IsFullyCastable]] | |||
| <code>bool IsFullyCastable()</code> | |||
| Returns whether the ability can be cast. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHidden | IsHidden]] | |||
| <code>bool IsHidden()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenAsSecondaryAbility | IsHiddenAsSecondaryAbility]] | |||
| <code>bool IsHiddenAsSecondaryAbility()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsHiddenWhenStolen | IsHiddenWhenStolen]] | |||
| <code>bool IsHiddenWhenStolen()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsInAbilityPhase | IsInAbilityPhase]] | |||
| <code>bool IsInAbilityPhase()</code> | |||
| Returns whether the ability is currently casting. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsItem | IsItem]] | |||
| <code>bool IsItem()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnough | IsOwnersGoldEnough]] | |||
| <code>bool IsOwnersGoldEnough(int nIssuerPlayerID)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersGoldEnoughForUpgrade | IsOwnersGoldEnoughForUpgrade]] | |||
| <code>bool IsOwnersGoldEnoughForUpgrade()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsOwnersManaEnough | IsOwnersManaEnough]] | |||
| <code>bool IsOwnersManaEnough()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsPassive | IsPassive]] | |||
| <code>bool IsPassive()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsRefreshable | IsRefreshable]] | |||
| <code>bool IsRefreshable()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsSharedWithTeammates | IsSharedWithTeammates]] | |||
| <code>bool IsSharedWithTeammates()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStealable | IsStealable]] | |||
| <code>bool IsStealable()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsStolen | IsStolen]] | |||
| <code>bool IsStolen()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsToggle | IsToggle]] | |||
| <code>bool IsToggle()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.IsTrained | IsTrained]] | |||
| <code>bool IsTrained()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.MarkAbilityButtonDirty | MarkAbilityButtonDirty]] | |||
| <code>void MarkAbilityButtonDirty()</code> | |||
| Mark the ability button for this ability as needing a refresh. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.NumModifiersUsingAbility | NumModifiersUsingAbility]] | |||
| <code>int NumModifiersUsingAbility()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseInterrupted | OnAbilityPhaseInterrupted]] | |||
| <code>void OnAbilityPhaseInterrupted()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPhaseStart | OnAbilityPhaseStart]] | |||
| <code>bool OnAbilityPhaseStart()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnAbilityPinged | OnAbilityPinged]] | |||
| <code>void OnAbilityPinged(int nPlayerID, bool bCtrlHeld)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelFinish | OnChannelFinish]] | |||
| <code>void OnChannelFinish(bool bInterrupted)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnChannelThink | OnChannelThink]] | |||
| <code>void OnChannelThink(float flInterval)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroCalculateStatBonus | OnHeroCalculateStatBonus]] | |||
| <code>void OnHeroCalculateStatBonus()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnHeroLevelUp | OnHeroLevelUp]] | |||
| <code>void OnHeroLevelUp()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerDied | OnOwnerDied]] | |||
| <code>void OnOwnerDied()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnOwnerSpawned | OnOwnerSpawned]] | |||
| <code>void OnOwnerSpawned()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnSpellStart | OnSpellStart]] | |||
| <code>void OnSpellStart()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnToggle | OnToggle]] | |||
| <code>void OnToggle()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.OnUpgrade | OnUpgrade]] | |||
| <code>void OnUpgrade()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCost | PayGoldCost]] | |||
| <code>void PayGoldCost()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayGoldCostForUpgrade | PayGoldCostForUpgrade]] | |||
| <code>void PayGoldCostForUpgrade()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PayManaCost | PayManaCost]] | |||
| <code>void PayManaCost()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.PlaysDefaultAnimWhenStolen | PlaysDefaultAnimWhenStolen]] | |||
| <code>bool PlaysDefaultAnimWhenStolen()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ProcsMagicStick | ProcsMagicStick]] | |||
| <code>bool ProcsMagicStick()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefCountsModifiers | RefCountsModifiers]] | |||
| <code>bool RefCountsModifiers()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefreshCharges | RefreshCharges]] | |||
| <code>void RefreshCharges()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.RefundManaCost | RefundManaCost]] | |||
| <code>void RefundManaCost()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ResetToggleOnRespawn | ResetToggleOnRespawn]] | |||
| <code>bool ResetToggleOnRespawn()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetAbilityIndex | SetAbilityIndex]] | |||
| <code>void SetAbilityIndex(int iIndex)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetActivated | SetActivated]] | |||
| <code>void SetActivated(bool bActivated)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetChanneling | SetChanneling]] | |||
| <code>void SetChanneling(bool bChanneling)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetFrozenCooldown | SetFrozenCooldown]] | |||
| <code>void SetFrozenCooldown(bool bFrozenCooldown)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetHidden | SetHidden]] | |||
| <code>void SetHidden(bool bHidden)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetInAbilityPhase | SetInAbilityPhase]] | |||
| <code>void SetInAbilityPhase(bool bInAbilityPhase)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetLevel | SetLevel]] | |||
| <code>void SetLevel(int iLevel)</code> | |||
| Sets the level of this ability. | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetOverrideCastPoint | SetOverrideCastPoint]] | |||
| <code>void SetOverrideCastPoint(float flCastPoint)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetRefCountsModifiers | SetRefCountsModifiers]] | |||
| <code>void SetRefCountsModifiers(bool bRefCounts)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStealable | SetStealable]] | |||
| <code>void SetStealable(bool bStealable)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetStolen | SetStolen]] | |||
| <code>void SetStolen(bool bStolen)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SetUpgradeRecommended | SetUpgradeRecommended]] | |||
| <code>void SetUpgradeRecommended(bool bUpgradeRecommended)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ShouldUseResources | ShouldUseResources]] | |||
| <code>bool ShouldUseResources()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakAbilityConcept | SpeakAbilityConcept]] | |||
| <code>void SpeakAbilityConcept(int iConcept)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.SpeakTrigger | SpeakTrigger]] | |||
| <code><unknown> SpeakTrigger()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.StartCooldown | StartCooldown]] | |||
| <code>void StartCooldown(float flCooldown)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAbility | ToggleAbility]] | |||
| <code>void ToggleAbility()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.ToggleAutoCast | ToggleAutoCast]] | |||
| <code>void ToggleAutoCast()</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UpgradeAbility | UpgradeAbility]] | |||
| <code>void UpgradeAbility(bool bSupressSpeech)</code> | |||
| | |||
|- | |||
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.UseResources | UseResources]] | |||
| <code>void UseResources(bool bMana, bool bGold, bool bCooldown)</code> | |||
| | |||
|} | |} | ||
Revision as of 19:42, 6 January 2020

Accessing the DOTA 2 Scripting API from Lua
While Lua is dynamically typed, the DOTA 2 engine is written primarily in C++, which is statically typed. Thus, you'll need to be conscious of your data types when calling the API. (If you try to pass the wrong type to an API function, you'll get an error message in Vconsole telling you what you passed and what it was expecting.)
Global
Global functions. These can be called without any class
Function | Signature | Description |
---|---|---|
AddFOWViewer | void AddFOWViewer(int, Vector, float, float, bool)
|
Add temporary vision for a given team ( nTeamID, vLocation, flRadius, flDuration, bObstructedVision) |
AngleDiff | float AngleDiff(float, float)
|
Returns the number of degrees difference between two yaw angles |
AppendToLogFile | void AppendToLogFile(string, string)
|
AppendToLogFile is deprecated. Print to the console for logging instead. |
ApplyDamage | float ApplyDamage(handle)
|
Damage an npc. |
AxisAngleToQuaternion | Quaternion AxisAngleToQuaternion(Vector, float)
|
(vector,float) constructs a quaternion representing a rotation by angle around the specified vector axis |
CalcClosestPointOnEntityOBB | Vector CalcClosestPointOnEntityOBB(handle, Vector)
|
Compute the closest point on the OBB of an entity. |
CalcDistanceBetweenEntityOBB | float CalcDistanceBetweenEntityOBB(handle, handle)
|
Compute the distance between two entity OBB. A negative return value indicates an input error. A return value of zero indicates that the OBBs are overlapping. |
CalcDistanceToLineSegment2D | float CalcDistanceToLineSegment2D(Vector, Vector, Vector)
|
|
CancelEntityIOEvents | void CancelEntityIOEvents(ehandle)
|
Create all I/O events for a particular entity |
ClearTeamCustomHealthbarColor | void ClearTeamCustomHealthbarColor(int)
|
( teamNumber ) |
CreateDamageInfo | handle CreateDamageInfo(handle, handle, Vector, Vector, float, int)
|
(hInflictor, hAttacker, flDamage) - Allocate a damageinfo object, used as an argument to TakeDamage(). Call DestroyDamageInfo( hInfo ) to free the object. |
CreateEffect | bool CreateEffect(handle)
|
Pass table - Inputs: entity, effect |
CreateHTTPRequest | handle CreateHTTPRequest(string, string)
|
Create an HTTP request. |
CreateHTTPRequestScriptVM | handle CreateHTTPRequestScriptVM(string, string)
|
Create an HTTP request. |
CreateHeroForPlayer | handle CreateHeroForPlayer(string, handle)
|
Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero |
CreateIllusions | table CreateIllusions(handle, handle, handle, int, int, bool, bool)
|
Create illusions of the passed hero that belong to passed unit using passed modifier data. ( hOwner, hHeroToCopy, hModiiferKeys, nNumIllusions, nPadding, bScramblePosition, bFindClearSpace ). Supported keys: outgoing_damage incoming_damage bounty_base bounty_growth outgoing_damage_structure outgoing_damage_roshan |
CreateItem | handle CreateItem(string, handle, handle)
|
Create a DOTA item |
CreateItemOnPositionForLaunch | handle CreateItemOnPositionForLaunch(Vector, handle)
|
Create a physical item at a given location, can start in air (but doesn't clear a space) |
CreateItemOnPositionSync | handle CreateItemOnPositionSync(Vector, handle)
|
Create a physical item at a given location |
CreateModifierThinker | handle CreateModifierThinker(handle, handle, string, handle, Vector, int, bool)
|
Create a modifier not associated with an NPC. ( hCaster, hAbility, modifierName, paramTable, vOrigin, nTeamNumber, bPhantomBlocker ) |
CreateSceneEntity | handle CreateSceneEntity(string)
|
Create a scene entity to play the specified scene. |
CreateTempTree | handle CreateTempTree(Vector, float)
|
Create a temporary tree, uses a default tree model. (vLocation, flDuration). |
CreateTempTreeWithModel | handle CreateTempTreeWithModel(Vector, float, string)
|
Create a temporary tree, specifying the tree model name. (vLocation, flDuration, szModelName). |
CreateTrigger | handle CreateTrigger(Vector, Vector, Vector)
|
CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger |
CreateTriggerRadiusApproximate | handle CreateTriggerRadiusApproximate(Vector, float)
|
CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided |
CreateUnitByName | handle CreateUnitByName(string, Vector, bool, handle, handle, int)
|
Creates a DOTA unit by its dota_npc_units.txt name |
CreateUnitByNameAsync | int CreateUnitByNameAsync(string, Vector, bool, handle, handle, int, handle)
|
Creates a DOTA unit by its dota_npc_units.txt name |
CreateUnitFromTable | handle CreateUnitFromTable(handle, Vector)
|
Creates a DOTA unit by its dota_npc_units.txt name from a table of entity key values and a position to spawn at. |
CrossVectors | Vector CrossVectors(Vector, Vector)
|
(vector,vector) cross product between two vectors |
DebugBreak | void DebugBreak()
|
Breaks in the debugger |
DebugDrawBox | void DebugDrawBox(Vector, Vector, Vector, int, int, int, int, float)
|
Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration ) |
DebugDrawBoxDirection | void DebugDrawBoxDirection(Vector, Vector, Vector, Vector, Vector, float, float)
|
Draw a debug forward box (cent, min, max, forward, vRgb, a, duration) |
DebugDrawCircle | void DebugDrawCircle(Vector, Vector, float, float, bool, float)
|
Draw a debug circle (center, vRgb, a, rad, ztest, duration) |
DebugDrawClear | void DebugDrawClear()
|
Try to clear all the debug overlay info |
DebugDrawLine | void DebugDrawLine(Vector, Vector, int, int, int, bool, float)
|
Draw a debug overlay line (origin, target, r, g, b, ztest, duration) |
DebugDrawLine_vCol | void DebugDrawLine_vCol(Vector, Vector, Vector, bool, float)
|
Draw a debug line using color vec (start, end, vRgb, a, ztest, duration) |
DebugDrawScreenTextLine | void DebugDrawScreenTextLine(float, float, int, string, int, int, int, int, float)
|
Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration) |
DebugDrawSphere | void DebugDrawSphere(Vector, Vector, float, float, bool, float)
|
Draw a debug sphere (center, vRgb, a, rad, ztest, duration) |
DebugDrawText | void DebugDrawText(Vector, string, bool, float)
|
Draw text in 3d (origin, text, bViewCheck, duration) |
DebugScreenTextPretty | void DebugScreenTextPretty(float, float, int, string, int, int, int, int, float, string, int, bool)
|
Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold) |
DestroyDamageInfo | void DestroyDamageInfo(handle)
|
Free a damageinfo object that was created with CreateDamageInfo(). |
DoCleaveAttack | int DoCleaveAttack(handle, handle, handle, float, float, float, float, string)
|
(hAttacker, hTarget, hAbility, fDamage, fRadius, effectName) |
DoEntFire | void DoEntFire(string, string, string, float, handle, handle)
|
#EntFire:Generate and entity i/o event |
DoEntFireByInstanceHandle | void DoEntFireByInstanceHandle(handle, string, string, float, handle, handle)
|
#EntFireByHandle:Generate and entity i/o event |
DoIncludeScript | bool DoIncludeScript(string, handle)
|
Execute a script (internal) |
DoScriptAssert | void DoScriptAssert(bool, string)
|
#ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog. |
DoUniqueString | string DoUniqueString(string)
|
#UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to tables when not sure what keys are already in use in that table. |
DotProduct | float DotProduct(Vector, Vector)
|
|
EmitAnnouncerSound | void EmitAnnouncerSound(string)
|
Emit an announcer sound for all players. |
EmitAnnouncerSoundForPlayer | void EmitAnnouncerSoundForPlayer(string, int)
|
Emit an announcer sound for a player. |
EmitAnnouncerSoundForTeam | void EmitAnnouncerSoundForTeam(string, int)
|
Emit an announcer sound for a team. |
EmitAnnouncerSoundForTeamOnLocation | void EmitAnnouncerSoundForTeamOnLocation(string, int, Vector)
|
Emit an announcer sound for a team at a specific location. |
EmitGlobalSound | void EmitGlobalSound(string)
|
Play named sound for all players |
EmitSoundOn | void EmitSoundOn(string, handle)
|
Play named sound on Entity |
EmitSoundOnClient | void EmitSoundOnClient(string, handle)
|
Play named sound only on the client for the passed in player |
EmitSoundOnLocationForAllies | void EmitSoundOnLocationForAllies(Vector, string, handle)
|
Emit a sound on a location from a unit, only for players allied with that unit (vLocation, soundName, hCaster |
EmitSoundOnLocationWithCaster | void EmitSoundOnLocationWithCaster(Vector, string, handle)
|
Emit a sound on a location from a unit. (vLocation, soundName, hCaster). |
EntIndexToHScript | handle EntIndexToHScript(int)
|
Turn an entity index integer to an HScript representing that entity's script instance. |
ExecuteOrderFromTable | void ExecuteOrderFromTable(handle)
|
Issue an order from a script table |
ExponentialDecay | float ExponentialDecay(float, float, float)
|
Smooth curve decreasing slower as it approaches zero |
FindClearRandomPositionAroundUnit | bool FindClearRandomPositionAroundUnit(handle, handle, int)
|
Finds a clear random position around a given target unit, using the target unit's padded collision radius. |
FindClearSpaceForUnit | bool FindClearSpaceForUnit(handle, Vector, bool)
|
Place a unit somewhere not already occupied. |
FindUnitsInLine | table FindUnitsInLine(int, Vector, Vector, handle, float, int, int, int)
|
Find units that intersect the given line with the given flags. |
FindUnitsInRadius | table FindUnitsInRadius(int, Vector, handle, float, int, int, int, int, bool)
|
Finds the units in a given radius with the given flags. |
FireEntityIOInputNameOnly | void FireEntityIOInputNameOnly(ehandle, string)
|
Fire Entity's Action Input w/no data |
FireEntityIOInputString | void FireEntityIOInputString(ehandle, string, string)
|
Fire Entity's Action Input with passed String - you own the memory |
FireEntityIOInputVec | void FireEntityIOInputVec(ehandle, string, Vector)
|
Fire Entity's Action Input with passed Vector - you own the memory |
FireGameEvent | void FireGameEvent(string, handle)
|
Fire a game event. |
FireGameEventLocal | void FireGameEventLocal(string, handle)
|
Fire a game event without broadcasting to the client. |
FrameTime | float FrameTime()
|
Get the time spent on the server in the last frame |
GetDedicatedServerKey | string GetDedicatedServerKey(string)
|
( version ) |
GetDedicatedServerKeyV2 | string GetDedicatedServerKeyV2(string)
|
( version ) |
GetEntityIndexForTreeId | <unknown> GetEntityIndexForTreeId(unsigned)
|
Get the enity index for a tree id specified as the entindex_target of a DOTA_UNIT_ORDER_CAST_TARGET_TREE. |
GetFrameCount | int GetFrameCount()
|
Returns the engines current frame count |
GetGroundHeight | float GetGroundHeight(Vector, handle)
|
|
GetGroundPosition | Vector GetGroundPosition(Vector, handle)
|
Returns the supplied position moved to the ground. Second parameter is an NPC for measuring movement collision hull offset. |
GetItemCost | int GetItemCost(string)
|
Get the cost of an item by name. |
GetItemDefOwnedCount | int GetItemDefOwnedCount(int, int)
|
|
GetItemDefQuantity | int GetItemDefQuantity(int, int)
|
|
GetListenServerHost | handle GetListenServerHost()
|
Get the local player on a listen server. |
GetLobbyEventGameDetails | table GetLobbyEventGameDetails()
|
( ) |
GetMapName | string GetMapName()
|
Get the name of the map. |
GetMaxOutputDelay | float GetMaxOutputDelay(ehandle, string)
|
Get the longest delay for all events attached to an output |
GetPhysAngularVelocity | Vector GetPhysAngularVelocity(handle)
|
Get Angular Velocity for VPHYS or normal object. Returns a vector of the axis of rotation, multiplied by the degrees of rotation per second. |
GetPhysVelocity | Vector GetPhysVelocity(handle)
|
Get Velocity for VPHYS or normal object |
GetSystemDate | string GetSystemDate()
|
Get the current real world date |
GetSystemTime | string GetSystemTime()
|
Get the current real world time |
GetTargetAOELocation | Vector GetTargetAOELocation(int, int, int, Vector, int, int, int)
|
|
GetTargetLinearLocation | Vector GetTargetLinearLocation(int, int, int, Vector, int, int, int)
|
|
GetTeamHeroKills | int GetTeamHeroKills(int)
|
( int teamID ) |
GetTeamName | string GetTeamName(int)
|
( int teamID ) |
GetTreeIdForEntityIndex | int GetTreeIdForEntityIndex(int)
|
Given and entity index of a tree, get the tree id for use for use with with unit orders. |
GetWorldMaxX | float GetWorldMaxX()
|
Gets the world's maximum X position. |
GetWorldMaxY | float GetWorldMaxY()
|
Gets the world's maximum Y position. |
GetWorldMinX | float GetWorldMinX()
|
Gets the world's minimum X position. |
GetWorldMinY | float GetWorldMinY()
|
Gets the world's minimum Y position. |
InitLogFile | void InitLogFile(string, string)
|
InitLogFile is deprecated. Print to the console for logging instead. |
IsClient | bool IsClient()
|
Returns true if this is lua running from the client.dll. |
IsDedicatedServer | bool IsDedicatedServer()
|
Returns true if this server is a dedicated server. |
IsInToolsMode | bool IsInToolsMode()
|
Returns true if this is lua running within tools mode. |
IsLocationVisible | bool IsLocationVisible(int, Vector)
|
Ask fog of war if a location is visible to a certain team (nTeamNumber, vLocation). |
IsMarkedForDeletion | bool IsMarkedForDeletion(handle)
|
Returns true if the entity is valid and marked for deletion. |
IsServer | bool IsServer()
|
Returns true if this is lua running from the server.dll. |
IsValidEntity | bool IsValidEntity(handle)
|
Checks to see if the given hScript is a valid entity |
LerpVectors | Vector LerpVectors(Vector, Vector, float)
|
(vector,vector,float) lerp between two vectors by a float factor returning new vector |
LimitPathingSearchDepth | void LimitPathingSearchDepth(float)
|
Set the limit on the pathfinding search space. |
LinkLuaModifier | void LinkLuaModifier(string, string, int)
|
Link a lua-defined modifier with the associated class ( className, fileName, LuaModifierType). |
ListenToGameEvent | int ListenToGameEvent(string, handle, handle)
|
Register as a listener for a game event from script. |
LoadKeyValues | table LoadKeyValues(string)
|
Creates a table from the specified keyvalues text file |
LoadKeyValuesFromString | table LoadKeyValuesFromString(string)
|
Creates a table from the specified keyvalues string |
LocalTime | table LocalTime()
|
Get the current local time |
MakeStringToken | int MakeStringToken(string)
|
Checks to see if the given hScript is a valid entity |
MinimapEvent | void MinimapEvent(int, handle, int, int, int, int)
|
Start a minimap event. (nTeamID, hEntity, nXCoord, nYCoord, nEventType, nEventDuration). |
Msg | void Msg(string)
|
Print a message |
PauseGame | void PauseGame(bool)
|
Pause or unpause the game. |
PlayerInstanceFromIndex | handle PlayerInstanceFromIndex(int)
|
Get a script instance of a player by index. |
PrecacheEntityFromTable | void PrecacheEntityFromTable(string, handle, handle)
|
Precache an entity from KeyValues in table |
PrecacheEntityListFromTable | void PrecacheEntityListFromTable(handle, handle)
|
Precache a list of entity KeyValues tables |
PrecacheItemByNameAsync | void PrecacheItemByNameAsync(string, handle)
|
Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished. |
PrecacheItemByNameSync | void PrecacheItemByNameSync(string, handle)
|
Precaches a DOTA item by its dota_npc_items.txt name |
PrecacheModel | void PrecacheModel(string, handle)
|
( modelName, context ) - Manually precache a single model |
PrecacheResource | void PrecacheResource(string, string, handle)
|
Manually precache a single resource |
PrecacheUnitByNameAsync | void PrecacheUnitByNameAsync(string, handle, int)
|
Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished. |
PrecacheUnitByNameSync | void PrecacheUnitByNameSync(string, handle, int)
|
Precaches a DOTA unit by its dota_npc_units.txt name |
PrecacheUnitFromTableAsync | void PrecacheUnitFromTableAsync(handle, handle)
|
Precaches a DOTA unit from a table of entity key values. |
PrecacheUnitFromTableSync | void PrecacheUnitFromTableSync(handle, handle)
|
Precaches a DOTA unit from a table of entity key values. |
PrintLinkedConsoleMessage | void PrintLinkedConsoleMessage(string, string)
|
Print a console message with a linked console command |
RandomFloat | float RandomFloat(float, float)
|
Get a random float within a range |
RandomInt | int RandomInt(int, int)
|
Get a random int within a range |
RandomVector | Vector RandomVector(float)
|
Get a random 2D vector of the given length. |
RegisterCustomAnimationScriptForModel | void RegisterCustomAnimationScriptForModel(string, string)
|
Register a custom animation script to run when a model loads |
RegisterSpawnGroupFilterProxy | void RegisterSpawnGroupFilterProxy(string)
|
Create a C proxy for a script-based spawn group filter |
ReloadMOTD | void ReloadMOTD()
|
Reloads the MotD file |
RemoveSpawnGroupFilterProxy | void RemoveSpawnGroupFilterProxy(string)
|
Remove the C proxy for a script-based spawn group filter |
ResolveNPCPositions | void ResolveNPCPositions(Vector, float)
|
Check and fix units that have been assigned a position inside collision radius of other NPCs. |
RollPercentage | bool RollPercentage(int)
|
(int nPct) |
RotateOrientation | QAngle RotateOrientation(QAngle, QAngle)
|
Rotate a QAngle by another QAngle. |
RotatePosition | Vector RotatePosition(Vector, QAngle, Vector)
|
Rotate a Vector around a point. |
RotateQuaternionByAxisAngle | Quaternion RotateQuaternionByAxisAngle(Quaternion, Vector, float)
|
(quaternion,vector,float) rotates a quaternion by the specified angle around the specified vector axis |
RotationDelta | QAngle RotationDelta(QAngle, QAngle)
|
Find the delta between two QAngles. |
RotationDeltaAsAngularVelocity | Vector RotationDeltaAsAngularVelocity(QAngle, QAngle)
|
converts delta QAngle to an angular velocity Vector |
Say | void Say(handle, string, bool)
|
Have Entity say string, and teamOnly or not |
ScreenShake | void ScreenShake(Vector, float, float, float, float, int, bool)
|
Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake |
SendOverheadEventMessage | void SendOverheadEventMessage(handle, int, handle, int, handle)
|
( DOTAPlayer sendToPlayer, int iMessageType, Entity targetEntity, int iValue, DOTAPlayer sourcePlayer ) - sendToPlayer and sourcePlayer can be nil - iMessageType is one of OVERHEAD_ALERT_* |
SendToConsole | void SendToConsole(string)
|
Send a string to the console as a client command |
SendToServerConsole | void SendToServerConsole(string)
|
Send a string to the console as a server command |
SetOpvarFloatAll | void SetOpvarFloatAll(string, string, string, float)
|
Sets an opvar value for all players |
SetOpvarFloatPlayer | void SetOpvarFloatPlayer(string, string, string, float, handle)
|
Sets an opvar value for a single player |
SetPhysAngularVelocity | void SetPhysAngularVelocity(handle, Vector)
|
Set Angular Velocity for VPHYS or normal object, from a vector of the axis of rotation, multiplied by the degrees of rotation per second. |
SetQuestName | void SetQuestName(string)
|
Set the current quest name. |
SetQuestPhase | void SetQuestPhase(int)
|
Set the current quest phase. |
SetRenderingEnabled | void SetRenderingEnabled(ehandle, bool)
|
Set rendering on/off for an ehandle |
SetTeamCustomHealthbarColor | void SetTeamCustomHealthbarColor(int, int, int, int)
|
( teamNumber, r, g, b ) |
ShowCustomHeaderMessage | void ShowCustomHeaderMessage(string, int, int, float)
|
( const char *pszMessage, int nPlayerID, int nValue, float flTime ) - Supports localized strings - %s1 = PlayerName, %s2 = Value, %s3 = TeamName |
ShowGenericPopup | void ShowGenericPopup(string, string, string, string, int)
|
Show a generic popup dialog for all players. |
ShowGenericPopupToPlayer | void ShowGenericPopupToPlayer(handle, string, string, string, string, int)
|
Show a generic popup dialog to a specific player. |
ShowMessage | void ShowMessage(string)
|
Print a hud message on all clients |
SpawnDOTAShopTriggerRadiusApproximate | handle SpawnDOTAShopTriggerRadiusApproximate(Vector, float)
|
(Vector vOrigin, float flRadius ) |
SpawnEntityFromTableSynchronous | handle SpawnEntityFromTableSynchronous(string, handle)
|
Synchronously spawns a single entity from a table |
SpawnEntityGroupFromTable | bool SpawnEntityGroupFromTable(handle, bool, handle)
|
Hierarchically spawn an entity group from a set of spawn tables. |
SpawnEntityListFromTableAsynchronous | int SpawnEntityListFromTableAsynchronous(handle, handle)
|
Asynchronously spawn an entity group from a list of spawn tables. A callback will be triggered when the spawning is complete |
SpawnEntityListFromTableSynchronous | handle SpawnEntityListFromTableSynchronous(handle)
|
Synchronously spawn an entity group from a list of spawn tables. |
SplineQuaternions | Quaternion SplineQuaternions(Quaternion, Quaternion, float)
|
(quaternion,quaternion,float) very basic interpolation of v0 to v1 over t on [0,1] |
SplineVectors | Vector SplineVectors(Vector, Vector, float)
|
(vector,vector,float) very basic interpolation of v0 to v1 over t on [0,1] |
StartSoundEvent | void StartSoundEvent(string, handle)
|
Start a sound event |
StartSoundEventFromPosition | void StartSoundEventFromPosition(string, Vector)
|
Start a sound event from position |
StartSoundEventFromPositionReliable | void StartSoundEventFromPositionReliable(string, Vector)
|
Start a sound event from position with reliable delivery |
StartSoundEventFromPositionUnreliable | void StartSoundEventFromPositionUnreliable(string, Vector)
|
Start a sound event from position with optional delivery |
StartSoundEventReliable | void StartSoundEventReliable(string, handle)
|
Start a sound event with reliable delivery |
StartSoundEventUnreliable | void StartSoundEventUnreliable(string, handle)
|
Start a sound event with optional delivery |
StopEffect | void StopEffect(handle, string)
|
Pass entity and effect name |
StopGlobalSound | void StopGlobalSound(string)
|
Stop named sound for all players |
StopListeningToAllGameEvents | void StopListeningToAllGameEvents(handle)
|
Stop listening to all game events within a specific context. |
StopListeningToGameEvent | bool StopListeningToGameEvent(int)
|
Stop listening to a particular game event. |
StopSoundEvent | void StopSoundEvent(string, handle)
|
Stops a sound event with optional delivery |
StopSoundOn | void StopSoundOn(string, handle)
|
Stop named sound on Entity |
Time | float Time()
|
Get the current server time |
TraceCollideable | bool TraceCollideable(handle)
|
Pass table - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal |
TraceHull | bool TraceHull(handle)
|
Pass table - Inputs: start, end, min, max, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid |
TraceLine | bool TraceLine(handle)
|
Pass table - Inputs: startpos, endpos, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid |
UTIL_AngleDiff | float UTIL_AngleDiff(float, float)
|
Returns the number of degrees difference between two yaw angles |
UTIL_MessageText | void UTIL_MessageText(int, string, int, int, int, int)
|
Sends colored text to one client. |
UTIL_MessageTextAll | void UTIL_MessageTextAll(string, int, int, int, int)
|
Sends colored text to all clients. |
UTIL_MessageTextAll_WithContext | void UTIL_MessageTextAll_WithContext(string, int, int, int, int, handle)
|
Sends colored text to all clients. (Valid context keys: player_id, value, team_id) |
UTIL_MessageText_WithContext | void UTIL_MessageText_WithContext(int, string, int, int, int, int, handle)
|
Sends colored text to one client. (Valid context keys: player_id, value, team_id) |
UTIL_Remove | void UTIL_Remove(handle)
|
Removes the specified entity |
UTIL_RemoveImmediate | void UTIL_RemoveImmediate(handle)
|
Immediately removes the specified entity |
UTIL_ResetMessageText | void UTIL_ResetMessageText(int)
|
Clear all message text on one client. |
UTIL_ResetMessageTextAll | void UTIL_ResetMessageTextAll()
|
Clear all message text from all clients. |
UnitFilter | int UnitFilter(handle, int, int, int, int)
|
Check if a unit passes a set of filters. (hNPC, nTargetTeam, nTargetType, nTargetFlags, nTeam |
UnloadSpawnGroup | void UnloadSpawnGroup(string)
|
Unload a spawn group by name |
UnloadSpawnGroupByHandle | void UnloadSpawnGroupByHandle(int)
|
Unload a spawn group by handle |
UpdateEventPoints | void UpdateEventPoints(handle)
|
( hEventPointData ) |
VectorAngles | QAngle VectorAngles(Vector)
|
|
VectorToAngles | QAngle VectorToAngles(Vector)
|
Get Qangles (with no roll) for a Vector. |
Warning | void Warning(string)
|
Print a warning |
cvar_getf | float cvar_getf(string)
|
Gets the value of the given cvar, as a float. |
cvar_setf | bool cvar_setf(string, float)
|
Sets the value of the given cvar, as a float. |
rr_AddDecisionRule | bool rr_AddDecisionRule(handle)
|
Add a rule to the decision database. |
rr_CommitAIResponse | bool rr_CommitAIResponse(handle, handle)
|
Commit the result of QueryBestResponse back to the given entity to play. Call with params (entity, airesponse) |
rr_GetResponseTargets | handle rr_GetResponseTargets()
|
Retrieve a table of all available expresser targets, in the form { name : handle, name: handle }. |
rr_QueryBestResponse | bool rr_QueryBestResponse(handle, handle, handle)
|
Params: (entity, query) : tests 'query' against entity's response system and returns the best response found (or null if none found). |
CBaseEntity
The base class for stuff
Function | Signature | Description |
---|---|---|
AddEffects | void AddEffects(int nFlags)
|
AddEffects( int ): Adds the render effect flag. |
ApplyAbsVelocityImpulse | void ApplyAbsVelocityImpulse(Vector vecImpulse)
|
Apply a Velocity Impulse |
ApplyLocalAngularVelocityImpulse | void ApplyLocalAngularVelocityImpulse(Vector angImpulse)
|
Apply an Ang Velocity Impulse |
Attribute_GetFloatValue | float Attribute_GetFloatValue(string pName, float flDefault)
|
Get float value for an entity attribute. |
Attribute_GetIntValue | int Attribute_GetIntValue(string pName, int nDefault)
|
Get int value for an entity attribute. |
Attribute_SetFloatValue | void Attribute_SetFloatValue(string pName, float flValue)
|
Set float value for an entity attribute. |
Attribute_SetIntValue | void Attribute_SetIntValue(string pName, int nValue)
|
Set int value for an entity attribute. |
DeleteAttribute | void DeleteAttribute(string pName)
|
Delete an entity attribute. |
EmitSound | void EmitSound(string soundname)
|
Plays a sound from this entity. |
EmitSoundParams | void EmitSoundParams(string soundname, int nPitch, float flVolume, float flDelay)
|
Plays/modifies a sound from this entity. changes sound if nPitch and/or flVol or flSoundTime is > 0. |
EyeAngles | QAngle EyeAngles()
|
Get the qangles that this entity is looking at. |
EyePosition | Vector EyePosition()
|
Get vector to eye position - absolute coords. |
FirstMoveChild | handle FirstMoveChild()
|
|
FollowEntity | void FollowEntity(handle hEnt, bool bBoneMerge)
|
hEntity to follow, bool bBoneMerge |
GatherCriteria | void GatherCriteria(handle hResult)
|
Returns a table containing the criteria that would be used for response queries on this entity. This is the same as the table that is passed to response rule script function callbacks. |
GetAbsOrigin | Vector GetAbsOrigin()
|
|
GetAbsScale | float GetAbsScale()
|
|
GetAngles | QAngle GetAngles()
|
|
GetAnglesAsVector | Vector GetAnglesAsVector()
|
Get entity pitch, yaw, roll as a vector. |
GetAngularVelocity | Vector GetAngularVelocity()
|
Get the local angular velocity - returns a vector of pitch,yaw,roll |
GetBaseVelocity | Vector GetBaseVelocity()
|
Get Base? velocity. |
GetBoundingMaxs | Vector GetBoundingMaxs()
|
Get a vector containing max bounds, centered on object. |
GetBoundingMins | Vector GetBoundingMins()
|
Get a vector containing min bounds, centered on object. |
GetBounds | table GetBounds()
|
Get a table containing the 'Mins' & 'Maxs' vector bounds, centered on object. |
GetCenter | Vector GetCenter()
|
Get vector to center of object - absolute coords |
GetChildren | handle GetChildren()
|
Get the entities parented to this entity. |
GetContext | table GetContext(string name)
|
GetContext( name ): looks up a context and returns it if available. May return string, float, or null (if the context isn't found). |
GetForwardVector | Vector GetForwardVector()
|
Get the forward vector of the entity. |
GetHealth | int GetHealth()
|
Get the health of this entity. |
GetLocalAngles | QAngle GetLocalAngles()
|
Get entity local pitch, yaw, roll as a QAngle |
GetLocalAngularVelocity | QAngle GetLocalAngularVelocity()
|
Maybe local angvel |
GetLocalOrigin | Vector GetLocalOrigin()
|
Get entity local origin as a Vector |
GetLocalScale | float GetLocalScale()
|
|
GetLocalVelocity | Vector GetLocalVelocity()
|
Get Entity relative velocity. |
GetMass | float GetMass()
|
Get the mass of an entity. (returns 0 if it doesn't have a physics object) |
GetMaxHealth | int GetMaxHealth()
|
Get the maximum health of this entity. |
GetModelName | string GetModelName()
|
Returns the name of the model. |
GetMoveParent | handle GetMoveParent()
|
If in hierarchy, retrieves the entity's parent. |
GetOrigin | Vector GetOrigin()
|
|
GetOwner | handle GetOwner()
|
Gets this entity's owner |
GetOwnerEntity | handle GetOwnerEntity()
|
Get the owner entity, if there is one |
GetRightVector | Vector GetRightVector()
|
Get the right vector of the entity. |
GetRootMoveParent | handle GetRootMoveParent()
|
If in hierarchy, walks up the hierarchy to find the root parent. |
GetSoundDuration | float GetSoundDuration(string soundname, string actormodel)
|
Returns float duration of the sound. Takes soundname and optional actormodelname. |
GetTeam | int GetTeam()
|
Get the team number of this entity. |
GetTeamNumber | int GetTeamNumber()
|
Get the team number of this entity. |
GetUpVector | Vector GetUpVector()
|
Get the up vector of the entity. |
GetVelocity | Vector GetVelocity()
|
|
HasAttribute | bool HasAttribute(string pName)
|
See if an entity has a particular attribute. |
IsAlive | bool IsAlive()
|
Is this entity alive? |
IsNPC | bool IsNPC()
|
Is this entity an CAI_BaseNPC? |
IsPlayer | bool IsPlayer()
|
Is this entity a player? |
Kill | void Kill()
|
|
NextMovePeer | handle NextMovePeer()
|
|
OverrideFriction | void OverrideFriction(float duration, float friction)
|
Takes duration, value for a temporary override. |
PrecacheScriptSound | void PrecacheScriptSound(string soundname)
|
Precache a sound for later playing. |
RemoveEffects | void RemoveEffects(int nFlags)
|
RemoveEffects( int ): Removes the render effect flag. |
SetAbsAngles | void SetAbsAngles(float fPitch, float fYaw, float fRoll)
|
Set entity pitch, yaw, roll by component. |
SetAbsOrigin | void SetAbsOrigin(Vector origin)
|
|
SetAbsScale | void SetAbsScale(float flScale)
|
|
SetAngles | void SetAngles(float fPitch, float fYaw, float fRoll)
|
Set entity pitch, yaw, roll by component. |
SetAngularVelocity | void SetAngularVelocity(float pitchVel, float yawVel, float rollVel)
|
Set the local angular velocity - takes float pitch,yaw,roll velocities |
SetConstraint | void SetConstraint(Vector vPos)
|
Set the position of the constraint. |
SetContext | void SetContext(string pName, string pValue, float duration)
|
SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a string. Will last for duration (set 0 to mean 'forever'). |
SetContextNum | void SetContextNum(string pName, float fValue, float duration)
|
SetContextNum( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (int or float). Will last for duration (set 0 to mean 'forever'). |
SetContextThink | void SetContextThink(string pszContextName, handle hThinkFunc, float flInterval)
|
Set a think function on this entity. |
SetEntityName | void SetEntityName(string pName)
|
Set the name of an entity. |
SetForwardVector | void SetForwardVector(Vector v)
|
Set the orientation of the entity to have this forward vector. |
SetFriction | void SetFriction(float flFriction)
|
Set PLAYER friction, ignored for objects. |
SetGravity | void SetGravity(float flGravity)
|
Set PLAYER gravity, ignored for objects. |
SetHealth | void SetHealth(int nHealth)
|
Set the health of this entity. |
SetLocalAngles | void SetLocalAngles(float fPitch, float fYaw, float fRoll)
|
Set entity local pitch, yaw, roll by component |
SetLocalOrigin | void SetLocalOrigin(Vector origin)
|
Set entity local origin from a Vector |
SetLocalScale | void SetLocalScale(float flScale)
|
|
SetMass | void SetMass(float flMass)
|
Set the mass of an entity. (does nothing if it doesn't have a physics object) |
SetMaxHealth | void SetMaxHealth(int amt)
|
Set the maximum health of this entity. |
SetOrigin | void SetOrigin(Vector v)
|
|
SetOwner | void SetOwner(handle pOwner)
|
Sets this entity's owner |
SetParent | void SetParent(handle hParent, string pAttachmentname)
|
Set the parent for this entity. |
SetTeam | void SetTeam(int iTeamNum)
|
|
SetVelocity | void SetVelocity(Vector vecVelocity)
|
|
StopSound | void StopSound(string soundname)
|
Stops a named sound playing from this entity. |
TakeDamage | int TakeDamage(handle hInfo)
|
Apply damage to this entity. Use CreateDamageInfo() to create a damageinfo object. |
TransformPointEntityToWorld | Vector TransformPointEntityToWorld(Vector vPoint)
|
Returns the input Vector transformed from entity to world space |
TransformPointWorldToEntity | Vector TransformPointWorldToEntity(Vector vPoint)
|
Returns the input Vector transformed from world to entity space |
Trigger | void Trigger()
|
Fires off this entity's OnTrigger responses. |
ValidatePrivateScriptScope | void ValidatePrivateScriptScope()
|
Validates the private script scope and creates it if one doesn't exist. |
CEntities
No Description Set
Global accessor variable: Entities
Function | Signature | Description |
---|---|---|
CreateByClassname | handle CreateByClassname(string className)
|
Creates an entity by classname |
GetLocalPlayer | handle GetLocalPlayer()
|
Get the local player. |
FindAllByClassname | table FindAllByClassname(string string_1)
|
Finds all entities by class name. Returns an array containing all the found entities. |
FindAllByClassnameWithin | table FindAllByClassnameWithin(string string_1, Vector Vector_2, float float_3)
|
Find entities by class name within a radius. |
FindAllByModel | table FindAllByModel(string modelName)
|
Find entities by model name. |
FindAllByName | table FindAllByName(string name)
|
Find all entities by name. Returns an array containing all the found entities in it. |
FindAllByNameWithin | table FindAllByNameWithin(string name, Vector origin, float maxRadius)
|
Find entities by name within a radius. |
FindAllByTarget | table FindAllByTarget(string targetName)
|
Find entities by targetname. |
FindAllInSphere | table FindAllInSphere(Vector origin, float maxRadius)
|
Find entities within a radius. |
FindByClassname | handle FindByClassname(handle startFrom, string className)
|
Find entities by class name. Pass nil to start an iteration, or reference to a previously found entity to continue a search |
FindByClassnameNearest | handle FindByClassnameNearest(string className, Vector origin, float maxRadius)
|
Find entities by class name nearest to a point. |
FindByClassnameWithin | handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius)
|
Find entities by class name within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search |
FindByModel | handle FindByModel(handle startFrom, string modelName)
|
Find entities by model name. Pass nil to start an iteration, or reference to a previously found entity to continue a search |
FindByModelWithin | handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius)
|
Find entities by model name within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search |
FindByName | handle FindByName(handle lastEnt, string searchString)
|
Find entities by name. Pass nil to start an iteration, or reference to a previously found entity to continue a search |
FindByNameNearest | handle FindByNameNearest(string name, Vector origin, float maxRadius)
|
Find entities by name nearest to a point. |
FindByNameWithin | handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius)
|
Find entities by name within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search |
FindByTarget | handle FindByTarget(handle startFrom, string targetName)
|
Find entities by targetname. Pass nil to start an iteration, or reference to a previously found entity to continue a search |
FindInSphere | handle FindInSphere(handle startFrom, Vector origin, float maxRadius)
|
Find entities within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search |
First | handle First()
|
Begin an iteration over the list of entities |
Next | handle Next(handle startFrom)
|
Continue an iteration over the list of entities, providing reference to a previously found entity |
CEntityInstance
- extends CBaseEntity
No Description Set
Function | Signature | Description |
---|---|---|
ConnectOutput | void ConnectOutput(string string_1, string string_2)
|
Adds an I/O connection that will call the named function on this entity when the specified output fires. |
Destroy | void Destroy()
|
Delete entity from C++. |
DisconnectOutput | void DisconnectOutput(string string_1, string string_2)
|
Removes a connected script function from an I/O event on this entity. |
DisconnectRedirectedOutput | void DisconnectRedirectedOutput(string string_1, string string_2, handle handle_3)
|
Removes a connected script function from an I/O event on the passed entity. |
entindex | int entindex()
|
Get the entindex of this entity instance. |
FireOutput | void FireOutput(string outputName, handle activator, handle caller, table args, float delay)
|
Fire an entity output |
GetClassname | string GetClassname()
|
Get the class name of the entity. |
GetDebugName | string GetDebugName()
|
Get the entity name w/help if not defined (i.e. classname/etc) |
GetEntityHandle | ehandle GetEntityHandle()
|
Get the entity as an EHANDLE |
GetEntityIndex | int GetEntityIndex()
|
Get the index of this entity. |
GetIntAttr | int GetIntAttr(string string_1)
|
Get Integer Attribute |
GetName | string GetName()
|
Get the name of this entity. |
GetOrCreatePrivateScriptScope | handle GetOrCreatePrivateScriptScope()
|
Retrieve, creating if necessary, the private per-instance script-side data associated with an entity |
GetOrCreatePublicScriptScope | handle GetOrCreatePublicScriptScope()
|
Retrieve, creating if necessary, the public script-side data associated with an entity |
GetPrivateScriptScope | handle GetPrivateScriptScope()
|
Retrieve the private per-instance script-side data associated with an entity |
GetPublicScriptScope | handle GetPublicScriptScope()
|
Retrieve the public script-side data associated with an entity |
RedirectOutput | void RedirectOutput(string string_1, string string_2, handle handle_3)
|
Adds an I/O connection that will call the named function on the passed entity when the specified output fires. |
RemoveSelf | void RemoveSelf()
|
Delete this entity |
SetIntAttr | void SetIntAttr(string string_1, int int_2)
|
Set Integer Attribute |
CDOTABaseAbility
- extends CBaseEntity
No Description Set
Function | Signature | Description |
---|---|---|
CanAbilityBeUpgraded | <unknown> CanAbilityBeUpgraded()
|
|
CastAbility | void CastAbility()
|
Casts the ability. |
ContinueCasting | bool ContinueCasting()
|
No Description Set |
CreateVisibilityNode | void CreateVisibilityNode(Vector vLocation, float fRadius, float fDuration)
|
Applies vision on a specific location that reveals a certain radius for a duration. |
DecrementModifierRefCount | void DecrementModifierRefCount()
|
No Description Set |
EndChannel | void EndChannel(bool bInterrupted)
|
Param: bool bInterrupted |
EndCooldown | void EndCooldown()
|
Clear the cooldown remaining on this ability. |
GetAbilityDamage | int GetAbilityDamage()
|
Get the damage defined in the "AbilityDamage" KV. |
GetAbilityDamageType | int GetAbilityDamageType()
|
Get the damage type defined in the "AbilityUnitDamageType" KV. |
GetAbilityIndex | int GetAbilityIndex()
|
Get the index of this ability. |
GetAbilityName | string GetAbilityName()
|
Get the name of the ability. |
GetAbilityKeyValues | table GetAbilityKeyValues()
|
Returns a table of this ability KVs. |
GetAbilityTargetFlags | int GetAbilityTargetFlags()
|
Get the ability's target flag(s) defined in the "AbilityUnitTargetFlags" KV. |
GetAbilityTargetTeam | int GetAbilityTargetTeam()
|
Get the ability's target team(s) defined in the "AbilityUnitTargetTeam" KV. |
GetAbilityTargetType | int GetAbilityTargetType()
|
Get the ability's target type(s) defined in the "AbilityUnitTargetType" KV. |
GetAbilityType | int GetAbilityType()
|
Get the ability type of this ability, set through "AbilityType" in KV at the npc_ability_custom.txt file. |
GetAnimationIgnoresModelScale | bool GetAnimationIgnoresModelScale()
|
No Description Set |
GetAssociatedPrimaryAbilities | string GetAssociatedPrimaryAbilities()
|
Set which ability should be stolen with this ability, and set as the first ability in the order of the stolen abilities (Rubick). |
GetAssociatedSecondaryAbilities | string GetAssociatedSecondaryAbilities()
|
Set which ability should be stolen with this ability, and set as the second in the order of the stolen abilities (Rubick). |
GetAutoCastState | bool GetAutoCastState()
|
Returns true if the ability is set to auto cast, returns false otherwise. |
GetBackswingTime | float GetBackswingTime()
|
Returns the backswing time of the ability. |
GetBehavior | int GetBehavior()
|
Get the ability behavior(s) defined in the "AbilityBehavior" KV. |
GetCaster | handle GetCaster()
|
Get the ability's caster. |
GetCastPoint | float GetCastPoint()
|
Get the ability's cast point. |
GetCastRange | int GetCastRange()
|
Get the ability's cast range. |
GetChannelledManaCostPerSecond | int GetChannelledManaCostPerSecond(int iLevel)
|
Get the ability's channeled mana cost per second, defined in the "AbilityChannelledManaCostPerSecond" KV. |
GetChannelStartTime | float GetChannelStartTime()
|
Get the game time where the channeling of this ability started. |
GetChannelTime | float GetChannelTime()
|
Get how long (in seconds) this ability can be channeled. |
GetCloneSource | handle GetCloneSource()
|
No Description Set |
GetConceptRecipientType | int GetConceptRecipientType()
|
No Description Set |
GetCooldown | float GetCooldown(int iLevel)
|
Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left. |
GetCooldownTime | float GetCooldownTime()
|
No Description Set |
GetCooldownTimeRemaining | float GetCooldownTimeRemaining()
|
Get the remaining time until this ability is ready to be cast again. |
GetCursorPosition | Vector GetCursorPosition()
|
Get the vector of the current position of the mouse cursor. |
GetCursorTarget | handle GetCursorTarget()
|
Get the target that the cursor is currently pointing on. |
GetCursorTargetingNothing | bool GetCursorTargetingNothing()
|
Is the cursor currently targeting anything? |
GetDuration | float GetDuration()
|
No Description Set |
GetGoldCost | int GetGoldCost(int iLevel)
|
Get the cost in gold for abilities defined to cost gold, defined through "AbilityGoldCost" at the ability's KV. |
GetGoldCostForUpgrade | int GetGoldCostForUpgrade(int iLevel)
|
Get the cost in gold for upgrading this ability, defined through "AbilityUpgradeGoldCost" at the ability's KV. |
GetHeroLevelRequiredToUpgrade | int GetHeroLevelRequiredToUpgrade()
|
Get the level the hero needs to be in order to upgrade this ability. |
GetIntrinsicModifierName | string GetIntrinsicModifierName()
|
Get the name of the modifier attached to this ability, which passively attached to its caster when the ability is first leveled. |
GetLevel | int GetLevel()
|
Get the current level of the ability. |
GetLevelSpecialValueFor | table GetLevelSpecialValueFor(string szName, int nLevel)
|
Get the value of an "AbilitySpecial" block for a certain level. |
GetManaCost | int GetManaCost(int iLevel)
|
Get the ability mana cost defined in the "AbilityManaCost" KV. |
GetMaxLevel | int GetMaxLevel()
|
Get the maximum level of the ability defined in the "MaxLevel" KV. |
GetModifierValue | float GetModifierValue()
|
No Description Set |
GetModifierValueBonus | float GetModifierValueBonus()
|
No Description Set |
GetPlaybackRateOverride | float GetPlaybackRateOverride()
|
No Description Set |
GetSharedCooldownName | string GetSharedCooldownName()
|
Get the name of the shared cooldown group defined in the ability's "AbilitySharedCooldown" KV. This causes all abilities in the same cooldown name to go into cooldown when one of them is cast. |
GetSpecialValueFor | table GetSpecialValueFor(string szName)
|
Get the value of an "AbilitySpecial" block for the current ability level. |
GetStolenActivityModifier | string GetStolenActivityModifier()
|
No Description Set |
GetToggleState | bool GetToggleState()
|
Returns true if the ability is currently toggled. Returns false otherwise. |
HeroXPChange | bool HeroXPChange(float flXP)
|
No Description Set |
IncrementModifierRefCount | void IncrementModifierRefCount()
|
No Description Set |
IsActivated | bool IsActivated()
|
Return whether or not this ability is activated, e.g. can be used. Disabled abilities are colored black. |
IsAttributeBonus | bool IsAttributeBonus()
|
Return whether or not the ability is defined as an attribute bonus through "AbilityType" being set to "DOTA_ABILITY_TYPE_ATTRIBUTES". |
IsChanneling | bool IsChanneling()
|
Returns whether the ability is currently channeling. |
IsCooldownReady | bool IsCooldownReady()
|
Returns true if the ability currently has no cooldown and is ready to be used. Returns false otherwise. |
IsCosmetic | bool IsCosmetic(handle hEntity)
|
No Description Set |
IsFullyCastable | bool IsFullyCastable()
|
Returns whether the ability can be cast. |
IsHidden | bool IsHidden()
|
Returns true if the ability behavior is set to hidden. Returns false otherwise. |
IsHiddenWhenStolen | bool IsHiddenWhenStolen()
|
Returns true if the ability is set to be hidden when stolen (by Rubick). Returns false otherwise. |
IsInAbilityPhase | bool IsInAbilityPhase()
|
Returns whether the ability is currently casting. |
IsItem | bool IsItem()
|
Returns whether this ability resides within an item. |
IsOwnersGoldEnough | bool IsOwnersGoldEnough(int nIssuerPlayerID)
|
Returns whether the owner of the ability has enough gold to cast it (used for abilities that cost gold instead of mana). |
IsOwnersGoldEnoughForUpgrade | bool IsOwnersGoldEnoughForUpgrade()
|
Returns whether the owner of the ability has enough gold to upgrade it (used for abilities that cost gold instead of ability points). |
IsOwnersManaEnough | bool IsOwnersManaEnough()
|
Returns true if the caster has enough mana to cast the ability. Returns false otherwise. |
IsPassive | bool IsPassive()
|
Returns true if the ability is a passive ability. |
IsSharedWithTeammates | bool IsSharedWithTeammates()
|
No Description Set |
IsStealable | bool IsStealable()
|
Returns whether this ability can be stolen (by Rubick). |
IsStolen | bool IsStolen()
|
Returns whether the ability is a stolen one. |
IsToggle | bool IsToggle()
|
Returns whether the ability is toggle-able. |
IsTrained | bool IsTrained()
|
Returns whether the ability has at least one level in it. |
MarkAbilityButtonDirty | void MarkAbilityButtonDirty()
|
Mark the ability button for this ability as needing a refresh. |
NumModifiersUsingAbility | int NumModifiersUsingAbility()
|
No Description Set |
OnAbilityPhaseInterrupted | void OnAbilityPhaseInterrupted()
|
Launches when the caster tried to initiate the ability, but was interrupted/cancelled. |
OnAbilityPhaseStart | bool OnAbilityPhaseStart()
|
Launches when the ability is being cast (before cast point has been reached, which means it was not yet activated) |
OnAbilityPinged | void OnAbilityPinged(int nPlayerID)
|
Fires when the ability is being pinged (through alt clicking it). |
OnChannelFinish | void OnChannelFinish(bool bInterrupted)
|
Launches when the channeled ability finished channeling successfully. |
OnChannelThink | void OnChannelThink(float flInterval)
|
Launches on every interval of this ability's channel. |
OnHeroCalculateStatBonus | void OnHeroCalculateStatBonus()
|
Launches when calculating the hero's stats bonuses when leveling up. |
OnHeroLevelUp | void OnHeroLevelUp()
|
Launches when the hero levels up. |
OnInventoryContentsChanged | void OnInventoryContentsChanged()
|
Launches when the inventory of the ability's owner changes. |
OnOwnerDied | void OnOwnerDied()
|
Launches when the owner of this ability dies. |
OnOwnerSpawned | void OnOwnerSpawned()
|
Launches when the owner of this ability spawns. |
OnSpellStart | void OnSpellStart()
|
Launches when the ability finished casting, mana was spent, and the ability goes on cooldown. |
OnToggle | void OnToggle()
|
Launches when toggling the ability on and off. |
OnUpgrade | void OnUpgrade()
|
Launches when upgrading the ability. |
PayGoldCost | void PayGoldCost()
|
Pay the cost for casting this ability in gold. |
PayGoldCostForUpgrade | void PayGoldCostForUpgrade()
|
Pay the cost for upgrading this ability in gold. |
PayManaCost | void PayManaCost()
|
Spends the caster's mana equivalent to the mana cost required to cast this ability. |
PlaysDefaultAnimWhenStolen | bool PlaysDefaultAnimWhenStolen()
|
No Description Set |
ProcsMagicStick | bool ProcsMagicStick()
|
Returns whether this ability grants a charge on Magic Stick/Magic Wand. |
RefCountsModifiers | bool RefCountsModifiers()
|
No Description Set |
RefundManaCost | void RefundManaCost()
|
Return the caster's mana spent for casting this ability. |
ResetToggleOnRespawn | bool ResetToggleOnRespawn()
|
Reset the toggle to off when respawning. |
SetAbilityIndex | void SetAbilityIndex(int iIndex)
|
Set the index of this ability. |
SetActivated | void SetActivated(bool bActivated)
|
Set this ability as activated (true) or disabled (false). Disabled abilities are colored dark and cannot be used. |
SetChanneling | void SetChanneling(bool bChanneling)
|
No Description Set |
SetHidden | void SetHidden(bool bHidden)
|
Set this ability as hidden (true) or visible (false). |
SetInAbilityPhase | void SetInAbilityPhase(bool bInAbilityPhase)
|
No Description Set |
SetLevel | void SetLevel(int iLevel)
|
Sets the level of this ability. |
SetOverrideCastPoint | void SetOverrideCastPoint(float flCastPoint)
|
No Description Set |
SetRefCountsModifiers | void SetRefCountsModifiers(bool bRefCounts)
|
No Description Set |
SetStolen | void SetStolen(bool bStolen)
|
Set whether or not this ability is considered stolen (by Rubick's Spellsteal). |
ShouldUseResources | bool ShouldUseResources()
|
No Description Set |
SpeakAbilityConcept | void SpeakAbilityConcept(int iConcept)
|
No Description Set |
SpeakTrigger | <unknown> SpeakTrigger()
|
No Description Set |
StartCooldown | void StartCooldown(float flCooldown)
|
Start a cooldown, starting to count from the passed float parameter. |
ToggleAbility | void ToggleAbility()
|
Toggle this ability on or off. |
ToggleAutoCast | void ToggleAutoCast()
|
Toggle this ability's auto cast on or off. |
UpgradeAbility | void UpgradeAbility(bool bSupressSpeech)
|
Increase the ability's level. |
UseResources | void UseResources(bool bMana, bool bGold, bool bCooldown)
|
Use the ability's resources. Return true for each resource to determine which resource should be used - mana, gold, and cooldown. |
CanAbilityBeUpgraded | <unknown> CanAbilityBeUpgraded()
|
|
CastAbility | bool CastAbility()
|
|
ContinueCasting | bool ContinueCasting()
|
|
CreateVisibilityNode | void CreateVisibilityNode(Vector vLocation, float fRadius, float fDuration)
|
|
DecrementModifierRefCount | void DecrementModifierRefCount()
|
|
EndChannel | void EndChannel(bool bInterrupted)
|
|
EndCooldown | void EndCooldown()
|
Clear the cooldown remaining on this ability. |
GetAOERadius | int GetAOERadius()
|
|
GetAbilityDamage | int GetAbilityDamage()
|
|
GetAbilityDamageType | int GetAbilityDamageType()
|
|
GetAbilityIndex | int GetAbilityIndex()
|
|
GetAbilityKeyValues | table GetAbilityKeyValues()
|
Gets the key values definition for this ability. |
GetAbilityName | string GetAbilityName()
|
Returns the name of this ability. |
GetAbilityTargetFlags | int GetAbilityTargetFlags()
|
|
GetAbilityTargetTeam | int GetAbilityTargetTeam()
|
|
GetAbilityTargetType | int GetAbilityTargetType()
|
|
GetAbilityType | int GetAbilityType()
|
|
GetAnimationIgnoresModelScale | bool GetAnimationIgnoresModelScale()
|
|
GetAssociatedPrimaryAbilities | string GetAssociatedPrimaryAbilities()
|
|
GetAssociatedSecondaryAbilities | string GetAssociatedSecondaryAbilities()
|
|
GetAutoCastState | bool GetAutoCastState()
|
|
GetBackswingTime | float GetBackswingTime()
|
|
GetBehavior | int GetBehavior()
|
|
GetCastPoint | float GetCastPoint()
|
|
GetCastRange | int GetCastRange(Vector vLocation, handle hTarget)
|
Gets the cast range of the ability. |
GetCaster | handle GetCaster()
|
|
GetChannelStartTime | float GetChannelStartTime()
|
|
GetChannelTime | float GetChannelTime()
|
|
GetChannelledManaCostPerSecond | int GetChannelledManaCostPerSecond(int iLevel)
|
|
GetCloneSource | handle GetCloneSource()
|
|
GetConceptRecipientType | int GetConceptRecipientType()
|
|
GetCooldown | float GetCooldown(int iLevel)
|
Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left. |
GetCooldownTime | float GetCooldownTime()
|
|
GetCooldownTimeRemaining | float GetCooldownTimeRemaining()
|
|
GetCursorPosition | Vector GetCursorPosition()
|
|
GetCursorTarget | handle GetCursorTarget()
|
|
GetCursorTargetingNothing | bool GetCursorTargetingNothing()
|
|
GetDuration | float GetDuration()
|
|
GetEffectiveCooldown | float GetEffectiveCooldown(int iLevel)
|
|
GetGoldCost | int GetGoldCost(int iLevel)
|
|
GetGoldCostForUpgrade | int GetGoldCostForUpgrade(int iLevel)
|
|
GetHeroLevelRequiredToUpgrade | int GetHeroLevelRequiredToUpgrade()
|
|
GetIntrinsicModifierName | string GetIntrinsicModifierName()
|
|
GetLevel | int GetLevel()
|
Get the current level of the ability. |
GetLevelSpecialValueFor | table GetLevelSpecialValueFor(string szName, int nLevel)
|
|
GetManaCost | int GetManaCost(int iLevel)
|
|
GetMaxLevel | int GetMaxLevel()
|
|
GetModifierValue | float GetModifierValue()
|
|
GetModifierValueBonus | float GetModifierValueBonus()
|
|
GetPlaybackRateOverride | float GetPlaybackRateOverride()
|
|
GetSharedCooldownName | string GetSharedCooldownName()
|
|
GetSpecialValueFor | table GetSpecialValueFor(string szName)
|
Gets a value from this ability's special value block for its current level. |
GetStolenActivityModifier | string GetStolenActivityModifier()
|
|
GetToggleState | bool GetToggleState()
|
|
GetUpgradeRecommended | bool GetUpgradeRecommended()
|
|
HeroXPChange | bool HeroXPChange(float flXP)
|
|
IncrementModifierRefCount | void IncrementModifierRefCount()
|
|
IsActivated | bool IsActivated()
|
|
IsAttributeBonus | bool IsAttributeBonus()
|
|
IsChanneling | bool IsChanneling()
|
Returns whether the ability is currently channeling. |
IsCooldownReady | bool IsCooldownReady()
|
|
IsCosmetic | bool IsCosmetic(handle hEntity)
|
|
IsFullyCastable | bool IsFullyCastable()
|
Returns whether the ability can be cast. |
IsHidden | bool IsHidden()
|
|
IsHiddenAsSecondaryAbility | bool IsHiddenAsSecondaryAbility()
|
|
IsHiddenWhenStolen | bool IsHiddenWhenStolen()
|
|
IsInAbilityPhase | bool IsInAbilityPhase()
|
Returns whether the ability is currently casting. |
IsItem | bool IsItem()
|
|
IsOwnersGoldEnough | bool IsOwnersGoldEnough(int nIssuerPlayerID)
|
|
IsOwnersGoldEnoughForUpgrade | bool IsOwnersGoldEnoughForUpgrade()
|
|
IsOwnersManaEnough | bool IsOwnersManaEnough()
|
|
IsPassive | bool IsPassive()
|
|
IsRefreshable | bool IsRefreshable()
|
|
IsSharedWithTeammates | bool IsSharedWithTeammates()
|
|
IsStealable | bool IsStealable()
|
|
IsStolen | bool IsStolen()
|
|
IsToggle | bool IsToggle()
|
|
IsTrained | bool IsTrained()
|
|
MarkAbilityButtonDirty | void MarkAbilityButtonDirty()
|
Mark the ability button for this ability as needing a refresh. |
NumModifiersUsingAbility | int NumModifiersUsingAbility()
|
|
OnAbilityPhaseInterrupted | void OnAbilityPhaseInterrupted()
|
|
OnAbilityPhaseStart | bool OnAbilityPhaseStart()
|
|
OnAbilityPinged | void OnAbilityPinged(int nPlayerID, bool bCtrlHeld)
|
|
OnChannelFinish | void OnChannelFinish(bool bInterrupted)
|
|
OnChannelThink | void OnChannelThink(float flInterval)
|
|
OnHeroCalculateStatBonus | void OnHeroCalculateStatBonus()
|
|
OnHeroLevelUp | void OnHeroLevelUp()
|
|
OnOwnerDied | void OnOwnerDied()
|
|
OnOwnerSpawned | void OnOwnerSpawned()
|
|
OnSpellStart | void OnSpellStart()
|
|
OnToggle | void OnToggle()
|
|
OnUpgrade | void OnUpgrade()
|
|
PayGoldCost | void PayGoldCost()
|
|
PayGoldCostForUpgrade | void PayGoldCostForUpgrade()
|
|
PayManaCost | void PayManaCost()
|
|
PlaysDefaultAnimWhenStolen | bool PlaysDefaultAnimWhenStolen()
|
|
ProcsMagicStick | bool ProcsMagicStick()
|
|
RefCountsModifiers | bool RefCountsModifiers()
|
|
RefreshCharges | void RefreshCharges()
|
|
RefundManaCost | void RefundManaCost()
|
|
ResetToggleOnRespawn | bool ResetToggleOnRespawn()
|
|
SetAbilityIndex | void SetAbilityIndex(int iIndex)
|
|
SetActivated | void SetActivated(bool bActivated)
|
|
SetChanneling | void SetChanneling(bool bChanneling)
|
|
SetFrozenCooldown | void SetFrozenCooldown(bool bFrozenCooldown)
|
|
SetHidden | void SetHidden(bool bHidden)
|
|
SetInAbilityPhase | void SetInAbilityPhase(bool bInAbilityPhase)
|
|
SetLevel | void SetLevel(int iLevel)
|
Sets the level of this ability. |
SetOverrideCastPoint | void SetOverrideCastPoint(float flCastPoint)
|
|
SetRefCountsModifiers | void SetRefCountsModifiers(bool bRefCounts)
|
|
SetStealable | void SetStealable(bool bStealable)
|
|
SetStolen | void SetStolen(bool bStolen)
|
|
SetUpgradeRecommended | void SetUpgradeRecommended(bool bUpgradeRecommended)
|
|
ShouldUseResources | bool ShouldUseResources()
|
|
SpeakAbilityConcept | void SpeakAbilityConcept(int iConcept)
|
|
SpeakTrigger | <unknown> SpeakTrigger()
|
|
StartCooldown | void StartCooldown(float flCooldown)
|
|
ToggleAbility | void ToggleAbility()
|
|
ToggleAutoCast | void ToggleAutoCast()
|
|
UpgradeAbility | void UpgradeAbility(bool bSupressSpeech)
|
|
UseResources | void UseResources(bool bMana, bool bGold, bool bCooldown)
|
CDOTA_Ability_Animation_Attack
- extends CDOTABaseAbility
No Description Set
Function | Signature | Description |
---|---|---|
SetPlaybackRate | void SetPlaybackRate(float flRate)
|
Override playbackrate |
CDOTA_Ability_Animation_TailSpin
- extends CDOTABaseAbility
No Description Set
Function | Signature | Description |
---|---|---|
SetPlaybackRate | void SetPlaybackRate(float flRate)
|
Override playbackrate |
CDOTA_Ability_Nian_Leap
- extends CDOTABaseAbility
No Description Set
Function | Signature | Description |
---|---|---|
SetPlaybackRate | void SetPlaybackRate(float flRate)
|
Override playbackrate |
CDOTA_Ability_Nian_Dive
- extends CDOTABaseAbility
No Description Set
Function | Signature | Description |
---|---|---|
SetPlaybackRate | void SetPlaybackRate(float flRate)
|
Override playbackrate |
CDOTA_Ability_Nian_Roar
- extends CDOTABaseAbility
No Description Set
Function | Signature | Description |
---|---|---|
GetCastCount | int GetCastCount()
|
Number of times Nian has used the roar |
CDOTA_Item
- extends CDOTABaseAbility
No Description Set
Function | Signature | Description |
---|---|---|
GetContainer | handle GetContainer()
|
Get the container for this item. |
GetCost | int GetCost()
|
Get the item's purchase cost. |
GetCurrentCharges | int GetCurrentCharges()
|
Get the number of charges this item currently has. |
GetInitialCharges | int GetInitialCharges()
|
Get the initial number of charges this item has. |
GetPurchaser | handle GetPurchaser()
|
Get the purchaser for this item. |
GetPurchaseTime | float GetPurchaseTime()
|
Get the purchase time of this item |
GetShareability | int GetShareability()
|
No Description Set |
IsAlertableItem | bool IsAlertableItem()
|
Returns whether this item is alert-able (right click to ping "Gather for ``item_name`` here") |
IsCastOnPickup | bool IsCastOnPickup()
|
Returns whether this item casts its ability when picked up. |
IsCombinable | bool IsCombinable()
|
Returns whether this item can be combined. |
IsDisassemblable | bool IsDisassemblable()
|
Returns whether this item can be disassembled. |
IsDroppable | bool IsDroppable()
|
Returns whether this item can be dropped. |
IsItem | bool IsItem()
|
Returns whether the handle is an item. |
IsKillable | bool IsKillable()
|
Returns whether this item can be destroyed on ground. |
IsMuted | bool IsMuted()
|
Returns whether this item is muted. |
IsPermanent | bool IsPermanent()
|
Is this a permanent item? |
IsPurchasable | bool IsPurchasable()
|
Returns whether this item can be purchased. |
IsRecipe | bool IsRecipe()
|
Returns whether this item is a recipe. |
IsRecipeGenerated | bool IsRecipeGenerated()
|
|
IsSellable | bool IsSellable()
|
Returns whether this item can be sold. |
IsStackable | bool IsStackable()
|
Returns whether this item can be stacked. |
LaunchLoot | void LaunchLoot(bool useOnContact, float height, float flDuration, Vector destination)
|
For items lying on the ground. Fires the item up into the air so that it lands at the specified position. |
LaunchLootInitialHeight | void LaunchLootInitialHeight(bool bAutoUse, float flInitialHeight, float flLaunchHeight, float flDuration, Vector vEndPoint)
|
|
RequiresCharges | bool RequiresCharges()
|
Returns whether this item requires charges to be cast. |
SetCurrentCharges | void SetCurrentCharges(int iCharges)
|
Set the number of charges on this item |
SetPurchaser | void SetPurchaser(handle hPurchaser)
|
Set the purchaser of record for this item. |
SetPurchaseTime | void SetPurchaseTime(float flTime)
|
Set the purchase time of this item |
SetStacksWithOtherOwners | void SetStacksWithOtherOwners(bool bStacksWithOtherOwners)
|
No Description Set |
StacksWithOtherOwners | bool StacksWithOtherOwners()
|
No Description Set |
Think | void Think()
|
Think this item |
CDOTA_Item_Physical
- extends CBaseAnimating
No Description Set
Function | Signature | Description |
---|---|---|
GetContainedItem | handle GetContainedItem()
|
Returned the contained item. |
GetCreationTime | float GetCreationTime()
|
Returns the game time when this item was created in the world |
SetContainedItem | void SetContainedItem(handle hItem)
|
Set the contained item. |
CDOTA_Item_DataDriven
- extends CDOTA_Item
'
Function | Signature | Description |
---|---|---|
ApplyDataDrivenModifier | void ApplyDataDrivenModifier(handle source, handle target, string modifier_name, handle modifierArgs)
|
Applies a data driven modifier to the target |
ApplyDataDrivenThinker | handle ApplyDataDrivenThinker(handle hCaster, Vector vLocation, string pszModifierName, handle hModifierTable)
|
Applies a data driven thinker at the location |
CDOTA_Unit_Nian
- extends CDOTA_BaseNPC_Creature
No Description Set
Function | Signature | Description |
---|---|---|
GetHorn | handle GetHorn()
|
Is the Nian horn? |
GetTail | handle GetTail()
|
Is the Nian's tail broken? |
IsHornAlive | bool IsHornAlive()
|
Is the Nian's horn broken? |
IsTailAlive | bool IsTailAlive()
|
Is the Nian's tail broken? |
CBasePlayer
No Description Set
Function | Signature | Description |
---|---|---|
GetHMDAvatar | handle GetHMDAvatar()
|
Returns the HMD Avatar entity for this player if it exists. |
IsNoclipping | bool IsNoclipping()
|
Returns true if the player is in noclip mode. |
IsSteamControllerButtonPressed | bool IsSteamControllerButtonPressed(int nControllerNumber, int nButton)
|
Returns true if the controller button is pressed. |
IsUsePressed | bool IsUsePressed()
|
Returns true if the use key is pressed. |
IsVRControllerButtonPressed | bool IsVRControllerButtonPressed(int nButton)
|
Returns true if the controller button is pressed. |
Quit | void Quit()
|
Quit the game from script. |
CDOTAPlayer
- extends CBaseAnimating
No Description Set
Function | Signature | Description |
---|---|---|
GetAssignedHero | handle GetAssignedHero()
|
Get the player's hero. |
GetControlledRPGUnit | handle GetControlledRPGUnit()
|
Get the RPG unit this player controls. |
GetPlayerID | int GetPlayerID()
|
Get the player's official PlayerID; notably is -1 when the player isn't yet on a team. |
MakeRandomHeroSelection | void MakeRandomHeroSelection()
|
Randoms this player's hero. |
SetKillCamUnit | void SetKillCamUnit(handle hEntity)
|
Set the kill cam unit for this hero. |
SetMusicStatus | void SetMusicStatus(int nMusicStatus, float flIntensity)
|
Set the music status for this player, note this will only really apply if dota_music_battle_enable is off. |
CDOTA_PlayerResource
- extends CBaseEntity
No Description Set
Global accessor variable: PlayerResource
Function | Signature | Description |
---|---|---|
AddAegisPickup | void AddAegisPickup(int iPlayerID)
|
No Description Set |
AddClaimedFarm | void AddClaimedFarm(int iPlayerID, float flFarmValue, bool bEarnedValue)
|
No Description Set |
AddGoldSpentOnSupport | void AddGoldSpentOnSupport(int iPlayerID, int iCost)
|
No Description Set |
AddRunePickup | void AddRunePickup(int iPlayerID)
|
No Description Set |
AreUnitsSharedWithPlayerID | bool AreUnitsSharedWithPlayerID(int nUnitOwnerPlayerID, int nOtherPlayerID)
|
No Description Set |
ClearKillsMatrix | void ClearKillsMatrix(int iPlayerID)
|
No Description Set |
ClearLastHitMultikill | void ClearLastHitMultikill(int iPlayerID)
|
No Description Set |
ClearLastHitStreak | void ClearLastHitStreak(int iPlayerID)
|
No Description Set |
ClearRawPlayerDamageMatrix | void ClearRawPlayerDamageMatrix(int iPlayerID)
|
No Description Set |
ClearStreak | void ClearStreak(int iPlayerID)
|
No Description Set |
GetAegisPickups | int GetAegisPickups(int iPlayerID)
|
No Description Set |
GetAssists | int GetAssists(int iPlayerID)
|
No Description Set |
GetBroadcasterChannel | unsigned GetBroadcasterChannel(int iPlayerID)
|
No Description Set |
GetBroadcasterChannelSlot | unsigned GetBroadcasterChannelSlot(int iPlayerID)
|
No Description Set |
GetClaimedDenies | int GetClaimedDenies(int iPlayerID)
|
No Description Set |
GetClaimedFarm | float GetClaimedFarm(int iPlayerID, bool bOnlyEarned)
|
No Description Set |
GetClaimedMisses | int GetClaimedMisses(int iPlayerID)
|
No Description Set |
GetConnectionState | int GetConnectionState(int iPlayerID)
|
Returns a status code indication the connection state of the player. 0 - no connection. 1 - bot connected. 2 - player connected. 3 bot/player disconnected. |
GetCreepDamageTaken | int GetCreepDamageTaken(int iPlayerID, bool bTotal)
|
No Description Set |
GetCustomBuybackCooldown | float GetCustomBuybackCooldown(int iPlayerID)
|
No Description Set |
GetCustomBuybackCost | int GetCustomBuybackCost(int iPlayerID)
|
No Description Set |
GetCustomTeamAssignment | int GetCustomTeamAssignment(int playerIndex)
|
Returns the team number that the player should join |
GetDamageDoneToHero | int GetDamageDoneToHero(int iPlayerID, int iVictimID)
|
No Description Set |
GetDeaths | int GetDeaths(int iPlayerID)
|
No Description Set |
GetDenies | int GetDenies(int iPlayerID)
|
No Description Set |
GetEventPointsForPlayerID | int GetEventPointsForPlayerID(int iPlayerID)
|
No Description Set |
GetEventPremiumPointsGranted | int GetEventPremiumPointsGranted(int iPlayerID)
|
No Description Set |
GetEventRankGranted | int GetEventRankGranted(int iPlayerID)
|
No Description Set |
GetGold | int GetGold(int playerID)
|
Returns how much gold the specified player currently has |
GetGoldBagsCollected | int GetGoldBagsCollected(int iPlayerID)
|
No Description Set |
GetGoldLostToDeath | int GetGoldLostToDeath(int iPlayerID)
|
No Description Set |
GetGoldPerMin | float GetGoldPerMin(int iPlayerID)
|
No Description Set |
GetGoldSpentOnBuybacks | int GetGoldSpentOnBuybacks(int iPlayerID)
|
No Description Set |
GetGoldSpentOnConsumables | int GetGoldSpentOnConsumables(int iPlayerID)
|
No Description Set |
GetGoldSpentOnItems | int GetGoldSpentOnItems(int iPlayerID)
|
No Description Set |
GetGoldSpentOnSupport | int GetGoldSpentOnSupport(int iPlayerID)
|
No Description Set |
GetHealing | float GetHealing(int iPlayerID)
|
No Description Set |
GetHeroDamageTaken | int GetHeroDamageTaken(int iPlayerID, bool bTotal)
|
No Description Set |
GetKills | int GetKills(int playerID)
|
Return how many kills the specified player currently gets |
GetKillsDoneToHero | int GetKillsDoneToHero(int attackerPlayerID, int victimPlayerID)
|
Returns the number of times the attacker (first argument) has killed the victim (second argument) |
GetLastHitMultikill | int GetLastHitMultikill(int iPlayerID)
|
No Description Set |
GetLastHits | int GetLastHits(int playerID)
|
No Description Set |
GetLastHitStreak | int GetLastHitStreak(int iPlayerID)
|
No Description Set |
GetLevel | int GetLevel(int playerID)
|
No Description Set |
GetMisses | int GetMisses(int iPlayerID)
|
No Description Set |
GetNearbyCreepDeaths | int GetNearbyCreepDeaths(int iPlayerID)
|
No Description Set |
GetNthCourierForTeam | handle GetNthCourierForTeam(int nCourierIndex, int nTeamNumber)
|
No Description Set |
GetNthPlayerIDOnTeam | int GetNthPlayerIDOnTeam(int iTeamNumber, int iNthPlayer)
|
No Description Set |
GetNumConsumablesPurchased | int GetNumConsumablesPurchased(int iPlayerID)
|
No Description Set |
GetNumCouriersForTeam | int GetNumCouriersForTeam(int nTeamNumber)
|
No Description Set |
GetNumItemsPurchased | int GetNumItemsPurchased(int iPlayerID)
|
No Description Set |
GetOriginalLobbyTeam | int GetOriginalLobbyTeam(int iPlayerID)
|
The team this player was originally assigned in the lobby. DOTA_TEAM_NOTEAM if no lobby info. |
GetPlayer | handle GetPlayer(int playerID)
|
No Description Set |
GetPlayerCount | int GetPlayerCount()
|
Includes spectators and players not assigned to a team |
GetPlayerCountForTeam | int GetPlayerCountForTeam(int iTeam)
|
|
GetPlayerLoadedCompletely | bool GetPlayerLoadedCompletely(int iPlayerID)
|
No Description Set |
GetPlayerName | string GetPlayerName(int iPlayerID)
|
No Description Set |
GetPlayerReservedState | bool GetPlayerReservedState(int iPlayerID)
|
No Description Set |
GetRawPlayerDamage | int GetRawPlayerDamage(int iPlayerID)
|
No Description Set |
GetReliableGold | int GetReliableGold(int playerID)
|
Returns how much reliable gold the specified player currently has |
GetRespawnSeconds | int GetRespawnSeconds(int iPlayerID)
|
No Description Set |
GetRoshanKills | int GetRoshanKills(int iPlayerID)
|
No Description Set |
GetRunePickups | int GetRunePickups(int iPlayerID)
|
No Description Set |
GetSelectedHeroEntity | handle GetSelectedHeroEntity(int iPlayerID)
|
No Description Set |
GetSelectedHeroID | int GetSelectedHeroID(int iPlayerID)
|
No Description Set |
GetSelectedHeroName | string GetSelectedHeroName(int iPlayerID)
|
No Description Set |
GetSteamAccountID | unsigned GetSteamAccountID(int iPlayerID)
|
Return player steamID32 |
GetSteamID | unsigned GetSteamID(int iPlayerID)
|
Return player steamID64 |
GetStreak | int GetStreak(int iPlayerID)
|
No Description Set |
GetStuns | float GetStuns(int iPlayerID)
|
No Description Set |
GetTeam | int GetTeam(int iPlayerID)
|
No Description Set |
GetTeamKills | int GetTeamKills(int iTeam)
|
No Description Set |
GetTeamPlayerCount | int GetTeamPlayerCount()
|
Players on a valid team (radiant, dire, or custom*) who haven't abandoned the game |
GetTimeOfLastConsumablePurchase | float GetTimeOfLastConsumablePurchase(int iPlayerID)
|
No Description Set |
GetTimeOfLastDeath | float GetTimeOfLastDeath(int iPlayerID)
|
No Description Set |
GetTimeOfLastItemPurchase | float GetTimeOfLastItemPurchase(int iPlayerID)
|
No Description Set |
GetTotalEarnedGold | int GetTotalEarnedGold(int iPlayerID)
|
No Description Set |
GetTotalEarnedXP | int GetTotalEarnedXP(int iPlayerID)
|
No Description Set |
GetTotalGoldSpent | int GetTotalGoldSpent(int iPlayerID)
|
No Description Set |
GetTowerDamageTaken | int GetTowerDamageTaken(int iPlayerID, bool bTotal)
|
No Description Set |
GetTowerKills | int GetTowerKills(int iPlayerID)
|
No Description Set |
GetUnitShareMaskForPlayer | int GetUnitShareMaskForPlayer(int nPlayerID, int nOtherPlayerID)
|
No Description Set |
GetUnreliableGold | int GetUnreliableGold(int playerID)
|
Returns how much unreliable gold the specified player currently has |
GetXPPerMin | float GetXPPerMin(int iPlayerID)
|
No Description Set |
HasCustomGameTicketForPlayerID | bool HasCustomGameTicketForPlayerID(int iPlayerID)
|
Return true if player has pass |
HasRandomed | bool HasRandomed(int iPlayerID)
|
No Description Set |
HasRepicked | bool HasRepicked(int playerID)
|
No Description Set |
HasSelectedHero | bool HasSelectedHero(int iPlayerID)
|
No Description Set |
HaveAllPlayersJoined | bool HaveAllPlayersJoined()
|
No Description Set |
HeroLevelUp | void HeroLevelUp(int iPlayerID)
|
No Description Set |
IncrementAssists | void IncrementAssists(int playerID, int iVictimID)
|
No Description Set |
IncrementClaimedDenies | void IncrementClaimedDenies(int iPlayerID)
|
No Description Set |
IncrementClaimedMisses | void IncrementClaimedMisses(int iPlayerID)
|
No Description Set |
IncrementDeaths | void IncrementDeaths(int playerID, int iKillerID)
|
No Description Set |
IncrementDenies | void IncrementDenies(int iPlayerID)
|
No Description Set |
IncrementGoldBagsCollected | void IncrementGoldBagsCollected(int iPlayerID)
|
No Description Set |
IncrementKills | void IncrementKills(int playerID, int kills)
|
No Description Set |
IncrementLastHitMultikill | void IncrementLastHitMultikill(int iPlayerID)
|
No Description Set |
IncrementLastHits | void IncrementLastHits(int iPlayerID)
|
No Description Set |
IncrementLastHitStreak | void IncrementLastHitStreak(int iPlayerID)
|
No Description Set |
IncrementMisses | void IncrementMisses(int iPlayerID)
|
No Description Set |
IncrementNearbyCreepDeaths | void IncrementNearbyCreepDeaths(int iPlayerID)
|
No Description Set |
IncrementStreak | void IncrementStreak(int iPlayerID)
|
No Description Set |
IncrementTotalEarnedXP | void IncrementTotalEarnedXP(int iPlayerID, int iXP, int nReason)
|
No Description Set |
IsBroadcaster | bool IsBroadcaster(int iPlayerID)
|
No Description Set |
IsDisableHelpSetForPlayerID | bool IsDisableHelpSetForPlayerID(int nPlayerID, int nOtherPlayerID)
|
No Description Set |
IsFakeClient | bool IsFakeClient(int iPlayerID)
|
No Description Set |
IsHeroSelected | bool IsHeroSelected(string pHeroname)
|
No Description Set |
IsHeroSharedWithPlayerID | bool IsHeroSharedWithPlayerID(int nUnitOwnerPlayerID, int nOtherPlayerID)
|
No Description Set |
IsValidPlayer | bool IsValidPlayer(int playerID)
|
No Description Set |
IsValidPlayerID | bool IsValidPlayerID(int playerID)
|
No Description Set |
IsValidTeamPlayer | bool IsValidTeamPlayer(int playerID)
|
No Description Set |
IsValidTeamPlayerID | bool IsValidTeamPlayerID(int playerID)
|
No Description Set |
ModifyGold | int ModifyGold(int playerID, int goldAmmt, bool reliable, int nReason)
|
No Description Set |
NumPlayers | int NumPlayers()
|
No Description Set |
ReplaceHeroWith | handle ReplaceHeroWith(int iPlayerID, string pszHeroClass, int nGold, int nXP)
|
(playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP |
ResetBuybackCostTime | void ResetBuybackCostTime(int nPlayerID)
|
No Description Set |
ResetTotalEarnedGold | void ResetTotalEarnedGold(int iPlayerID)
|
No Description Set |
SetBuybackCooldownTime | void SetBuybackCooldownTime(int nPlayerID, float flBuybackCooldown)
|
No Description Set |
SetBuybackGoldLimitTime | void SetBuybackGoldLimitTime(int nPlayerID, float flBuybackCooldown)
|
No Description Set |
SetCameraTarget | void SetCameraTarget(int nPlayerID, handle hTarget)
|
(playerID, entity) - force the given player's camera to follow the given entity |
SetCustomBuybackCooldown | void SetCustomBuybackCooldown(int iPlayerID, float flCooldownTime)
|
Set the buyback cooldown for this player. |
SetCustomBuybackCost | void SetCustomBuybackCost(int iPlayerID, int iGoldCost)
|
Set the buyback cost for this player. |
SetCustomPlayerColor | void SetCustomPlayerColor(int iPlayerID, int r, int g, int b)
|
Set custom color for player (minimap, scoreboard, etc) |
SetCustomTeamAssignment | void SetCustomTeamAssignment(int playerIndex, int teamToJoin)
|
Sets the team that the player should join |
SetGold | void SetGold(int playerID, int amount, bool reliableGold)
|
Sets the reliable/unreliable gold of the specified player |
SetHasRandomed | void SetHasRandomed(int playerID)
|
No Description Set |
SetHasRepicked | void SetHasRepicked(int playerID)
|
No Description Set |
SetLastBuybackTime | void SetLastBuybackTime(int iPlayerID, int iLastBuybackTime)
|
No Description Set |
SetOverrideSelectionEntity | void SetOverrideSelectionEntity(int nPlayerID, handle hEntity)
|
Set the forced selection entity for a player. |
SetPlayerReservedState | void SetPlayerReservedState(int iPlayerID, bool bReserved)
|
No Description Set |
SetUnitShareMaskForPlayer | void SetUnitShareMaskForPlayer(int nPlayerID, int nOtherPlayerID, int nFlag, bool bState)
|
No Description Set |
SpendGold | void SpendGold(int playerID, int amount, int reason)
|
No Description Set |
UpdateTeamSlot | void UpdateTeamSlot(int iPlayerID, int iTeamNumber, bool bFromLobby)
|
No Description Set |
WhoSelectedHero | int WhoSelectedHero(string pHeroFilename)
|
No Description Set |
CDOTA_BaseNPC
- extends CBaseFlex
Function | Signature | Description |
---|---|---|
AddAbility | handle AddAbility(string pszAbilityName)
|
Add an ability to this unit by name. |
AddActivityModifier | void AddActivityModifier(string szName)
|
Add an activity modifier that affects future StartGesture calls |
AddItem | handle AddItem(handle hItem)
|
Add an item to this unit's inventory. |
AddItemByName | handle AddItemByName(string pszItemName)
|
Add an item to this unit's inventory. |
AddNewModifier | handle AddNewModifier(handle hCaster, handle hAbility, string pszScriptName, handle hModifierTable)
|
Add a modifier to this unit. |
AddNoDraw | void AddNoDraw()
|
Adds the no draw flag. |
AddSpeechBubble | void AddSpeechBubble(int iBubble, string pszSpeech, float flDuration, unsigned unOffsetX, unsigned unOffsetY)
|
Add a speech bubble(1-4 live at a time) to this NPC. |
AlertNearbyUnits | void AlertNearbyUnits(handle hAttacker, handle hAbility)
|
|
AngerNearbyUnits | void AngerNearbyUnits()
|
|
AttackNoEarlierThan | void AttackNoEarlierThan(float flTime)
|
|
AttackReady | bool AttackReady()
|
|
BoundingRadius2D | float BoundingRadius2D()
|
|
CanEntityBeSeenByMyTeam | bool CanEntityBeSeenByMyTeam(handle hEntity)
|
Check FoW to see if an entity is visible. |
CanSellItems | bool CanSellItems()
|
Query if this unit can sell items. |
CastAbilityImmediately | void CastAbilityImmediately(handle hAbility, int iPlayerIndex)
|
Cast an ability immediately. |
CastAbilityNoTarget | void CastAbilityNoTarget(handle hAbility, int iPlayerIndex)
|
Cast an ability with no target. |
CastAbilityOnPosition | void CastAbilityOnPosition(Vector vPosition, handle hAbility, int iPlayerIndex)
|
Cast an ability on a position. |
CastAbilityOnTarget | void CastAbilityOnTarget(handle hTarget, handle hAbility, int iPlayerIndex)
|
Cast an ability on a target entity. |
CastAbilityToggle | void CastAbilityToggle(handle hAbility, int iPlayerIndex)
|
Toggle an ability. |
ClearActivityModifiers | void ClearActivityModifiers()
|
Clear Activity modifiers |
DestroyAllSpeechBubbles | void DestroyAllSpeechBubbles()
|
|
DisassembleItem | void DisassembleItem(handle hItem)
|
Disassemble the passed item in this unit's inventory. |
DropItemAtPosition | void DropItemAtPosition(Vector vDest, handle hItem)
|
Drop an item at a given point. |
DropItemAtPositionImmediate | void DropItemAtPositionImmediate(handle hItem, Vector vPosition)
|
Immediately drop a carried item at a given position. |
EjectItemFromStash | void EjectItemFromStash(handle hItem)
|
Drops the selected item out of this unit's stash. |
FaceTowards | void FaceTowards(Vector vTarget)
|
This unit will be set to face the target point. |
FadeGesture | void FadeGesture(int nActivity)
|
Fade and remove the given gesture activity. |
FindAbilityByName | handle FindAbilityByName(string pAbilityName)
|
Retrieve an ability by name from the unit. |
FindAllModifiers | table FindAllModifiers()
|
Returns a table of all of the modifiers on the NPC. |
FindAllModifiersByName | table FindAllModifiersByName(string pszScriptName)
|
Returns a table of all of the modifiers on the NPC with the passed name (modifierName) |
FindItemInInventory | handle FindItemInInventory(string pszItemName)
|
Get handle to first item in inventory, else nil. |
FindModifierByName | handle FindModifierByName(string pszScriptName)
|
Return a handle to the modifier of the given name if found, else nil (string Name ) |
FindModifierByNameAndCaster | handle FindModifierByNameAndCaster(string pszScriptName, handle hCaster)
|
Return a handle to the modifier of the given name from the passed caster if found, else nil ( string Name, hCaster ) |
ForceKill | void ForceKill(bool bReincarnate)
|
Kill this unit immediately. |
ForcePlayActivityOnce | void ForcePlayActivityOnce(int nActivity)
|
Play an activity once, and then go back to idle. |
GetAbilityByIndex | handle GetAbilityByIndex(int iIndex)
|
Retrieve an ability by index from the unit. |
GetAbilityCount | int GetAbilityCount()
|
|
GetAcquisitionRange | float GetAcquisitionRange()
|
Gets the range at which this unit will auto-acquire. |
GetAdditionalBattleMusicWeight | float GetAdditionalBattleMusicWeight()
|
Combat involving this creature will have this weight added to the music calcuations. |
GetAggroTarget | handle GetAggroTarget()
|
Returns this unit's aggro target. |
GetAttackAnimationPoint | float GetAttackAnimationPoint()
|
|
GetAttackCapability | int GetAttackCapability()
|
|
GetAttackDamage | int GetAttackDamage()
|
Returns a random integer between the minimum and maximum base damage of the unit. |
GetAttackRangeBuffer | float GetAttackRangeBuffer()
|
Gets the attack range buffer. |
GetAttackSpeed | float GetAttackSpeed()
|
|
GetAttackTarget | handle GetAttackTarget()
|
|
GetAttacksPerSecond | float GetAttacksPerSecond()
|
|
GetAverageTrueAttackDamage | int GetAverageTrueAttackDamage(handle hTarget)
|
Returns the average value of the minimum and maximum damage values. |
GetBaseAttackRange | int GetBaseAttackRange()
|
|
GetBaseAttackTime | float GetBaseAttackTime()
|
|
GetBaseDamageMax | int GetBaseDamageMax()
|
Get the maximum attack damage of this unit. |
GetBaseDamageMin | int GetBaseDamageMin()
|
Get the minimum attack damage of this unit. |
GetBaseDayTimeVisionRange | int GetBaseDayTimeVisionRange()
|
Returns the vision range before modifiers. |
GetBaseHealthRegen | float GetBaseHealthRegen()
|
|
GetBaseMagicalResistanceValue | float GetBaseMagicalResistanceValue()
|
Returns base magical armor value. |
GetBaseMaxHealth | float GetBaseMaxHealth()
|
Gets the base max health value. |
GetBaseMoveSpeed | float GetBaseMoveSpeed()
|
|
GetBaseNightTimeVisionRange | int GetBaseNightTimeVisionRange()
|
Returns the vision range after modifiers. |
GetBonusManaRegen | float GetBonusManaRegen()
|
This Mana regen is derived from constant bonuses like Basilius. |
GetCastPoint | float GetCastPoint(bool bAttack)
|
|
GetCastRangeBonus | float GetCastRangeBonus()
|
|
GetCloneSource | handle GetCloneSource()
|
Get clone source (Meepo Prime, if this is a Meepo) |
GetCollisionPadding | float GetCollisionPadding()
|
Returns the size of the collision padding around the hull. |
GetCooldownReduction | float GetCooldownReduction()
|
|
GetCreationTime | float GetCreationTime()
|
|
GetCurrentActiveAbility | handle GetCurrentActiveAbility()
|
Get the ability this unit is currently casting. |
GetCurrentVisionRange | int GetCurrentVisionRange()
|
Gets the current vision range. |
GetCursorCastTarget | handle GetCursorCastTarget()
|
|
GetCursorPosition | Vector GetCursorPosition()
|
|
GetCursorTargetingNothing | bool GetCursorTargetingNothing()
|
|
GetDayTimeVisionRange | int GetDayTimeVisionRange()
|
Returns the vision range after modifiers. |
GetDeathXP | int GetDeathXP()
|
Get the XP bounty on this unit. |
GetDisplayAttackSpeed | float GetDisplayAttackSpeed()
|
Attack speed expressed as constant value |
GetEvasion | float GetEvasion()
|
|
GetForceAttackTarget | handle GetForceAttackTarget()
|
|
GetGoldBounty | int GetGoldBounty()
|
Get the gold bounty on this unit. |
GetHasteFactor | float GetHasteFactor()
|
|
GetHealthDeficit | int GetHealthDeficit()
|
Returns integer amount of health missing from max. |
GetHealthPercent | int GetHealthPercent()
|
Get the current health percent of the unit. |
GetHealthRegen | float GetHealthRegen()
|
|
GetHullRadius | float GetHullRadius()
|
Get the collision hull radius of this NPC. |
GetIdealSpeed | float GetIdealSpeed()
|
Returns speed after all modifiers. |
GetIdealSpeedNoSlows | float GetIdealSpeedNoSlows()
|
Returns speed after all modifiers, but excluding those that reduce speed. |
GetIncreasedAttackSpeed | float GetIncreasedAttackSpeed()
|
|
GetInitialGoalEntity | handle GetInitialGoalEntity()
|
Returns the initial waypoint goal for this NPC. |
GetInitialGoalPosition | Vector GetInitialGoalPosition()
|
Get waypoint position for this NPC. |
GetItemInSlot | handle GetItemInSlot(int i)
|
Returns nth item in inventory slot (index is zero based). |
GetLastAttackTime | float GetLastAttackTime()
|
|
GetLastDamageTime | float GetLastDamageTime()
|
Get the last time this NPC took damage |
GetLastIdleChangeTime | float GetLastIdleChangeTime()
|
Get the last game time that this unit switched to/from idle state. |
GetLevel | int GetLevel()
|
Returns the level of this unit. |
GetMagicalArmorValue | float GetMagicalArmorValue()
|
Returns current magical armor value. |
GetMainControllingPlayer | int GetMainControllingPlayer()
|
Returns the player ID of the controlling player. |
GetMana | float GetMana()
|
Get the mana on this unit. |
GetManaPercent | int GetManaPercent()
|
Get the percent of mana remaining. |
GetManaRegen | float GetManaRegen()
|
|
GetMaxMana | float GetMaxMana()
|
Get the maximum mana of this unit. |
GetMaximumGoldBounty | int GetMaximumGoldBounty()
|
Get the maximum gold bounty for this unit. |
GetMinimumGoldBounty | int GetMinimumGoldBounty()
|
Get the minimum gold bounty for this unit. |
GetModelRadius | float GetModelRadius()
|
|
GetModifierCount | int GetModifierCount()
|
How many modifiers does this unit have? |
GetModifierNameByIndex | string GetModifierNameByIndex(int nIndex)
|
Get a modifier name by index. |
GetModifierStackCount | int GetModifierStackCount(string pszScriptName, handle hCaster)
|
Gets the stack count of a given modifier. |
GetMoveSpeedModifier | float GetMoveSpeedModifier(float flBaseSpeed, bool bReturnUnslowed)
|
|
GetMustReachEachGoalEntity | bool GetMustReachEachGoalEntity()
|
Set whether this NPC is required to reach each goal entity, rather than being allowed to unkink their path. |
GetNeverMoveToClearSpace | bool GetNeverMoveToClearSpace()
|
If set to true, we will never attempt to move this unit to clear space, even when it unphases. |
GetNightTimeVisionRange | int GetNightTimeVisionRange()
|
Returns the vision range after modifiers. |
GetOpposingTeamNumber | int GetOpposingTeamNumber()
|
|
GetPaddedCollisionRadius | float GetPaddedCollisionRadius()
|
Get the collision hull radius (including padding) of this NPC. |
GetPhysicalArmorBaseValue | float GetPhysicalArmorBaseValue()
|
Returns base physical armor value. |
GetPhysicalArmorValue | float GetPhysicalArmorValue(bool bIgnoreBase)
|
Returns current physical armor value. |
GetPlayerOwner | handle GetPlayerOwner()
|
Returns the player that owns this unit. |
GetPlayerOwnerID | int GetPlayerOwnerID()
|
Get the owner player ID for this unit. |
GetProjectileSpeed | int GetProjectileSpeed()
|
|
GetRangeToUnit | float GetRangeToUnit(handle hNPC)
|
|
GetRangedProjectileName | string GetRangedProjectileName()
|
|
GetSecondsPerAttack | float GetSecondsPerAttack()
|
|
GetSpellAmplification | float GetSpellAmplification(bool bBaseOnly)
|
|
GetStatusResistance | float GetStatusResistance()
|
|
GetTotalPurchasedUpgradeGoldCost | int GetTotalPurchasedUpgradeGoldCost()
|
Get how much gold has been spent on ability upgrades. |
GetUnitLabel | string GetUnitLabel()
|
|
GetUnitName | string GetUnitName()
|
Get the name of this unit. |
GiveMana | void GiveMana(float flMana)
|
Give mana to this unit, this can be used for mana gained by abilities or item usage. |
HasAbility | bool HasAbility(string pszAbilityName)
|
See whether this unit has an ability by name. |
HasAnyActiveAbilities | bool HasAnyActiveAbilities()
|
|
HasAttackCapability | bool HasAttackCapability()
|
|
HasFlyMovementCapability | bool HasFlyMovementCapability()
|
|
HasFlyingVision | bool HasFlyingVision()
|
|
HasGroundMovementCapability | bool HasGroundMovementCapability()
|
|
HasInventory | bool HasInventory()
|
Does this unit have an inventory. |
HasItemInInventory | bool HasItemInInventory(string pItemName)
|
See whether this unit has an item by name. |
HasModifier | bool HasModifier(string pszScriptName)
|
Sees if this unit has a given modifier. |
HasMovementCapability | bool HasMovementCapability()
|
|
HasScepter | bool HasScepter()
|
|
Heal | void Heal(float flAmount, handle hInflictor)
|
Heal this unit. |
Hold | void Hold()
|
Hold position. |
Interrupt | void Interrupt()
|
|
InterruptChannel | void InterruptChannel()
|
|
InterruptMotionControllers | void InterruptMotionControllers(bool bFindClearSpace)
|
|
IsAlive | bool IsAlive()
|
Is this unit alive? |
IsAncient | bool IsAncient()
|
Is this unit an Ancient? |
IsAttackImmune | bool IsAttackImmune()
|
|
IsAttacking | bool IsAttacking()
|
|
IsAttackingEntity | bool IsAttackingEntity(handle hEntity)
|
|
IsBarracks | bool IsBarracks()
|
Is this unit a Barracks? |
IsBlind | bool IsBlind()
|
|
IsBlockDisabled | bool IsBlockDisabled()
|
|
IsBoss | bool IsBoss()
|
Is this unit a boss? |
IsBuilding | bool IsBuilding()
|
Is this unit a building? |
IsChanneling | bool IsChanneling()
|
Is this unit currently channeling a spell? |
IsClone | bool IsClone()
|
Is this unit a clone? (Meepo) |
IsCommandRestricted | bool IsCommandRestricted()
|
|
IsConsideredHero | bool IsConsideredHero()
|
Is this unit a considered a hero for targeting purposes? |
IsControllableByAnyPlayer | bool IsControllableByAnyPlayer()
|
Is this unit controlled by any non-bot player? |
IsCourier | bool IsCourier()
|
Is this unit a courier? |
IsCreature | bool IsCreature()
|
Is this a Creature type NPC? |
IsCreep | bool IsCreep()
|
Is this unit a creep? |
IsDeniable | bool IsDeniable()
|
|
IsDisarmed | bool IsDisarmed()
|
|
IsDominated | bool IsDominated()
|
|
IsEvadeDisabled | bool IsEvadeDisabled()
|
|
IsFort | bool IsFort()
|
Is this unit an Ancient? |
IsFrozen | bool IsFrozen()
|
|
IsHero | bool IsHero()
|
Is this a hero or hero illusion? |
IsHexed | bool IsHexed()
|
|
IsIdle | bool IsIdle()
|
Is this creature currently idle? |
IsIllusion | bool IsIllusion()
|
|
IsInRangeOfShop | bool IsInRangeOfShop(int nShopType, bool bPhysical)
|
Ask whether this unit is in range of the specified shop ( DOTA_SHOP_TYPE shop, bool bMustBePhysicallyNear |
IsInvisible | bool IsInvisible()
|
|
IsInvulnerable | bool IsInvulnerable()
|
|
IsLowAttackPriority | bool IsLowAttackPriority()
|
|
IsMagicImmune | bool IsMagicImmune()
|
|
IsMovementImpaired | bool IsMovementImpaired()
|
|
IsMoving | bool IsMoving()
|
Is this unit moving? |
IsMuted | bool IsMuted()
|
|
IsNeutralUnitType | bool IsNeutralUnitType()
|
Is this a neutral? |
IsNightmared | bool IsNightmared()
|
|
IsOpposingTeam | bool IsOpposingTeam(int nTeam)
|
|
IsOther | bool IsOther()
|
Is this unit a ward-type unit? |
IsOutOfGame | bool IsOutOfGame()
|
|
IsOwnedByAnyPlayer | bool IsOwnedByAnyPlayer()
|
Is this unit owned by any non-bot player? |
IsPhantom | bool IsPhantom()
|
Is this a phantom unit? |
IsPhantomBlocker | bool IsPhantomBlocker()
|
|
IsPhased | bool IsPhased()
|
|
IsPositionInRange | bool IsPositionInRange(Vector vPosition, float flRange)
|
|
IsRangedAttacker | bool IsRangedAttacker()
|
Is this unit a ranged attacker? |
IsRealHero | bool IsRealHero()
|
Is this a real hero? |
IsRooted | bool IsRooted()
|
|
IsShrine | bool IsShrine()
|
Is this a shrine? |
IsSilenced | bool IsSilenced()
|
|
IsSpeciallyDeniable | bool IsSpeciallyDeniable()
|
|
IsStunned | bool IsStunned()
|
|
IsSummoned | bool IsSummoned()
|
Is this unit summoned? |
IsTempestDouble | bool IsTempestDouble()
|
|
IsTower | bool IsTower()
|
Is this a tower? |
IsUnableToMiss | bool IsUnableToMiss()
|
|
IsUnselectable | bool IsUnselectable()
|
|
IsUntargetable | bool IsUntargetable()
|
|
Kill | void Kill(handle hAbility, handle hAttacker)
|
Kills this NPC, with the params Ability and Attacker. |
MakeIllusion | void MakeIllusion()
|
|
MakePhantomBlocker | void MakePhantomBlocker()
|
|
MakeVisibleDueToAttack | void MakeVisibleDueToAttack(int iTeam, float flRadius)
|
|
MakeVisibleToTeam | void MakeVisibleToTeam(int iTeam, float flDuration)
|
|
ManageModelChanges | void ManageModelChanges()
|
|
ModifyHealth | void ModifyHealth(int iDesiredHealthValue, handle hAbility, bool bLethal, int iAdditionalFlags)
|
Sets the health to a specific value, with optional flags or inflictors. |
MoveToNPC | void MoveToNPC(handle hNPC)
|
Move to follow a unit. |
MoveToNPCToGiveItem | void MoveToNPCToGiveItem(handle hNPC, handle hItem)
|
Give an item to another unit. |
MoveToPosition | void MoveToPosition(Vector vDest)
|
Issue a Move-To command. |
MoveToPositionAggressive | void MoveToPositionAggressive(Vector vDest)
|
Issue an Attack-Move-To command. |
MoveToTargetToAttack | void MoveToTargetToAttack(handle hTarget)
|
Move to a target to attack. |
NoHealthBar | bool NoHealthBar()
|
|
NoTeamMoveTo | bool NoTeamMoveTo()
|
|
NoTeamSelect | bool NoTeamSelect()
|
|
NoUnitCollision | bool NoUnitCollision()
|
|
NotOnMinimap | bool NotOnMinimap()
|
|
NotOnMinimapForEnemies | bool NotOnMinimapForEnemies()
|
|
NotifyWearablesOfModelChange | void NotifyWearablesOfModelChange(bool bOriginalModel)
|
|
PassivesDisabled | bool PassivesDisabled()
|
|
PatrolToPosition | void PatrolToPosition(Vector vDest)
|
Issue a Patrol-To command. |
PerformAttack | void PerformAttack(handle hTarget, bool bUseCastAttackOrb, bool bProcessProcs, bool bSkipCooldown, bool bIgnoreInvis, bool bUseProjectile, bool bFakeAttack, bool bNeverMiss)
|
Performs an attack on a target. |
PickupDroppedItem | void PickupDroppedItem(handle hItem)
|
Pick up a dropped item. |
PickupRune | void PickupRune(handle hItem)
|
Pick up a rune. |
PlayVCD | void PlayVCD(string pVCD)
|
Play a VCD on the NPC. |
ProvidesVision | bool ProvidesVision()
|
|
Purge | void Purge(bool bRemovePositiveBuffs, bool bRemoveDebuffs, bool bFrameOnly, bool bRemoveStuns, bool bRemoveExceptions)
|
(bool RemovePositiveBuffs, bool RemoveDebuffs, bool BuffsCreatedThisFrameOnly, bool RemoveStuns, bool RemoveExceptions |
ReduceMana | void ReduceMana(float flAmount)
|
Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent. |
RemoveAbility | void RemoveAbility(string pszAbilityName)
|
Remove an ability from this unit by name. |
RemoveAbilityByHandle | void RemoveAbilityByHandle(handle hAbility)
|
Remove the passed ability from this unit. |
RemoveGesture | void RemoveGesture(int nActivity)
|
Remove the given gesture activity. |
RemoveHorizontalMotionController | void RemoveHorizontalMotionController(handle hBuff)
|
|
RemoveItem | void RemoveItem(handle hItem)
|
Removes the passed item from this unit's inventory and deletes it. |
RemoveModifierByName | void RemoveModifierByName(string pszScriptName)
|
Removes a modifier. |
RemoveModifierByNameAndCaster | void RemoveModifierByNameAndCaster(string pszScriptName, handle hCaster)
|
Removes a modifier that was cast by the given caster. |
RemoveNoDraw | void RemoveNoDraw()
|
Remove the no draw flag. |
RemoveVerticalMotionController | void RemoveVerticalMotionController(handle hBuff)
|
|
RespawnUnit | void RespawnUnit()
|
Respawns the target unit if it can be respawned. |
Script_GetAttackRange | float Script_GetAttackRange()
|
Gets this unit's attack range after all modifiers. |
SellItem | void SellItem(handle hItem)
|
Sells the passed item in this unit's inventory. |
SetAbilityByIndex | void SetAbilityByIndex(handle hAbility, int iIndex)
|
Set the ability by index. |
SetAcquisitionRange | void SetAcquisitionRange(int nRange)
|
|
SetAdditionalBattleMusicWeight | void SetAdditionalBattleMusicWeight(float flWeight)
|
Combat involving this creature will have this weight added to the music calcuations. |
SetAggroTarget | void SetAggroTarget(handle hAggroTarget)
|
Set this unit's aggro target to a specified unit. |
SetAttackCapability | void SetAttackCapability(int iAttackCapabilities)
|
|
SetAttacking | void SetAttacking(handle hAttackTarget)
|
|
SetBaseAttackTime | void SetBaseAttackTime(float flBaseAttackTime)
|
|
SetBaseDamageMax | void SetBaseDamageMax(int nMax)
|
Sets the maximum base damage. |
SetBaseDamageMin | void SetBaseDamageMin(int nMin)
|
Sets the minimum base damage. |
SetBaseHealthRegen | void SetBaseHealthRegen(float flHealthRegen)
|
|
SetBaseMagicalResistanceValue | void SetBaseMagicalResistanceValue(float flMagicalResistanceValue)
|
Sets base magical armor value. |
SetBaseManaRegen | void SetBaseManaRegen(float flManaRegen)
|
|
SetBaseMaxHealth | void SetBaseMaxHealth(float flBaseMaxHealth)
|
Set a new base max health value. |
SetBaseMoveSpeed | void SetBaseMoveSpeed(int iMoveSpeed)
|
|
SetCanSellItems | void SetCanSellItems(bool bCanSell)
|
Set whether or not this unit is allowed to sell items (bCanSellItems) |
SetControllableByPlayer | void SetControllableByPlayer(int iIndex, bool bSkipAdjustingPosition)
|
Set this unit controllable by the player with the passed ID. |
SetCursorCastTarget | void SetCursorCastTarget(handle hEntity)
|
|
SetCursorPosition | void SetCursorPosition(Vector vLocation)
|
|
SetCursorTargetingNothing | void SetCursorTargetingNothing(bool bTargetingNothing)
|
|
SetCustomHealthLabel | void SetCustomHealthLabel(string pLabel, int r, int g, int b)
|
|
SetDayTimeVisionRange | void SetDayTimeVisionRange(int iRange)
|
Set the base vision range. |
SetDeathXP | void SetDeathXP(int iXPBounty)
|
Set the XP bounty on this unit. |
SetForceAttackTarget | void SetForceAttackTarget(handle hNPC)
|
|
SetForceAttackTargetAlly | void SetForceAttackTargetAlly(handle hNPC)
|
|
SetHasInventory | void SetHasInventory(bool bHasInventory)
|
Set if this unit has an inventory. |
SetHullRadius | void SetHullRadius(float flHullRadius)
|
Set the collision hull radius of this NPC. |
SetIdleAcquire | void SetIdleAcquire(bool bIdleAcquire)
|
|
SetInitialGoalEntity | void SetInitialGoalEntity(handle hGoal)
|
Sets the initial waypoint goal for this NPC. |
SetInitialGoalPosition | void SetInitialGoalPosition(Vector vPosition)
|
Set waypoint position for this NPC. |
SetMana | void SetMana(float flMana)
|
Set the mana on this unit. |
SetMaxMana | void SetMaxMana(float flMaxMana)
|
Set the maximum mana of this unit. |
SetMaximumGoldBounty | void SetMaximumGoldBounty(int iGoldBountyMax)
|
Set the maximum gold bounty for this unit. |
SetMinimumGoldBounty | void SetMinimumGoldBounty(int iGoldBountyMin)
|
Set the minimum gold bounty for this unit. |
SetModifierStackCount | void SetModifierStackCount(string pszScriptName, handle hCaster, int nStackCount)
|
Sets the stack count of a given modifier. |
SetMoveCapability | void SetMoveCapability(int iMoveCapabilities)
|
|
SetMustReachEachGoalEntity | void SetMustReachEachGoalEntity(bool must)
|
Set whether this NPC is required to reach each goal entity, rather than being allowed to unkink their path. |
SetNeverMoveToClearSpace | void SetNeverMoveToClearSpace(bool neverMoveToClearSpace)
|
If set to true, we will never attempt to move this unit to clear space, even when it unphases. |
SetNightTimeVisionRange | void SetNightTimeVisionRange(int iRange)
|
Returns the vision range after modifiers. |
SetOrigin | void SetOrigin(Vector vLocation)
|
Set the unit's origin. |
SetOriginalModel | void SetOriginalModel(string pszModelName)
|
Sets the original model of this entity, which it will tend to fall back to anytime its state changes. |
SetPhysicalArmorBaseValue | void SetPhysicalArmorBaseValue(float flPhysicalArmorValue)
|
Sets base physical armor value. |
SetRangedProjectileName | void SetRangedProjectileName(string pProjectileName)
|
|
SetRevealRadius | void SetRevealRadius(float revealRadius)
|
sets the client side map reveal radius for this unit |
SetShouldDoFlyHeightVisual | void SetShouldDoFlyHeightVisual(bool bShouldVisuallyFly)
|
|
SetStolenScepter | void SetStolenScepter(bool bStolenScepter)
|
|
SetUnitCanRespawn | void SetUnitCanRespawn(bool bCanRespawn)
|
|
SetUnitName | void SetUnitName(string pName)
|
|
ShouldIdleAcquire | bool ShouldIdleAcquire()
|
|
SpendMana | void SpendMana(float flManaSpent, handle hAbility)
|
Spend mana from this unit, this can be used for spending mana from abilities or item usage. |
StartGesture | void StartGesture(int nActivity)
|
Add the given gesture activity. |
StartGestureWithPlaybackRate | void StartGestureWithPlaybackRate(int nActivity, float flRate)
|
Add the given gesture activity with a playback rate override. |
Stop | void Stop()
|
Stop the current order. |
StopFacing | void StopFacing()
|
|
SwapAbilities | void SwapAbilities(string pAbilityName1, string pAbilityName2, bool bEnable1, bool bEnable2)
|
Swaps the slots of the two passed abilities and sets them enabled/disabled. |
SwapItems | void SwapItems(int nSlot1, int nSlot2)
|
Swap the contents of two item slots (slot1, slot2) |
TakeItem | handle TakeItem(handle hItem)
|
Removed the passed item from this unit's inventory. |
TimeUntilNextAttack | float TimeUntilNextAttack()
|
|
TriggerModifierDodge | bool TriggerModifierDodge()
|
|
TriggerSpellAbsorb | bool TriggerSpellAbsorb(handle hAbility)
|
|
TriggerSpellReflect | void TriggerSpellReflect(handle hAbility)
|
Trigger the Lotus Orb-like effect.(hAbility) |
UnHideAbilityToSlot | void UnHideAbilityToSlot(string pszAbilityName, string pszReplacedAbilityName)
|
Makes the first ability unhidden, and puts it where second ability currently is. Will do nothing if the first ability is already unhidden and in a valid slot. |
UnitCanRespawn | bool UnitCanRespawn()
|
CDOTA_BaseNPC_Hero
- extends CDOTA_BaseNPC
'
Function | Signature | Description |
---|---|---|
AddExperience | bool AddExperience(float amount, int nReason, bool bApplyBotDifficultyScaling, bool bIncrementTotal)
|
Adds experience to this unit. |
Buyback | void Buyback()
|
Spend the gold and buyback with this hero. |
CalculateStatBonus | void CalculateStatBonus()
|
Recalculate all stats after the hero gains stats. |
CanEarnGold | bool CanEarnGold()
|
Returns boolean value result of buyback gold limit time less than game time. |
ClearLastHitMultikill | void ClearLastHitMultikill()
|
Value is stored in PlayerResource. |
ClearLastHitStreak | void ClearLastHitStreak()
|
Value is stored in PlayerResource. |
ClearStreak | void ClearStreak()
|
Value is stored in PlayerResource. |
GetAbilityPoints | int GetAbilityPoints()
|
Gets the current unspent ability point's. |
GetAdditionalOwnedUnits | table GetAdditionalOwnedUnits()
|
Returns a table of all units summoned by this hero. |
GetAgility | float GetAgility()
|
Get the current agility stat of the hero. |
GetAgilityGain | float GetAgilityGain()
|
Get the agility gain of the hero when leveling up. |
GetAssists | int GetAssists()
|
Value is stored in PlayerResource. |
GetAttacker | int GetAttacker(int nIndex)
|
No Description Set |
GetBaseAgility | float GetBaseAgility()
|
Get the base agility of a hero. |
GetBaseDamageMax | int GetBaseDamageMax()
|
Hero damage is also affected by attributes. |
GetBaseDamageMin | int GetBaseDamageMin()
|
Hero damage is also affected by attributes. |
GetBaseIntellect | float GetBaseIntellect()
|
Get the base intelligence of the hero. |
GetBaseStrength | float GetBaseStrength()
|
Get the base strength of the hero. |
GetBonusDamageFromPrimaryStat | int GetBonusDamageFromPrimaryStat()
|
No Description Set |
GetBuybackCooldownTime | float GetBuybackCooldownTime()
|
Return float value for the amount of time left on cooldown for this hero's buyback. |
GetBuybackCost | int GetBuybackCost()
|
Return integer value for the gold cost of a buyback. |
GetBuybackGoldLimitTime | float GetBuybackGoldLimitTime()
|
Returns the amount of time gold gain is limited after buying back. |
GetCurrentXP | int GetCurrentXP()
|
Returns the amount of XP |
GetDeathGoldCost | int GetDeathGoldCost()
|
No Description Set |
GetDeaths | int GetDeaths()
|
Value is stored in PlayerResource. |
GetDenies | int GetDenies()
|
Value is stored in PlayerResource. |
GetGold | int GetGold()
|
Returns gold amount for the player owning this hero |
GetGoldBounty | int GetGoldBounty()
|
No Description Set |
GetHealthRegen | float GetHealthRegen()
|
Hero health regen is affected by attributes. |
GetIncreasedAttackSpeed | float GetIncreasedAttackSpeed()
|
Hero attack speed is also affected by agility. |
GetIntellect | float GetIntellect()
|
Get the current intelligence of the hero. |
GetIntellectGain | float GetIntellectGain()
|
Get the intelligence gain of the hero when leveling up. |
GetKills | int GetKills()
|
Value is stored in PlayerResource. |
GetLastHits | int GetLastHits()
|
Value is stored in PlayerResource. |
GetManaRegen | float GetManaRegen()
|
Hero mana regen is affected by attributes. |
GetMostRecentDamageTime | float GetMostRecentDamageTime()
|
No Description Set |
GetMultipleKillCount | int GetMultipleKillCount()
|
No Description Set |
GetNumAttackers | int GetNumAttackers()
|
No Description Set |
GetNumItemsInInventory | int GetNumItemsInInventory()
|
Gets how many items does the hero holds. |
GetNumItemsInStash | int GetNumItemsInStash()
|
Gets how many items does the hero has in stash. |
GetPhysicalArmorValue | float GetPhysicalArmorValue(bool bonusArmorOnly)
|
Hero armor is affected by attributes. |
GetPlayerID | int GetPlayerID()
|
Returns player ID of the player owning this hero |
GetPrimaryAttribute | int GetPrimaryAttribute()
|
Get the main attribute of the hero. 0 = strength, 1 = agility, 2 = intelligence. |
GetPrimaryStatValue | float GetPrimaryStatValue()
|
Returns the amount of stats points in the hero's main attribute. |
GetRespawnsDisabled | bool GetRespawnsDisabled()
|
Is this hero prevented from respawning? |
GetRespawnTime | float GetRespawnTime()
|
No Description Set |
GetStatsBasedManaRegen | float GetStatsBasedManaRegen()
|
Returns only the regen based on Intelligence. |
GetStreak | int GetStreak()
|
Value is stored in PlayerResource. |
GetStrength | float GetStrength()
|
No Description Set |
GetStrengthGain | float GetStrengthGain()
|
Get the strength gain of the hero when leveling up. |
GetTimeUntilRespawn | float GetTimeUntilRespawn()
|
Get how long until the hero respawns. |
GetTogglableWearable | handle GetTogglableWearable(int nSlotType)
|
Get wearable entity in slot (slot) |
HasAnyAvailableInventorySpace | bool HasAnyAvailableInventorySpace()
|
Returns true if the hero has at least one clear inventory space. |
HasFlyingVision | bool HasFlyingVision()
|
Returns true if the hero has flying vision. |
HasOwnerAbandoned | bool HasOwnerAbandoned()
|
Returns true if the player owning the hero has abandoned. |
HasRoomForItem | int HasRoomForItem(string pItemName, bool bIncludeStashCombines, bool bAllowSelling)
|
Args: const char* pItemName, bool bIncludeStashCombines, bool bAllowSelling |
HeroLevelUp | void HeroLevelUp(bool bPlayEffects)
|
Levels up the hero, true or false to play effects. |
IncrementAssists | void IncrementAssists(int iKillerID)
|
Value is stored in PlayerResource. |
IncrementDeaths | void IncrementDeaths(int iKillerID)
|
Value is stored in PlayerResource. |
IncrementDenies | void IncrementDenies()
|
Value is stored in PlayerResource. |
IncrementKills | void IncrementKills(int kills)
|
Passed ID is for the victim, killer ID is ID of the current hero. Value is stored in PlayerResource. |
IncrementLastHitMultikill | void IncrementLastHitMultikill()
|
Value is stored in PlayerResource. |
IncrementLastHits | void IncrementLastHits()
|
Value is stored in PlayerResource. |
IncrementLastHitStreak | void IncrementLastHitStreak()
|
Value is stored in PlayerResource. |
IncrementNearbyCreepDeaths | void IncrementNearbyCreepDeaths()
|
Value is stored in PlayerResource. |
IncrementStreak | void IncrementStreak()
|
Value is stored in PlayerResource. |
IsBuybackDisabledByReapersScythe | bool IsBuybackDisabledByReapersScythe()
|
No Description Set |
IsReincarnating | bool IsReincarnating()
|
No Description Set |
KilledHero | void KilledHero(handle hHero, handle hInflictor)
|
Args: Hero, Inflictor |
ModifyAgility | void ModifyAgility(float flNewAgility)
|
Adds passed value to base attribute value, then calls CalculateStatBonus. |
ModifyGold | int ModifyGold(int goldAmmt, bool reliable, int reason)
|
Gives this hero some gold. Args: int nGoldChange, bool bReliable, int reason |
ModifyIntellect | void ModifyIntellect(float flNewIntellect)
|
Adds passed value to base attribute value, then calls CalculateStatBonus. |
ModifyStrength | void ModifyStrength(float flNewStrength)
|
Adds passed value to base attribute value, then calls CalculateStatBonus. |
PerformTaunt | void PerformTaunt()
|
No Description Set |
RecordLastHit | void RecordLastHit()
|
No Description Set |
RespawnHero | void RespawnHero(bool buyback, bool IsActuallyBeingSpawnedForTheFirstTime, bool RespawnPenalty)
|
Respawn this hero. |
SetAbilityPoints | void SetAbilityPoints(int iPoints)
|
Sets the current unspent ability point's. |
SetBaseAgility | void SetBaseAgility(float flAgility)
|
Sets the base agility points for this hero. |
SetBaseIntellect | void SetBaseIntellect(float flIntellect)
|
Sets the base intelligence points for this hero. |
SetBaseStrength | void SetBaseStrength(float flStrength)
|
Sets the base strength points for this hero. |
SetBotDifficulty | void SetBotDifficulty(int nDifficulty)
|
Sets the bot's difficulty level (0 = passive, 1 = easy, 2 = medium, 3 = hard, 4 = unfair) |
SetBuybackCooldownTime | void SetBuybackCooldownTime(float flTime)
|
Sets the buyback cooldown time. |
SetBuyBackDisabledByReapersScythe | void SetBuyBackDisabledByReapersScythe(bool bBuybackDisabled)
|
Set whether this hero can buyback. |
SetBuybackGoldLimitTime | void SetBuybackGoldLimitTime(float flTime)
|
Set the amount of time gold gain is limited after buying back. |
SetCustomDeathXP | void SetCustomDeathXP(int iValue)
|
Sets a custom experience value for this hero. ![]() |
SetGold | void SetGold(int amount, bool reliableGold)
|
Sets the gold amount for the player owning this hero |
SetPlayerID | void SetPlayerID(int iPlayerID)
|
Set the player's ID. |
SetPrimaryAttribute | void SetPrimaryAttribute(int nPrimaryAttribute)
|
Set this hero's primary attribute value. |
SetRespawnPosition | void SetRespawnPosition(Vector vOrigin)
|
Set the location where the hero will respawn. |
SetRespawnsDisabled | void SetRespawnsDisabled(bool bDisableRespawns)
|
Prevent this hero from respawning. |
SetTimeUntilRespawn | void SetTimeUntilRespawn(float time)
|
Set the time remaining until the hero respawns. |
ShouldDoFlyHeightVisual | bool ShouldDoFlyHeightVisual()
|
No Description Set |
SpendGold | void SpendGold(int amount, int reason)
|
Args: int nGold, int nReason |
UnitCanRespawn | bool UnitCanRespawn()
|
No Description Set |
UpgradeAbility | void UpgradeAbility(handle hAbility)
|
This upgrades the passed ability if it exists and the hero has enough ability point's. |
WillReincarnate | bool WillReincarnate()
|
No Description Set |
CDOTA_BaseNPC_Creature
- extends CDOTA_BaseNPC
No Description Set
Function | Signature | Description |
---|---|---|
AddItemDrop | void AddItemDrop(handle hDropData)
|
Add the specified item drop to this creature |
CreatureLevelUp | void CreatureLevelUp(int iLevels)
|
Level the creature up by the specified number of levels |
IsChampion | bool IsChampion()
|
Is this unit a champion? |
SetArmorGain | void SetArmorGain(float flArmorGain)
|
Set the armor gained per level on this creature. |
SetAttackTimeGain | void SetAttackTimeGain(float flAttackTimeGain)
|
Set the attack time gained per level on this creature. |
SetBountyGain | void SetBountyGain(int nBountyGain)
|
Set the bounty gold gained per level on this creature. |
SetChampion | void SetChampion(bool bIsChampion)
|
Flag this unit as a champion creature. |
SetDamageGain | void SetDamageGain(int nDamageGain)
|
Set the damage gained per level on this creature. |
SetDisableResistanceGain | void SetDisableResistanceGain(float flDisableResistanceGain)
|
Set the disable resistance gained per level on this creature. |
SetHPGain | void SetHPGain(int nHPGain)
|
Set the hit point's gained per level on this creature. |
SetHPRegenGain | void SetHPRegenGain(float flHPRegenGain)
|
Set the hit point's regen gained per level on this creature. |
SetMagicResistanceGain | void SetMagicResistanceGain(float flMagicResistanceGain)
|
Set the magic resistance gained per level on this creature. |
SetManaGain | void SetManaGain(int nManaGain)
|
Set the mana point's gained per level on this creature. |
SetManaRegenGain | void SetManaRegenGain(float flManaRegenGain)
|
Set the mana point's regen gained per level on this creature. |
SetMoveSpeedGain | void SetMoveSpeedGain(int nMoveSpeedGain)
|
Set the move speed gained per level on this creature. |
SetXPGain | void SetXPGain(int nXPGain)
|
Set the xp reward gained per level on this creature. |
CDOTA_BaseNPC_Building
- extends CDOTA_BaseNPC
No Description Set
Function | Signature | Description |
---|---|---|
GetInvulnCount | int GetInvulnCount()
|
Get the invulnerability count for a building. |
SetInvulnCount | void SetInvulnCount(int nInvulnCount)
|
Set the invulnerability counter of this building. |
CDOTABaseGameMode
- extends CBaseEntity
No Description Set
Function | Signature | Description |
---|---|---|
ClearAbilityTuningValueFilter | void ClearAbilityTuningValueFilter()
|
Clear the script filter that controls the tuning values abilities use. |
ClearBountyRunePickupFilter | void ClearBountyRunePickupFilter()
|
Clear the script filter that controls bounty rune pickup behavior. |
ClearDamageFilter | void ClearDamageFilter()
|
Clear the script filter that controls how a unit takes damage. |
ClearExecuteOrderFilter | void ClearExecuteOrderFilter()
|
Clear the script filter that controls when a unit picks up an item. |
ClearItemAddedToInventoryFilter | void ClearItemAddedToInventoryFilter()
|
Clear the script filter that controls when a unit add an item to inventory. |
ClearModifierGainedFilter | void ClearModifierGainedFilter()
|
Clear the script filter that controls the modifier filter. |
ClearModifyExperienceFilter | void ClearModifyExperienceFilter()
|
Clear the script filter that controls how hero experience is modified. |
ClearModifyGoldFilter | void ClearModifyGoldFilter()
|
Clear the script filter that controls how hero gold is modified. |
ClearRuneSpawnFilter | void ClearRuneSpawnFilter()
|
Clear the script filter that controls what rune spawns. |
ClearTrackingProjectileFilter | void ClearTrackingProjectileFilter()
|
Clear the script filter that controls when tracking projectiles are launched. |
ClientLoadGridNav | void ClientLoadGridNav()
|
Tell clients that they need to load gridnav information. Used for things like allowing clients to identify valid locations to place buildings. |
GetAlwaysShowPlayerNames | bool GetAlwaysShowPlayerNames()
|
No Description Set |
GetAlwaysShowPlayerInventory | bool GetAlwaysShowPlayerInventory()
|
Show the player hero's inventory in the HUD, regardless of what unit is selected. |
GetAnnouncerDisabled | bool GetAnnouncerDisabled()
|
Are in-game announcers disabled? |
GetCameraDistanceOverride | float GetCameraDistanceOverride()
|
Set a different camera distance; dota default is 1134. |
GetCustomBuybackCooldownEnabled | bool GetCustomBuybackCooldownEnabled()
|
Turns on capability to define custom buyback cooldowns. |
GetCustomBuybackCostEnabled | bool GetCustomBuybackCostEnabled()
|
Turns on capability to define custom buyback costs. |
GetCustomHeroMaxLevel | int GetCustomHeroMaxLevel()
|
Allows definition of the max level heroes can achieve (default is 25). |
GetFixedRespawnTime | float GetFixedRespawnTime()
|
Gets the fixed respawn time. |
GetFogOfWarDisabled | bool GetFogOfWarDisabled()
|
Turn the fog of war on or off. |
GetGoldSoundDisabled | bool GetGoldSoundDisabled()
|
Turn the sound when gold is acquired off/on. |
GetMaximumAttackSpeed | int GetMaximumAttackSpeed()
|
Get the maximum attack speed for units. |
GetMinimumAttackSpeed | int GetMinimumAttackSpeed()
|
Get the minimum attack speed for units. |
GetRecommendedItemsDisabled | bool GetRecommendedItemsDisabled()
|
Turn the panel for showing recommended items at the shop off/on. |
GetStashPurchasingDisabled | bool GetStashPurchasingDisabled()
|
Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items. |
GetStickyItemDisabled | bool GetStickyItemDisabled()
|
Hide the sticky item in the quickbuy. |
GetTopBarTeamValuesOverride | bool GetTopBarTeamValuesOverride()
|
Override the values of the team values on the top game bar. |
GetTopBarTeamValuesVisible | bool GetTopBarTeamValuesVisible()
|
Turning on/off the team values on the top game bar. |
GetTowerBackdoorProtectionEnabled | bool GetTowerBackdoorProtectionEnabled()
|
Enables/Disables tower backdoor protection. |
GetUseCustomHeroLevels | bool GetUseCustomHeroLevels()
|
Are custom-defined XP values for hero level ups in use? |
IsBuybackEnabled | bool IsBuybackEnabled()
|
Enables or disables buyback completely. |
SetAbilityTuningValueFilter | void SetAbilityTuningValueFilter(handle hFunction, handle hContext)
|
Set a filter function to control the tuning values that abilities use. (Modify the table and Return true to use new values, return false to use the old values) |
SetAlwaysShowPlayerNames | void SetAlwaysShowPlayerNames(bool bShow)
|
No Description Set |
SetAlwaysShowPlayerInventory | void SetAlwaysShowPlayerInventory(bool bAlwaysShow)
|
Show the player hero's inventory in the HUD, regardless of what unit is selected. |
SetAnnouncerDisabled | void SetAnnouncerDisabled(bool enabled)
|
Disables the dota announcer |
SetBotsAlwaysPushWithHuman | void SetBotsAlwaysPushWithHuman(bool bAlwaysPush)
|
Set if the bots should try their best to push with a human player. |
SetBotsInLateGame | void SetBotsInLateGame(bool bLateGame)
|
Set if bots should enable their late game behavior. |
SetBotsMaxPushTier | void SetBotsMaxPushTier(int nMaxTier)
|
Set the max tier of tower that bots want to push. (-1 to disable) |
SetBotThinkingEnabled | void SetBotThinkingEnabled(bool bEnabled)
|
Enables/Disables bot thinking. Requires a very Dota PvP-like map with 3 lanes, a shop, etc. |
SetBountyRunePickupFilter | void SetBountyRunePickupFilter(handle hFunction, handle hContext)
|
Set a filter function to control the behavior when a bounty rune is picked up. (Modify the table and Return true to use new values, return false to cancel the event) |
SetBuybackEnabled | void SetBuybackEnabled(bool bEnabled)
|
Enables or disables buyback completely |
SetCameraDistanceOverride | void SetCameraDistanceOverride(float flCameraDistanceOverride)
|
Set a different camera distance; dota default is 1134. |
SetCustomBuybackCooldownEnabled | void SetCustomBuybackCooldownEnabled(bool bEnabled)
|
Turns on capability to define custom buyback cooldowns. |
SetCustomBuybackCostEnabled | void SetCustomBuybackCostEnabled(bool bEnabled)
|
Turns on capability to define custom buyback costs. |
SetCustomGameForceHero | void SetCustomGameForceHero(string pHeroName)
|
Force single-player hero selection. |
SetCustomHeroMaxLevel | void SetCustomHeroMaxLevel(int maxLevel)
|
[Deprecated] Allows definition of the max level heroes can achieve (default is 25). |
SetCustomXPRequiredToReachNextLevel | void SetCustomXPRequiredToReachNextLevel(handle hTable)
|
Allows definition of a table of hero XP values. |
SetDamageFilter | void SetDamageFilter(handle hFunction, handle hContext)
|
Set a filter function to control the behavior when a unit takes damage. (Modify the table and Return true to use new values, return false to cancel the event) |
SetDraftingBanningTimeOverride | void SetDraftingBanningTimeOverride(float time)
|
|
SetExecuteOrderFilter | void SetExecuteOrderFilter(handle hFunction, handle hContext)
|
Set a filter function to control the behavior when a unit picks up an item. (Modify the table and Return true to use new values, return false to cancel the event) |
SetFixedRespawnTime | void SetFixedRespawnTime(float time)
|
Sets the dota respawn time. -1 for default behavior |
SetFogOfWarDisabled | void SetFogOfWarDisabled(bool bDisabled)
|
Turn the fog of war on or off. |
SetFountainConstantManaRegen | void SetFountainConstantManaRegen(float flConstantManaRegen)
|
Set the constant rate that the fountain will regen mana. (-1 for default) |
SetFountainPercentageHealthRegen | void SetFountainPercentageHealthRegen(float flPercentageHealthRegen)
|
Set the percentage rate that the fountain will regen health. (-1 for default) |
SetFountainPercentageManaRegen | void SetFountainPercentageManaRegen(float flPercentageManaRegen)
|
Set the percentage rate that the fountain will regen mana. (-1 for default) |
SetGoldSoundDisabled | void SetGoldSoundDisabled(bool bDisabled)
|
Turn the sound when gold is acquired off/on. Takes a bool. |
SetHealingFilter | void SetHealingFilter(handle hFunction, handle hContext)
|
Set a filter function |
SetHUDVisible | void SetHUDVisible(int iHUDElement, bool bVisible)
|
Set the HUD element visibility. |
SetItemAddedToInventoryFilter | void SetItemAddedToInventoryFilter(handle hFunction, handle hContext)
|
Set a filter function to control when a unit add an item to inventory. |
SetLoseGoldOnDeath | void SetLoseGoldOnDeath(bool bEnabled)
|
Use to disable gold loss on death. |
SetMaximumAttackSpeed | void SetMaximumAttackSpeed(int nMaxSpeed)
|
Set the maximum attack speed for units. |
SetMinimumAttackSpeed | void SetMinimumAttackSpeed(int nMinSpeed)
|
Set the minimum attack speed for units. |
SetModifierGainedFilter | void SetModifierGainedFilter(handle hFunction, handle hContext)
|
Set a filter function to control modifiers that are gained, return false to destroy modifier. |
SetModifyExperienceFilter | void SetModifyExperienceFilter(handle hFunction, handle hContext)
|
Set a filter function to control the behavior when a hero's experience is modified. (Modify the table and Return true to use new values, return false to cancel the event) |
SetModifyGoldFilter | void SetModifyGoldFilter(handle hFunction, handle hContext)
|
Set a filter function to control the behavior when a hero's gold is modified. (Modify the table and Return true to use new values, return false to cancel the event) |
SetOverrideSelectionEntity | void SetOverrideSelectionEntity(handle unit)
|
Set an override for the default selection entity, instead of each player's hero. |
SetPauseEnabled | void SetPauseEnabled(bool bPause)
|
Allow/Disallow players to pause the game. |
SetRecommendedItemsDisabled | void SetRecommendedItemsDisabled(bool bDisabled)
|
Turn the panel for showing recommended items at the shop off/on. Takes a bool. |
SetRemoveIllusionsOnDeath | void SetRemoveIllusionsOnDeath(bool bRemove)
|
Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds. |
SetRuneEnabled | void SetRuneEnabled(int nRune, bool bEnabled)
|
Set if a given type of rune is enabled. |
SetRuneSpawnFilter | void SetRuneSpawnFilter(handle hFunction, handle hContext)
|
Set a filter function to control what rune spawns. (Modify the table and Return true to use new values, return false to cancel the event) |
SetStashPurchasingDisabled | void SetStashPurchasingDisabled(bool bDisabled)
|
Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items. |
SetStickyItemDisabled | void SetStickyItemDisabled(bool bDisabled)
|
Hide the sticky item in the quickbuy. |
SetTopBarTeamValue | void SetTopBarTeamValue(int iTeam, int nValue)
|
Set the team values on the top game bar. |
SetTopBarTeamValuesOverride | void SetTopBarTeamValuesOverride(bool bOverride)
|
Override the values of the team values on the top game bar. |
SetTopBarTeamValuesVisible | void SetTopBarTeamValuesVisible(bool bVisible)
|
Turning on/off the team values on the top game bar. |
SetTowerBackdoorProtectionEnabled | void SetTowerBackdoorProtectionEnabled(bool bEnabled)
|
Enables/Disables tower backdoor protection |
SetTrackingProjectileFilter | void SetTrackingProjectileFilter(handle hFunction, handle hContext)
|
Set a filter function to control when tracking projectiles are launched. (Modify the table and Return true to use new values, return false to cancel the event) |
SetUnseenFogOfWarEnabled | void SetUnseenFogOfWarEnabled(bool bEnabled)
|
Enable or disable unseen fog of war. When enabled parts of the map the player has never seen will be completely hidden by fog of war. |
SetUseCustomHeroLevels | void SetUseCustomHeroLevels(bool bEnabled)
|
Turn on custom-defined XP values for hero level ups. The table should be defined before switching this on. |
SetUseDefaultDOTARuneSpawnLogic | void SetUseDefaultDOTARuneSpawnLogic(bool bEnabled)
|
CDotaQuest
- extends CBaseEntity
A quest, as seen in the Tutorial and Frostivus. WARNING: Quest system is deprecated since 7.00 and will NOT work
Function | Signature | Description |
---|---|---|
AddSubquest | void AddSubquest(handle hSubquest)
|
Add a subquest to this quest |
CompleteQuest | void CompleteQuest()
|
Mark this quest complete |
GetSubquest | handle GetSubquest(int nIndex)
|
Finds a subquest from this quest by index |
GetSubquestByName | handle GetSubquestByName(string pszName)
|
Finds a subquest from this quest by name |
RemoveSubquest | void RemoveSubquest(handle hSubquest)
|
Remove a subquest from this quest |
SetTextReplaceString | void SetTextReplaceString(string pszString)
|
Set the text replace string for this quest |
SetTextReplaceValue | void SetTextReplaceValue(int valueSlot, int value)
|
Set a quest value |
CDotaSubquestBase
- extends CDotaQuest
No Description Set
Function | Signature | Description |
---|---|---|
CompleteSubquest | void CompleteSubquest()
|
Mark this subquest complete |
SetTextReplaceString | void SetTextReplaceString(string pszString)
|
Set the text replace string for this subquest |
SetTextReplaceValue | void SetTextReplaceValue(int valueSlot, int value)
|
Set a subquest value |
CPhysicsComponent
No Description Set
Function | Signature | Description |
---|---|---|
ExpensiveInstantRayCast | bool ExpensiveInstantRayCast(Vector Vector_1, Vector Vector_2, handle handle_3)
|
Do an instant (i.e. blocking) Ray Cast. Will do a handle/queue version later. Don't plan to use this for real! |
CPointTemplate
No Description Set
Function | Signature | Description |
---|---|---|
DeleteCreatedSpawnGroups | void DeleteCreatedSpawnGroups()
|
DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this. |
ForceSpawn | void ForceSpawn()
|
ForceSpawn() : Spawns all of the entities the point_template is pointing at. |
GetSpawnedEntities | handle GetSpawnedEntities()
|
GetSpawnedEntities() : Get the list of the most recent spawned entities |
SetSpawnCallback | void SetSpawnCallback(handle hCallbackFunc, handle hCallbackScope)
|
SetSpawnCallback( hCallbackFunc, hCallbackScope, hCallbackData ) : Set a callback for when the template spawns entities. The spawned entities will be passed in as an array. |
CBodyComponent
No Description Set
Function | Signature | Description |
---|---|---|
AddImpulseAtPosition | void AddImpulseAtPosition(Vector Vector_1, Vector Vector_2)
|
Apply an impulse at a worldspace position to the physics |
AddVelocity | void AddVelocity(Vector Vector_1, Vector Vector_2)
|
Add linear and angular velocity to the physics object |
DetachFromParent | void DetachFromParent()
|
Detach from its parent |
GetSequence | <unknown> GetSequence()
|
Returns the active sequence |
IsAttachedToParent | bool IsAttachedToParent()
|
Is attached to parent |
LookupSequence | <unknown> LookupSequence(string string_1)
|
Returns a sequence id given a name |
SequenceDuration | float SequenceDuration(string string_1)
|
Returns the duration in seconds of the specified sequence |
SetAngularVelocity | void SetAngularVelocity(Vector Vector_1)
|
No Description Set |
SetAnimation | void SetAnimation(string string_1)
|
Pass string for the animation to play on this model |
SetBodyGroup | void SetBodyGroup(string string_1)
|
No Description Set |
SetMaterialGroup | void SetMaterialGroup(utlstringtoken utlstringtoken_1)
|
No Description Set |
SetVelocity | void SetVelocity(Vector velocity)
|
No Description Set |
CBaseAnimating
- extends CBaseEntity
A class containing functions involved in animations
Function | Signature | Description | |
---|---|---|---|
GetAttachmentAngles | Vector GetAttachmentAngles(int iAttachment)
|
Get the attachement id's angles as a p,y,r vector | |
GetAttachmentOrigin | Vector GetAttachmentOrigin(int iAttachment)
|
Get the attachement id's origin vector | |
GetModelScale | float GetModelScale()
|
Get scale of entity's model. | |
IsSequenceFinished | bool IsSequenceFinished()
|
Ask whether the main sequence is done playing | |
ScriptLookupAttachment | int ScriptLookupAttachment(string pAttachmentName)
|
Get the named attachment id | |
SetBodygroup | void SetBodygroup(int iGroup, int iValue)
|
Sets a bodygroup | |
SetModelScale | void SetModelScale(float scale)
|
Sets the model's scale to scale, so if a unit had its model scale at 1, and you use SetModelScale(10.0), it would set the scale to 10.0. | |
SetPoseParameter | float SetPoseParameter(string szName, float fValue)
|
Set the specified pose parameter to the specified value | |
SetSkin | void SetSkin(int iSkin)
|
No Description Set | |
StopAnimation | void StopAnimation()
|
Stop the current animation by setting playback rate to 0.0. |
CBaseCombatCharacter
No Description Set
Function | Signature | Description |
---|---|---|
GetEquippedWeapons | table GetEquippedWeapons()
|
GetEquippedWeapons() : Returns an array of all the equipped weapons |
GetWeaponCount | int GetWeaponCount()
|
GetWeaponCount() : Gets the number of weapons currently equipped |
ShootPosition | Vector ShootPosition(int nHand)
|
Returns the shoot position eyes (or hand in VR). |
ProjectileManager
The projectile manager, it manages projectiles.
Function | Signature | Description | |
---|---|---|---|
ChangeTrackingProjectileSpeed | void ChangeTrackingProjectileSpeed(handle hAbility, int Speed)
|
Update speed | |
CreateLinearProjectile | int CreateLinearProjectile(table infoTable)
|
Creates a linear projectile and returns the projectile ID | |
CreateTrackingProjectile | void CreateTrackingProjectile(handle handle_1)
|
Creates a tracking projectile | |
DestroyLinearProjectile | void DestroyLinearProjectile(int int_1)
|
Destroys the linear projectile matching the argument ID | |
GetLinearProjectileVelocity | Vector GetLinearProjectileVelocity(int int_1)
|
Returns a vector representing the current velocity of the projectile. | |
ProjectileDodge | void ProjectileDodge(handle handle_1)
|
Makes the specified unit dodge projectiles |
CBaseTrigger
- extends CBaseEntity
No Description Set
Function | Signature | Description |
---|---|---|
Disable | void Disable()
|
Disable the trigger |
Enable | void Enable()
|
Enable the trigger |
IsTouching | bool IsTouching(handle hEnt)
|
Checks whether the passed entity is touching the trigger. |
CEnvEntityMaker
- extends CBaseEntity
No Description Set
Function | Signature | Description |
---|---|---|
SpawnEntity | void SpawnEntity()
|
Create an entity at the location of the maker |
SpawnEntityAtEntityOrigin | void SpawnEntityAtEntityOrigin(handle hEntity)
|
Create an entity at the location of a specified entity instance |
SpawnEntityAtLocation | void SpawnEntityAtLocation(Vector vecAlternateOrigin, Vector vecAlternateAngles)
|
Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll) |
SpawnEntityAtNamedEntityOrigin | void SpawnEntityAtNamedEntityOrigin(string pszName)
|
Create an entity at the location of a named entity |
CDOTAVoteSystem
No Description Set
Function | Signature | Description |
---|---|---|
StartVote | void StartVote(handle handle_1)
|
Starts a vote, based upon a table of parameters |
CMarkupVolumeTagged
No Description Set
Function | Signature | Description |
---|---|---|
HasTag | bool HasTag(string pszTagName)
|
Does this volume have the given tag. |
CScriptPrecacheContext
No Description Set
Function | Signature | Description |
---|---|---|
AddResource | void AddResource(string string_1)
|
Precaches a specific resource |
GetValue | table GetValue(string string_1)
|
Reads a spawn key |
CScriptKeyValues
No Description Set
Function | Signature | Description |
---|---|---|
GetValue | table GetValue(string string_1)
|
Reads a spawn key |
CScriptParticleManager
No Description Set
Global accessor variable: ParticleManager
Function | Signature | Description |
---|---|---|
CreateParticle | int CreateParticle(string particleName, int particleAttach, handle owningEntity)
|
Creates a new particle effect |
CreateParticleForPlayer | int CreateParticleForPlayer(string particleName, int particleAttach, handle owningEntity, handle owningPlayer)
|
Creates a new particle effect that only plays for the specified player |
CreateParticleForTeam | int CreateParticleForTeam(string string_1, int int_2, handle handle_3, int int_4)
|
Creates a new particle effect that only plays for the specified team |
DestroyParticle | void DestroyParticle(int particleID, bool immediately)
|
Destroys particle. |
GetParticleReplacement | string GetParticleReplacement(string string_1, handle handle_2)
|
No Description Set |
ReleaseParticleIndex | void ReleaseParticleIndex(int particleId)
|
Frees the specified particle index |
SetParticleAlwaysSimulate | void SetParticleAlwaysSimulate(int int_1)
|
No Description Set |
SetParticleControl | void SetParticleControl(int particleId, int controlIndex, Vector controlData)
|
Set the control point data for a control on a particle effect |
SetParticleControlEnt | void SetParticleControlEnt(int int_1, int int_2, handle handle_3, int int_4, string string_5, Vector Vector_6, bool bool_7)
|
No Description Set |
SetParticleControlForward | void SetParticleControlForward(int int_1, int int_2, Vector Vector_3)
|
(int nFXIndex, int nPoint, vForward) |
SetParticleControlOrientation | void SetParticleControlOrientation(int int_1, int int_2, Vector Vector_3, Vector Vector_4, Vector Vector_5)
|
(int nFXIndex, int nPoint, vForward, vRight, vUp) |
CScriptHeroList
No Description Set
Global accessor variable: HeroList
Function | Signature | Description |
---|---|---|
GetAllHeroes | table GetAllHeroes()
|
Returns all the heroes in the world |
GetHero | handle GetHero(int heroId)
|
Get the Nth hero in the Hero List |
GetHeroCount | int GetHeroCount()
|
Returns the number of heroes in the world |
CNativeOutputs
No Description Set
Function | Signature | Description |
---|---|---|
AddOutput | void AddOutput(string string_1, string string_2)
|
Add an output |
Init | void Init(int int_1)
|
Initialize with number of outputs |
CEnvProjectedTexture
- extends CBaseEntity
No Description Set
Function | Signature | Description |
---|---|---|
SetFarRange | void SetFarRange(float flRange)
|
Set light maximum range |
SetLinearAttenuation | void SetLinearAttenuation(float flAtten)
|
Set light linear attenuation value |
SetNearRange | void SetNearRange(float flRange)
|
Set light minimum range |
SetQuadraticAttenuation | void SetQuadraticAttenuation(float flAtten)
|
Set light quadratic attenuation value |
SetVolumetrics | void SetVolumetrics(bool bOn, float flIntensity, float flNoise, int nPlanes, float flPlaneOffset)
|
Turn on/off light volumetrics: bool bOn, float flIntensity, float flNoise, int nPlanes, float flPlaneOffset |
CInfoData
No Description Set
Function | Signature | Description |
---|---|---|
QueryColor | Vector QueryColor(utlstringtoken tok, Vector vDefault)
|
Query color data for this key |
QueryFloat | float QueryFloat(utlstringtoken tok, float flDefault)
|
Query float data for this key |
QueryInt | int QueryInt(utlstringtoken tok, int nDefault)
|
Query int data for this key |
QueryNumber | float QueryNumber(utlstringtoken tok, float flDefault)
|
Query number data for this key |
QueryString | string QueryString(utlstringtoken tok, string pDefault)
|
Query string data for this key |
QueryVector | Vector QueryVector(utlstringtoken tok, Vector vDefault)
|
Query vector data for this key |
CPhysicsProp
No Description Set
Function | Signature | Description |
---|---|---|
DisableMotion | void DisableMotion()
|
Enable motion for the prop |
EnableMotion | void EnableMotion()
|
Enable motion for the prop |
CDOTAGamerules
'
Global accessor variable: GameRules
Function | Signature | Description |
---|---|---|
AddMinimapDebugPoint | void AddMinimapDebugPoint(int int_1, Vector Vector_2, int int_3, int int_4, int int_5, int int_6, float float_7)
|
Add a point on the minimap. |
AddMinimapDebugPointForTeam | void AddMinimapDebugPointForTeam(int int_1, Vector Vector_2, int int_3, int int_4, int int_5, int int_6, float float_7, int int_8)
|
Add a point on the minimap for a specific team. |
BeginNightstalkerNight | void BeginNightstalkerNight(float duration)
|
Begin a temporary Nightstalker night. |
BeginTemporaryNight | void BeginTemporaryNight(float duration)
|
Begin a temporary night. |
Defeated | void Defeated()
|
Kills the ancient, etc. |
DidMatchSignoutTimeOut | bool DidMatchSignoutTimeOut()
|
true when we have waited some time after end of the game and not received signout |
EnableCustomGameSetupAutoLaunch | void EnableCustomGameSetupAutoLaunch(bool bool_1)
|
Enabled (true) or disable (false) auto launch for custom game setup. |
FinishCustomGameSetup | void FinishCustomGameSetup()
|
Indicate that the custom game setup phase is complete, and advance to the game. |
GetCustomGameDifficulty | int GetCustomGameDifficulty()
|
Returns the difficulty level of the custom game mode |
GetCustomGameTeamMaxPlayers | int GetCustomGameTeamMaxPlayers(int int_1)
|
Get whether a team is selectable during game setup |
GetDifficulty | int GetDifficulty()
|
Returns difficulty level of the custom game mode |
GetDOTATime | float GetDOTATime(bool bool_1, bool bool_2)
|
(b IncludePregameTime b IncludeNegativeTime) Returns the actual DOTA in-game clock time. |
GetDroppedItem | handle GetDroppedItem(int dropIndex)
|
Gets the Xth dropped item |
GetGameModeEntity | handle GetGameModeEntity()
|
Get the game mode entity |
GetGameSessionConfigValue | string GetGameSessionConfigValue(string string_1, string string_2)
|
Get a string value from the game session config (map options) |
GetGameTime | float GetGameTime()
|
Returns the number of seconds elapsed since map start. This time doesn't count up when the game is paused |
GetMatchSignoutComplete | bool GetMatchSignoutComplete()
|
Have we received the post match signout message that includes reward information |
GetNianFightStartTime | float GetNianFightStartTime()
|
Gets the start time for the Nian fight |
GetNianTotalDamageTaken | int GetNianTotalDamageTaken()
|
For New Bloom, get total damage taken by the Nian / Year Beast |
GetPlayerCustomGameAccountRecord | table GetPlayerCustomGameAccountRecord(int int_1)
|
(Preview/Unreleased) Gets the player's custom game account record, as it looked at the start of this session |
GetTimeOfDay | float GetTimeOfDay()
|
Get the time of day |
IsDaytime | bool IsDaytime()
|
Is it day time. |
IsGamePaused | bool IsGamePaused()
|
Returns whether the game is paused. |
IsCheatMode | bool IsCheatMode()
|
which you can use to detect lobbies with cheats enabled or sv_cheats 1. |
IsNightstalkerNight | bool IsNightstalkerNight()
|
Is it Nightstalker night? |
IsTemporaryNight | bool IsTemporaryNight()
|
Is it temporarily night? |
LockCustomGameSetupTeamAssignment | void LockCustomGameSetupTeamAssignment(bool bool_1)
|
Lock (true) or unlock (false) team assignemnt. If team assignment is locked players cannot change teams. |
MakeTeamLose | void MakeTeamLose(int team)
|
Makes ths specified team lose |
NumDroppedItems | int NumDroppedItems()
|
Returns the number of items currently dropped on the ground |
PlayerHasCustomGameHostPrivileges | bool PlayerHasCustomGameHostPrivileges(handle handle_1)
|
Whether a player has custom game host privileges (shuffle teams, etc.) |
Playtesting_UpdateAddOnKeyValues | void Playtesting_UpdateAddOnKeyValues()
|
Updates custom hero, unit and ability KeyValues in memory with the latest values from disk |
ResetDefeated | void ResetDefeated()
|
Restart after killing the ancient, etc. |
ResetToHeroSelection | void ResetToHeroSelection()
|
Restart the game at hero selection |
SendCustomMessage | void SendCustomMessage(string message, int teamID, int unknown(1?))
|
Displays a line of text in the left textbox (where usually deaths/denies/buysbacks are announced). This function takes restricted HTML as input! (<br>,<u>,<font>) |
SendCustomMessageToTeam | void SendCustomMessageToTeam(string string_1, int int_2, int int_3, int int_4)
|
Sends a message on behalf of a player to the specified team. |
SetCreepMinimapIconScale | void SetCreepMinimapIconScale(float scale)
|
Scale the creep icons on the minimap. |
SetCustomGameAccountRecordSaveFunction | void SetCustomGameAccountRecordSaveFunction(handle handle_1, handle handle_2)
|
(Preview/Unreleased) Sets a callback to handle saving custom game account records (callback is passed a Player ID and should return a flat simple table) |
SetCustomGameDifficulty | void SetCustomGameDifficulty(int int_1)
|
Set the difficulty level of the custom game mode |
SetCustomGameEndDelay | void SetCustomGameEndDelay(float delay)
|
Sets the delay time until the game ends |
SetCustomGameSetupAutoLaunchDelay | void SetCustomGameSetupAutoLaunchDelay(float float_1)
|
Set the amount of time to wait for auto launch. |
SetCustomGameSetupRemainingTime | void SetCustomGameSetupRemainingTime(float float_1)
|
Set the amount of remaining time, in seconds, for custom game setup. 0 = finish immediately, -1 = wait forever |
SetCustomGameSetupTimeout | void SetCustomGameSetupTimeout(float float_1)
|
Setup (pre-gameplay) phase timeout. 0 = instant, -1 = forever (until FinishCustomGameSetup is called) |
SetCustomGameTeamMaxPlayers | void SetCustomGameTeamMaxPlayers(int int_1, int int_2)
|
Set whether a team is selectable during game setup |
SetCustomVictoryMessage | void SetCustomVictoryMessage(string string_1)
|
Sets the victory message. |
SetCustomVictoryMessageDuration | void SetCustomVictoryMessageDuration(float duration)
|
Sets how long the custom victory message should last |
SetEventMetadataCustomTable | bool SetEventMetadataCustomTable(handle handle_1)
|
Event-only ( table hMetadataTable ). |
SetFirstBloodActive | void SetFirstBloodActive(bool bool_1)
|
Sets whether First Blood has been triggered. |
SetGameWinner | void SetGameWinner(int team)
|
Makes ths specified team win |
SetGoldPerTick | void SetGoldPerTick(int int_1)
|
DEPRECATED since 7.23 -- Set the auto gold increase per timed interval. |
SetGoldTickTime | void SetGoldTickTime(float float_1)
|
DEPRECATED since 7.23 -- Set the time interval between auto gold increases. |
SetHeroMinimapIconScale | void SetHeroMinimapIconScale(int iconSize)
|
(nMinimapHeroIconSize) - Set the hero minimap icon size. |
SetHeroRespawnEnabled | void SetHeroRespawnEnabled(bool canRespawn)
|
Control if the normal DOTA hero respawn rules apply. |
SetHeroSelectionTime | void SetHeroSelectionTime(float time)
|
Sets the amount of time players have to pick their hero. |
SetHeroSelectPenaltyTime | void SetHeroSelectPenaltyTime(float time)
|
|
SetHideKillMessageHeaders | void SetHideKillMessageHeaders(bool hide)
|
Sets whether or not the kill banners should be hidden |
SetNianFightStartTime | void SetNianFightStartTime(float float_1)
|
Sets the start time for the Nian fight |
SetOverlayHealthBarUnit | void SetOverlayHealthBarUnit(handle unit, int style)
|
Show this unit's health on the overlay health bar |
SetPostGameTime | void SetPostGameTime(float time)
|
Sets the amount of time players have between the game ending and the server disconnecting them. |
SetPreGameTime | void SetPreGameTime(float time)
|
Sets the amount of time players have between picking their hero and game start. |
SetRuneMinimapIconScale | void SetRuneMinimapIconScale(float scale)
|
Scale the rune icons on the minimap. |
SetRuneSpawnTime | void SetRuneSpawnTime(float time)
|
Sets the amount of time between rune spawns. |
SetSafeToLeave | void SetSafeToLeave(bool safeToLeave)
|
Mark this game as safe to leave. |
SetSameHeroSelectionEnabled | void SetSameHeroSelectionEnabled(bool enabled)
|
When true, players can repeatedly pick the same hero. |
SetShowcaseTime | void SetShowcaseTime(float time)
|
Set the duration of the 'radiant versus dire' showcase screen. |
SetStartingGold | void SetStartingGold(int int_1)
|
Set the starting gold amount. |
SetStrategyTime | void SetStrategyTime(float time)
|
Set the duration of the strategy phase. |
SetTimeOfDay | void SetTimeOfDay(float time)
|
Set the time of day. |
SetTreeRegrowTime | void SetTreeRegrowTime(float time)
|
Sets the tree regrow time in seconds. |
SetUseBaseGoldBountyOnHeroes | void SetUseBaseGoldBountyOnHeroes(bool bool_1)
|
Heroes will use the basic NPC functionality for determining their bounty, rather than DOTA specific formulas. |
SetUseCustomHeroXPValues | void SetUseCustomHeroXPValues(bool bool_1)
|
Allows heroes in the map to give a specific amount of XP (this value must be set). |
SetUseUniversalShopMode | void SetUseUniversalShopMode(bool enabled)
|
When true, all items are available at as long as any shop is in range, including Secret Shop items |
State_Get | int State_Get()
|
Get the current Gamerules state |
CToneMapControllerComponent
No Description Set
Function | Signature | Description |
---|---|---|
GetBloomScale | float GetBloomScale()
|
Gets bloomscale for this tonemap controller |
GetMaxExposure | float GetMaxExposure()
|
Gets max exposure for this tonemap controller |
GetMinExposure | float GetMinExposure()
|
Gets min exposure for this tonemap controller |
SetBloomScale | void SetBloomScale(float float_1)
|
Sets bloom scale for this tonemap controller |
SetMaxExposure | void SetMaxExposure(float float_1)
|
Sets max exposure for this tonemap controller |
SetMinExposure | void SetMinExposure(float float_1)
|
Sets min exposure for this tonemap controller |
CDebugOverlayScriptHelper
No Description Set
Function | Signature | Description |
---|---|---|
Axis | void Axis(Vector Vector_1, Quaternion Quaternion_2, float float_3, bool bool_4, float float_5)
|
Draws an axis. Specify origin + orientation in world space. |
Box | void Box(Vector Vector_1, Vector Vector_2, int int_3, int int_4, int int_5, int int_6, bool bool_7, float float_8)
|
Draws a world-space axis-aligned box. Specify bounds in world space. |
BoxAngles | void BoxAngles(Vector Vector_1, Vector Vector_2, Vector Vector_3, Quaternion Quaternion_4, int int_5, int int_6, int int_7, int int_8, bool bool_9, float float_10)
|
Draws an oriented box at the origin. Specify bounds in local space. |
Capsule | void Capsule(Vector Vector_1, Quaternion Quaternion_2, float float_3, float float_4, int int_5, int int_6, int int_7, int int_8, bool bool_9, float float_10)
|
Draws a capsule. Specify base in world space. |
Circle | void Circle(Vector Vector_1, Quaternion Quaternion_2, float float_3, int int_4, int int_5, int int_6, int int_7, bool bool_8, float float_9)
|
Draws a circle. Specify center in world space. |
CircleScreenOriented | void CircleScreenOriented(Vector Vector_1, float float_2, int int_3, int int_4, int int_5, int int_6, bool bool_7, float float_8)
|
Draws a circle oriented to the screen. Specify center in world space. |
Cone | void Cone(Vector Vector_1, Vector Vector_2, float float_3, float float_4, int int_5, int int_6, int int_7, int int_8, bool bool_9, float float_10)
|
Draws a wireframe cone. Specify endpoint and direction in world space. |
Cross | void Cross(Vector Vector_1, float float_2, int int_3, int int_4, int int_5, int int_6, bool bool_7, float float_8)
|
Draws a screen-aligned cross. Specify origin in world space. |
Cross3D | void Cross3D(Vector Vector_1, float float_2, int int_3, int int_4, int int_5, int int_6, bool bool_7, float float_8)
|
Draws a world-aligned cross. Specify origin in world space. |
Cross3DOriented | void Cross3DOriented(Vector Vector_1, Quaternion Quaternion_2, float float_3, int int_4, int int_5, int int_6, int int_7, bool bool_8, float float_9)
|
Draws an oriented cross. Specify origin in world space. |
DrawTickMarkedLine | void DrawTickMarkedLine(Vector Vector_1, Vector Vector_2, float float_3, int int_4, int int_5, int int_6, int int_7, int int_8, bool bool_9, float float_10)
|
Draws a dashed line. Specify endpoint's in world space. |
EntityAttachments | void EntityAttachments(ehandle ehandle_1, float float_2, float float_3)
|
Draws the attachments of the entity |
EntityAxis | void EntityAxis(ehandle ehandle_1, float float_2, bool bool_3, float float_4)
|
Draws the axis of the entity origin |
EntityBounds | void EntityBounds(ehandle ehandle_1, int int_2, int int_3, int int_4, int int_5, bool bool_6, float float_7)
|
Draws bounds of an entity |
EntitySkeleton | void EntitySkeleton(ehandle ehandle_1, float float_2)
|
Draws the skeleton of the entity |
EntityText | void EntityText(ehandle ehandle_1, int int_2, string string_3, int int_4, int int_5, int int_6, int int_7, float float_8)
|
Draws text on an entity |
FilledRect2D | void FilledRect2D(Vector2D Vector2D_1, Vector2D Vector2D_2, int int_3, int int_4, int int_5, int int_6, float float_7)
|
Draws a screen-space filled 2D rectangle. Coordinates are in pixels. |
HorzArrow | void HorzArrow(Vector Vector_1, Vector Vector_2, float float_3, int int_4, int int_5, int int_6, int int_7, bool bool_8, float float_9)
|
Draws a horizontal arrow. Specify endpoint's in world space. |
Line | void Line(Vector Vector_1, Vector Vector_2, int int_3, int int_4, int int_5, int int_6, bool bool_7, float float_8)
|
Draws a line between two point's |
Line2D | void Line2D(Vector2D Vector2D_1, Vector2D Vector2D_2, int int_3, int int_4, int int_5, int int_6, float float_7)
|
Draws a line between two point's in screenspace |
PopDebugOverlayScope | void PopDebugOverlayScope()
|
Pops the identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch. |
PushAndClearDebugOverlayScope | void PushAndClearDebugOverlayScope(utlstringtoken utlstringtoken_1)
|
Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id. |
PushDebugOverlayScope | void PushDebugOverlayScope(utlstringtoken utlstringtoken_1)
|
Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch. |
RemoveAllInScope | void RemoveAllInScope(utlstringtoken utlstringtoken_1)
|
Removes all overlays marked with a specific identifier, regardless of their lifetime. |
SolidCone | void SolidCone(Vector Vector_1, Vector Vector_2, float float_3, float float_4, int int_5, int int_6, int int_7, int int_8, bool bool_9, float float_10)
|
Draws a solid cone. Specify endpoint and direction in world space. |
Sphere | void Sphere(Vector Vector_1, float float_2, int int_3, int int_4, int int_5, int int_6, bool bool_7, float float_8)
|
Draws a wireframe sphere. Specify center in world space. |
SweptBox | void SweptBox(Vector Vector_1, Vector Vector_2, Vector Vector_3, Vector Vector_4, Quaternion Quaternion_5, int int_6, int int_7, int int_8, int int_9, float float_10)
|
Draws a swept box. Specify endpoint's in world space and the bounds in local space. |
Text | void Text(Vector Vector_1, int int_2, string string_3, float float_4, int int_5, int int_6, int int_7, int int_8, float float_9)
|
Draws 2D text. Specify origin in world space. |
Texture | void Texture(string string_1, Vector2D Vector2D_2, Vector2D Vector2D_3, int int_4, int int_5, int int_6, int int_7, Vector2D Vector2D_8, Vector2D Vector2D_9, float float_10)
|
Draws a screen-space texture. Coordinates are in pixels. |
Triangle | void Triangle(Vector Vector_1, Vector Vector_2, Vector Vector_3, int int_4, int int_5, int int_6, int int_7, bool bool_8, float float_9)
|
Draws a filled triangle. Specify vertices in world space. |
UnitTestCycleOverlayRenderType | void UnitTestCycleOverlayRenderType()
|
Toggles the overlay render type, for unit tests |
VectorText3D | void VectorText3D(Vector Vector_1, Quaternion Quaternion_2, string string_3, int int_4, int int_5, int int_6, int int_7, bool bool_8, float float_9)
|
Draws 3D text. Specify origin + orientation in world space. |
VertArrow | void VertArrow(Vector Vector_1, Vector Vector_2, float float_3, int int_4, int int_5, int int_6, int int_7, bool bool_8, float float_9)
|
Draws a vertical arrow. Specify endpoint's in world space. |
YawArrow | void YawArrow(Vector Vector_1, float float_2, float float_3, float float_4, int int_5, int int_6, int int_7, int int_8, bool bool_9, float float_10)
|
Draws a arrow associated with a specific yaw. Specify endpoint's in world space. |
CBaseFlex
- extends CBaseAnimating
Animated characters who have vertex flex capability (Hi hex6)
Function | Signature | Description |
---|---|---|
GetCurrentScene | handle GetCurrentScene()
|
Returns the instance of the oldest active scene entity (if any). |
GetSceneByIndex | handle GetSceneByIndex(int index)
|
Returns the instance of the scene entity at the specified index. |
CSceneEntity
- extends CBaseEntity
Choreographed scene which controls animation and/or dialog on one or more actors.
Function | Signature | Description |
---|---|---|
AddBroadcastTeamTarget | void AddBroadcastTeamTarget(int int_1)
|
Adds a team (by index) to the broadcast list |
Cancel | void Cancel()
|
Cancel scene playback |
EstimateLength | float EstimateLength()
|
Returns length of this scene in seconds. |
FindCamera | handle FindCamera()
|
Get the camera |
FindNamedEntity | handle FindNamedEntity(string string_1)
|
given an entity reference, such as !target, get actual entity from scene object |
IsPaused | bool IsPaused()
|
If this scene is currently paused. |
IsPlayingBack | bool IsPlayingBack()
|
If this scene is currently playing. |
LoadSceneFromString | bool LoadSceneFromString(string string_1, string string_2)
|
given a dummy scene name and a vcd string, load the scene |
RemoveBroadcastTeamTarget | void RemoveBroadcastTeamTarget(int int_1)
|
Removes a team (by index) from the broadcast list |
Start | void Start(handle handle_1)
|
Start scene playback, takes activatorEntity as param |
A class that can communicate with the gridnav, useful for seeing if stuff should be able to move
Function | Signature | Description |
---|---|---|
CanFindPath | bool CanFindPath(Vector Vector_1, Vector Vector_2)
|
Determine if it is possible to reach the specified end point from the specified start point. bool (vStart, vEnd) |
DestroyTreesAroundPoint | void DestroyTreesAroundPoint(Vector Vector_1, float float_2, bool bool_3)
|
Destroy all trees in the area(vPosition, flRadius, bFullCollision |
FindPathLength | float FindPathLength(Vector Vector_1, Vector Vector_2)
|
Find a path between the two points an return the length of the path. If there is not a path between the points the returned value will be -1. float (vStart, vEnd ) |
GetAllTreesAroundPoint | table GetAllTreesAroundPoint(Vector Vector_1, float float_2, bool bool_3)
|
Returns a table full of tree HSCRIPTS (vPosition, flRadius, bFullCollision). |
GridPosToWorldCenterX | float GridPosToWorldCenterX(int int_1)
|
Get the X position of the center of a given X index |
GridPosToWorldCenterY | float GridPosToWorldCenterY(int int_1)
|
Get the Y position of the center of a given Y index |
IsBlocked | bool IsBlocked(Vector Vector_1)
|
Checks whether the given position is blocked |
IsNearbyTree | bool IsNearbyTree(Vector position, float radius, bool bool_3)
|
|
IsTraversable | bool IsTraversable(Vector Vector_1)
|
Checks whether the given position is traversable |
RegrowAllTrees | void RegrowAllTrees()
|
|
WorldToGridPosX | int WorldToGridPosX(float float_1)
|
Get the X index of a given world X position |
WorldToGridPosY | int WorldToGridPosY(float float_1)
|
Get the Y index of a given world Y position |
Convars
No Description Set
Global accessor variable: ConVars
Function | Signature | Description |
---|---|---|
GetBool | table GetBool(string variableName)
|
GetBool(name) : returns the convar as a boolean flag. |
GetCommandClient | handle GetCommandClient()
|
GetCommandClient() : returns the player who issued this console command. |
GetDOTACommandClient | handle GetDOTACommandClient()
|
GetDOTACommandClient() : returns the DOTA player who issued this console command. |
GetFloat | table GetFloat(string name)
|
GetFloat(name) : returns the convar as a float. May return nil if no such convar. |
GetInt | table GetInt(string string_1)
|
GetInt(name) : returns the convar as an int. May return nil if no such convar. |
GetStr | table GetStr(string variableName)
|
GetStr(name) : returns the convar as a string. May return nil if no such convar. |
RegisterCommand | void RegisterCommand(string variableName, handle function, string helpText, int flags)
|
RegisterCommand(name, fn, helpString, flags) : register a console command. |
RegisterConvar | void RegisterConvar(string name, string defaultValue, string helpText, int flags)
|
RegisterConvar(name, defaultValue, helpString, flags): register a new console variable. |
SetBool | void SetBool(string variableName, bool value)
|
SetBool(name, val) : sets the value of the convar to the bool. |
SetFloat | void SetFloat(string variableName, float value)
|
SetFloat(name, val) : sets the value of the convar to the float. |
SetInt | void SetInt(string string_1, int int_2)
|
SetInt(name, val) : sets the value of the convar to the int. |
SetStr | void SetStr(string string_1, string string_2)
|
SetStr(name, val) : sets the value of the convar to the string. |
Vector
Vector class
Global accessor variable: Vector(x,y,z)
Function | Signature | Description |
---|---|---|
__add | Vector __add(Vector a, Vector b)
|
Overloaded +. Adds vectors together |
__div | Vector __div(Vector a, Vector b)
|
Overloaded /. Divides vectors |
__eq | bool __eq(Vector a, Vector b)
|
Overloaded ==. Tests for Equality |
__len | float __len()
|
Overloaded # returns the length of the vector |
__mul | Vector __mul(Vector a, Vector b)
|
Overloaded * returns the vectors multiplied together |
__sub | Vector __sub(Vector a, Vector b)
|
Overloaded -. Subtracts vectors |
__tostring | string __tostring()
|
Overloaded .. Converts vectors to strings |
__unm | Vector __unm()
|
Overloaded - operator |
Cross | Vector Cross(Vector a, Vector b)
|
Cross product of two vectors |
Dot | float Dot(Vector a, Vector b)
|
Dot product of two vectors |
Length | float Length()
|
Length of the Vector |
Length2D | float Length2D()
|
Length of the Vector in the XY plane |
Normalized | Vector Normalized()
|
Returns the vector normalized |
CDOTA_MapTree
- extends CBaseEntity
A tree on the map
Function | Signature | Description |
---|---|---|
CutDown | void CutDown(int TeamNumberKnownTo )
|
Cuts down this tree. |
CutDownRegrowAfter | void CutDownRegrowAfter(float RegrowAfter, int TeamNumberKnownTo )
|
Cuts down this tree. Regrow it after some time |
GrowBack | void GrowBack()
|
Grows back the tree if it was cut down. |
IsStanding | bool IsStanding()
|
Returns true if the tree is standing, false if it has been cut down |
CDOTA_SimpleObstruction
- extends CBaseEntity
An obstruction on the map that effects the gridnav
Function | Signature | Description |
---|---|---|
IsEnabled | bool IsEnabled()
|
Returns whether the obstruction is currently active |
SetEnabled | void SetEnabled(bool enabled, bool bForce)
|
Enable or disable the obstruction |
CDOTA_Unit_Courier
- extends CDOTA_BaseNPC
Class for Couriers
Function | Signature | Description |
---|---|---|
UpgradeToFlyingCourier | bool UpgradeToFlyingCourier()
|
Upgrade to a flying courier |
CDOTA_Ability_DataDriven
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
ApplyDataDrivenModifier | handle ApplyDataDrivenModifier(handle hCaster, handle hTarget, string pszModifierName, handle hModifierTable)
|
Gets the Attack Capabilities of the unit |
ApplyDataDrivenThinker | handle ApplyDataDrivenThinker(handle hCaster, Vector vLocation, string pszModifierName, handle hModifierTable)
|
Applies a data driven thinker at the location |
CBaseModelEntity
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
SetLightGroup | void SetLightGroup(string pLightGroup)
|
SetLightGroup( string ): Sets the light group of the entity. |
SetModel | void SetModel(string pModelName)
|
|
SetRenderColor | void SetRenderColor(int r, int g, int b)
|
SetRenderColor( r, g, b ): Sets the render color of the entity. |
SetRenderMode | void SetRenderMode(int nMode)
|
SetRenderMode( int ): Sets the render mode of the entity. |
SetSize | void SetSize(Vector mins, Vector maxs)
|
CCustomGameEventManager
No Description Set
Global accessor variable: CustomGameEventManager
Function | Signature | Description |
---|---|---|
RegisterListener | int RegisterListener(string string_1, handle handle_2)
|
( string EventName, func CallbackFunction ) - Register a callback to be called when a particular custom event arrives. Returns a listener ID that can be used to unregister later. |
Send_ServerToAllClients | void Send_ServerToAllClients(string string_1, handle handle_2)
|
( string EventName, table EventData ) |
Send_ServerToPlayer | void Send_ServerToPlayer(handle handle_1, string string_2, handle handle_3)
|
( Entity Player, string EventName, table EventData ) |
Send_ServerToTeam | void Send_ServerToTeam(int int_1, string string_2, handle handle_3)
|
( int TeamNumber, string EventName, table EventData ) |
UnregisterListener | void UnregisterListener(int int_1)
|
( int ListnerID ) - Unregister a specific listener |
CCustomNetTableManager
No Description Set
Global accessor variable: CustomNetTables
Function | Signature | Description |
---|---|---|
GetTableValue | handle GetTableValue(string string_1, string string_2)
|
( string TableName, string KeyName ) |
SetTableValue | bool SetTableValue(string string_1, string string_2, handle handle_3)
|
( string TableName, string KeyName, script_table Value ) |
CDOTATutorial
Methods shown here include code examples
Global accessor variable: Tutorial
Function | Signature | Description |
---|---|---|
AddBot | bool AddBot(string string_1, string string_2, string string_3, bool bool_4)
|
Add a computer controlled bot. |
AddQuest | void AddQuest(string string_1, int int_2, string string_3, string string_4)
|
Add a quest to the quest log |
AddShopWhitelistItem | void AddShopWhitelistItem(string string_1)
|
Add an item to the shop whitelist. |
CompleteQuest | void CompleteQuest(string string_1)
|
Complete a quest, |
CreateLocationTask | void CreateLocationTask(Vector Vector_1)
|
Add a task to move to a specific location |
EnableCreepAggroViz | void EnableCreepAggroViz(bool bool_1)
|
Alert the player when a creep becomes agro to their hero. |
EnablePlayerOffscreenTip | void EnablePlayerOffscreenTip(bool bool_1)
|
Enable the tip to alert players how to find their hero. |
EnableTowerAggroViz | void EnableTowerAggroViz(bool bool_1)
|
Alert the player when a tower becomes agro to their hero. |
FinishTutorial | void FinishTutorial()
|
End the tutorial. |
ForceGameStart | void ForceGameStart()
|
Force the start of the game. |
GetTimeFrozen | bool GetTimeFrozen()
|
Is our time frozen? |
IsItemInWhiteList | bool IsItemInWhiteList(string string_1)
|
Is this item currently in the white list. |
RemoveShopWhitelistItem | void RemoveShopWhitelistItem(string string_1)
|
Remove an item from the shop whitelist. |
SelectHero | void SelectHero(string string_1)
|
Select a hero for the local player |
SelectPlayerTeam | void SelectPlayerTeam(string string_1)
|
Select the team for the local player |
SetItemGuide | void SetItemGuide(string string_1)
|
Set the current item guide. |
SetOrModifyPlayerGold | void SetOrModifyPlayerGold(int int_1, bool bool_2)
|
Set gold amount for the tutorial player. (int) GoldAmount, (bool) true=Set, false=Modify |
SetQuickBuy | void SetQuickBuy(string string_1)
|
Set players quick buy item. |
SetShopOpen | void SetShopOpen(bool bool_1)
|
Set the shop open or closed. |
SetTimeFrozen | void SetTimeFrozen(bool bool_1)
|
Set if we should freeze time or not. |
SetTutorialConvar | void SetTutorialConvar(string string_1, string string_2)
|
Set a tutorial convar |
SetTutorialUI | void SetTutorialUI(int int_1)
|
Set the UI to use a reduced version to focus attention to specific elements. |
SetWhiteListEnabled | void SetWhiteListEnabled(bool bool_1)
|
Set if we should whitelist shop items. |
StartTutorialMode | void StartTutorialMode()
|
Initialize Tutorial Mode |
UpgradePlayerAbility | void UpgradePlayerAbility(string string_1)
|
Upgrade a specific ability for the local hero |
CDOTA_Ability_Lua
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
CastFilterResult | int CastFilterResult()
|
Determine whether an issued command with no target is valid. |
CastFilterResultLocation | int CastFilterResultLocation(Vector vLocation)
|
(Vector vLocation) Determine whether an issued command on a location is valid. |
CastFilterResultTarget | int CastFilterResultTarget(handle hTarget)
|
(HSCRIPT hTarget) Determine whether an issued command on a target is valid. |
GetAssociatedPrimaryAbilities | string GetAssociatedPrimaryAbilities()
|
Returns abilities that are stolen simultaneously, or otherwise related in functionality. |
GetAssociatedSecondaryAbilities | string GetAssociatedSecondaryAbilities()
|
Returns other abilities that are stolen simultaneously, or otherwise related in functionality. Generally hidden abilities. |
GetBehavior | int GetBehavior()
|
Return cast behavior type of this ability. |
GetCastAnimation | int GetCastAnimation()
|
Return casting animation of this ability. |
GetCastRange | int GetCastRange(Vector vLocation, handle hTarget)
|
Return cast range of this ability. |
GetChannelAnimation | int GetChannelAnimation()
|
Return channel animation of this ability. |
GetChannelledManaCostPerSecond | int GetChannelledManaCostPerSecond(int iLevel)
|
Return mana cost at the given level per second while channeling (-1 is current). |
GetChannelTime | float GetChannelTime()
|
Return the channel time of this ability. |
GetConceptRecipientType | int GetConceptRecipientType()
|
Return who hears speech when this spell is cast. |
GetCooldown | float GetCooldown(int iLevel)
|
Return cooldown of this ability. |
GetCustomCastError | string GetCustomCastError()
|
Return the error string of a failed command with no target. |
GetCustomCastErrorLocation | string GetCustomCastErrorLocation(Vector vLocation)
|
(Vector vLocation) Return the error string of a failed command on a location. |
GetCustomCastErrorTarget | string GetCustomCastErrorTarget(handle hTarget)
|
(HSCRIPT hTarget) Return the error string of a failed command on a target. |
GetGoldCost | int GetGoldCost(int iLevel)
|
Return gold cost at the given level (-1 is current). |
GetIntrinsicModifierName | string GetIntrinsicModifierName()
|
Returns the name of the modifier applied passively by this ability. |
GetManaCost | int GetManaCost(int iLevel)
|
Return mana cost at the given level (-1 is current). |
GetPlaybackRateOverride | float GetPlaybackRateOverride()
|
Return the animation rate of the cast animation. |
IsHiddenAbilityCastable | bool IsHiddenAbilityCastable()
|
Returns true if this ability can be used when not on the action panel. |
IsHiddenWhenStolen | bool IsHiddenWhenStolen()
|
Returns true if this ability is hidden when stolen by Spell Steal. |
IsRefreshable | bool IsRefreshable()
|
Returns true if this ability is refreshed by Refresher Orb. |
IsStealable | bool IsStealable()
|
Returns true if this ability can be stolen by Spell Steal. |
OnAbilityPhaseInterrupted | void OnAbilityPhaseInterrupted()
|
Cast time did not complete successfully. |
OnAbilityPhaseStart | bool OnAbilityPhaseStart()
|
Cast time begins (return true for successful cast). |
OnChannelFinish | void OnChannelFinish(bool bInterrupted)
|
(bool bInterrupted) Channel finished. |
OnChannelThink | void OnChannelThink(float flInterval)
|
(float flInterval) Channeling is taking place. |
OnHeroCalculateStatBonus | void OnHeroCalculateStatBonus()
|
Caster (hero only) gained a level, skilled an ability, or received a new stat bonus. |
OnHeroDiedNearby | void OnHeroDiedNearby(handle unit, handle attacker, handle table)
|
A hero has died in the vicinity (ie Urn), takes table of params. |
OnHeroLevelUp | void OnHeroLevelUp()
|
Caster gained a level. |
OnInventoryContentsChanged | void OnInventoryContentsChanged()
|
Caster inventory changed. |
OnItemEquipped | void OnItemEquipped(handle hItem)
|
( HSCRIPT hItem ) Caster equipped item. |
OnOwnerDied | void OnOwnerDied()
|
Caster died. |
OnOwnerSpawned | void OnOwnerSpawned()
|
Caster respawned or spawned for the first time. |
OnProjectileHit | bool OnProjectileHit(handle hTarget, Vector vLocation)
|
(HSCRIPT hTarget, Vector vLocation) Projectile has collided with a given target or reached its destination (target is invalid). |
OnProjectileHit_ExtraData | bool OnProjectileHit_ExtraData(handle hTarget, Vector vLocation, handle table)
|
(HSCRIPT hTarget, Vector vLocation, table kv) Projectile has collided with a given target or reached its destination (target is invalid). |
OnProjectileThink | void OnProjectileThink(Vector vLocation)
|
(Vector vLocation) Projectile is actively moving. |
OnProjectileThink_ExtraData | void OnProjectileThink_ExtraData(Vector vLocation, handle table)
|
(Vector vLocation, table kv ) Projectile is actively moving. |
OnSpellStart | void OnSpellStart()
|
Cast time finished, spell effects begin. |
OnStolen | void OnStolen(handle hSourceAbility)
|
( HSCRIPT hAbility ) Special behavior when stolen by Spell Steal. |
OnToggle | void OnToggle()
|
Ability is toggled on/off. |
OnUnStolen | void OnUnStolen()
|
Special behavior when lost by Spell Steal. |
OnUpgrade | void OnUpgrade()
|
Ability gained a level. |
ProcsMagicStick | bool ProcsMagicStick()
|
Returns true if this ability will generate magic stick charges for nearby enemies. |
SpeakTrigger | int SpeakTrigger()
|
Return the type of speech used. |
CDOTA_CustomUIManager
No Description Set
Global accessor variable: CustomUI
Function | Signature | Description |
---|---|---|
DynamicHud_Create | void DynamicHud_Create(int int_1, string string_2, string string_3, handle handle_4)
|
Create a new custom UI HUD element for the specified player(s). ( int PlayerID /*-1 means everyone*/, string ElementID /* should be unique */, string LayoutFileName, table DialogVariables /* can be nil */ ) |
DynamicHud_Destroy | void DynamicHud_Destroy(int int_1, string string_2)
|
Destroy a custom hud element ( int PlayerID /*-1 means everyone*/, string ElementID ) |
DynamicHud_SetDialogVariables | void DynamicHud_SetDialogVariables(int int_1, string string_2, handle handle_3)
|
Add or modify dialog variables for an existing custom hud element ( int PlayerID /*-1 means everyone*/, string ElementID, table DialogVariables ) |
DynamicHud_SetVisible | void DynamicHud_SetVisible(int int_1, string string_2, bool bool_3)
|
Toggle the visibility of an existing custom hud element ( int PlayerID /*-1 means everyone*/, string ElementID, bool Visible ) |
CPropHMDAvatar
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
GetVRHand | handle GetVRHand(int nHandID)
|
Get VR hand by ID |
CPropVRHand
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
GetAttachment | handle GetAttachment()
|
Get the attachment on this hand |
SetAttachment | void SetAttachment(handle hAttachment)
|
Set the attachment for this hand |
CDOTA_Buff
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
AddParticle | void AddParticle(int i, bool bDestroyImmediately, bool bStatusEffect, int iPriority, bool bHeroEffect, bool bOverheadEffect)
|
Assigns a particle index to a modifier using the booleans on the function. The particle disappears when the modifier is removed. |
DecrementStackCount | void DecrementStackCount()
|
Decrease this modifier's stack count by 1. |
Destroy | void Destroy()
|
Run all associated destroy functions, then remove the modifier. |
ForceRefresh | void ForceRefresh()
|
Run all associated refresh functions on this modifier as if it was re-applied. |
GetAbility | handle GetAbility()
|
Get the ability that generated the modifier. |
GetCaster | handle GetCaster()
|
Get the owner of the ability responsible for the modifier. |
GetClass | string GetClass()
|
|
GetCreationTime | float GetCreationTime()
|
Get the Dota game time that the modifier was created in. |
GetDieTime | float GetDieTime()
|
Get the Dota game time that the modifier was expires in. |
GetDuration | float GetDuration()
|
Get the initial duration of the modifier, usually set via AddModifier() by using {duration = x} as a passed table value, or by using SetDuration(). Returns -1 if no duration is set. |
GetElapsedTime | float GetElapsedTime()
|
Get how many game time seconds have elapsed since the creation of the modifier. |
GetName | string GetName()
|
|
GetParent | handle GetParent()
|
Get the unit the modifier is parented to. |
GetRemainingTime | float GetRemainingTime()
|
Get how many seconds are remaining until the modifier is going to be expired. Returns -1 if no duration is set. |
GetStackCount | int GetStackCount()
|
Get the amount of stacks in the modifier. |
IncrementStackCount | void IncrementStackCount()
|
Increase this modifier's stack count by 1. |
SetDuration | void SetDuration(float flDuration, bool bInformClient)
|
Set the duration of the modifier. Causes the animation circle to reset when the duration changes. |
SetStackCount | void SetStackCount(int iCount)
|
Sets the amount of stacks this modifier has. |
StartIntervalThink | void StartIntervalThink(float flInterval)
|
Start this modifier's think function (OnIntervalThink) with the given interval (float). To stop, call with -1. |
CDOTA_Modifier_Lua
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
AllowIllusionDuplicate | bool AllowIllusionDuplicate()
|
True/false if this modifier is active on illusions. |
DestroyOnExpire | bool DestroyOnExpire()
|
True/false if this buff is removed when the duration expires. |
GetAttributes | int GetAttributes()
|
Return the types of attributes applied to this modifier (enum value from DOTAModifierAttribute_t |
GetAuraEntityReject | bool GetAuraEntityReject(handle hEntity)
|
Return true/false if this entity should receive the aura under specific conditions |
GetAuraRadius | int GetAuraRadius()
|
Return the range around the parent this aura tries to apply its buff. |
GetAuraSearchFlags | int GetAuraSearchFlags()
|
Return the unit flags this aura respects when placing buffs. |
GetAuraSearchTeam | int GetAuraSearchTeam()
|
Return the teams this aura applies its buff to. |
GetAuraSearchType | int GetAuraSearchType()
|
Return the unit classifications this aura applies its buff to. |
GetEffectAttachType | int GetEffectAttachType()
|
Return the attach type of the particle system from GetEffectName. |
GetEffectName | string GetEffectName()
|
Return the name of the particle system that is created while this modifier is active. |
GetHeroEffectName | string GetHeroEffectName()
|
Return the name of the hero effect particle system that is created while this modifier is active. |
GetModifierAura | string GetModifierAura()
|
The name of the secondary modifier that will be applied by this modifier (if it is an aura). |
GetPriority | int GetPriority()
|
Return the priority of the modifier, see MODIFIER_PRIORITY_*. |
GetStatusEffectName | string GetStatusEffectName()
|
Return the name of the status effect particle system that is created while this modifier is active. |
GetTexture | string GetTexture()
|
Return the name of the buff icon to be shown for this modifier. |
HeroEffectPriority | int HeroEffectPriority()
|
Relationship of this hero effect with those from other buffs (higher is more likely to be shown). |
IsAura | bool IsAura()
|
True/false if this modifier is an aura. |
IsAuraActiveOnDeath | bool IsAuraActiveOnDeath()
|
True/false if this aura provides buffs when the parent is dead. |
IsDebuff | bool IsDebuff()
|
True/false if this modifier should be displayed as a debuff. |
IsHidden | bool IsHidden()
|
True/false if this modifier should be displayed on the buff bar. |
IsPermanent | bool IsPermanent()
|
True/false if this modifier is permanent. |
IsPurgable | bool IsPurgable()
|
True/false if this modifier can be purged. |
IsPurgeException | bool IsPurgeException()
|
True/false if this modifier can be purged by strong dispels. |
IsStunDebuff | bool IsStunDebuff()
|
True/false if this modifier is considered a stun for purge reasons. |
OnCreated | void OnCreated(handle table)
|
Runs when the modifier is created. |
OnDestroy | void OnDestroy()
|
Runs when the modifier is destroyed. |
OnIntervalThink | void OnIntervalThink()
|
Runs when the think interval occurs. |
OnRefresh | void OnRefresh(handle table)
|
Runs when the modifier is refreshed. |
OnRemoved | void OnRemoved()
|
Runs when the modifier is removed, before it is actually removed from the unit (OnDestroy runs after). |
OnStackCountChanged | void OnStackCountChanged(int iStackCount)
|
Runs when the modifier stack count changed. |
RemoveOnDeath | bool RemoveOnDeath()
|
True/false if this modifier is removed when the parent dies. |
StatusEffectPriority | int StatusEffectPriority()
|
Relationship of this status effect with those from other buffs (higher is more likely to be shown). |
CDOTA_Modifier_Lua_Horizontal_Motion
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
ApplyHorizontalMotionController | bool ApplyHorizontalMotionController()
|
Starts the horizontal motion controller effects for this buff. Returns true if successful. |
GetPriority | int GetPriority()
|
Get the priority |
OnHorizontalMotionInterrupted | void OnHorizontalMotionInterrupted()
|
Called when the motion gets interrupted. |
SetPriority | void SetPriority(int nMotionPriority)
|
Set the priority |
UpdateHorizontalMotion | void UpdateHorizontalMotion(handle me, float dt)
|
Perform any motion from the given interval on the NPC. |
CDOTA_Modifier_Lua_Motion_Both
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
ApplyHorizontalMotionController | bool ApplyHorizontalMotionController()
|
Starts the horizontal motion controller effects for this buff. Returns true if successful. |
ApplyVerticalMotionController | bool ApplyVerticalMotionController()
|
Starts the vertical motion controller effects for this buff. Returns true if successful. |
GetPriority | int GetPriority()
|
Get the priority |
OnHorizontalMotionInterrupted | void OnHorizontalMotionInterrupted()
|
Called when the motion gets interrupted. |
OnVerticalMotionInterrupted | void OnVerticalMotionInterrupted()
|
Called when the motion gets interrupted. |
SetPriority | void SetPriority(int nMotionPriority)
|
Set the priority |
UpdateHorizontalMotion | void UpdateHorizontalMotion(handle me, float dt)
|
Perform any motion from the given interval on the NPC. |
UpdateVerticalMotion | void UpdateVerticalMotion(handle me, float dt)
|
Perform any motion from the given interval on the NPC. |
CDOTA_Modifier_Lua_Vertical_Motion
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
ApplyVerticalMotionController | bool ApplyVerticalMotionController()
|
Starts the vertical motion controller effects for this buff. Returns true if successful. |
GetMotionPriority | int GetMotionPriority()
|
Get the priority |
OnVerticalMotionInterrupted | void OnVerticalMotionInterrupted()
|
Called when the motion gets interrupted. |
SetMotionPriority | void SetMotionPriority(int nMotionPriority)
|
Set the priority |
UpdateVerticalMotion | void UpdateVerticalMotion(handle me, float dt)
|
Perform any motion from the given interval on the NPC. |
CDOTA_Item_Lua
No Description Set
Global accessor variable: Unknown
Function | Signature | Description |
---|---|---|
CastFilterResult | int CastFilterResult()
|
Determine whether an issued command with no target is valid. |
CastFilterResultLocation | int CastFilterResultLocation(Vector vLocation)
|
(Vector vLocation) Determine whether an issued command on a location is valid. |
CastFilterResultTarget | int CastFilterResultTarget(handle hTarget)
|
(HSCRIPT hTarget) Determine whether an issued command on a target is valid. |
GetAssociatedPrimaryAbilities | string GetAssociatedPrimaryAbilities()
|
Returns abilities that are stolen simultaneously by Rubick's Spell Steal, or otherwise related in functionality. |
GetAssociatedSecondaryAbilities | string GetAssociatedSecondaryAbilities()
|
Returns other abilities that are stolen simultaneously by Rubick's Spell Steal, or otherwise related in functionality. Generally hidden abilities. |
GetBehavior | int GetBehavior()
|
Return cast behavior type of this ability. |
GetCastRange | int GetCastRange(Vector vLocation, handle hTarget)
|
Return cast range of this ability. |
GetChannelledManaCostPerSecond | int GetChannelledManaCostPerSecond(int iLevel)
|
Return mana cost at the given level per second while channeling (-1 is current). |
GetChannelTime | float GetChannelTime()
|
Return the channel time of this ability. |
GetConceptRecipientType | int GetConceptRecipientType()
|
Return who hears speech when this spell is cast. |
GetCooldown | float GetCooldown(int iLevel)
|
Return cooldown of this ability. |
GetCustomCastError | string GetCustomCastError()
|
Return the error string of a failed command with no target. |
GetCustomCastErrorLocation | string GetCustomCastErrorLocation(Vector vLocation)
|
(Vector vLocation) Return the error string of a failed command on a location. |
GetCustomCastErrorTarget | string GetCustomCastErrorTarget(handle hTarget)
|
(HSCRIPT hTarget) Return the error string of a failed command on a target. |
GetGoldCost | int GetGoldCost(int iLevel)
|
Return gold cost at the given level (-1 is current). |
GetIntrinsicModifierName | string GetIntrinsicModifierName()
|
Returns the name of the modifier applied passively by this ability. |
GetManaCost | int GetManaCost(int iLevel)
|
Return mana cost at the given level (-1 is current). |
GetPlaybackRateOverride | float GetPlaybackRateOverride()
|
Return the animation rate of the cast animation. |
IsHiddenAbilityCastable | bool IsHiddenAbilityCastable()
|
Returns true if this ability can be used when not on the action panel. |
IsHiddenWhenStolen | bool IsHiddenWhenStolen()
|
Returns true if this ability is hidden when stolen by Spell Steal. |
IsRefreshable | bool IsRefreshable()
|
Returns true if this ability is refreshed by Refresher Orb. |
IsStealable | bool IsStealable()
|
Returns true if this ability can be stolen by Spell Steal. |
OnAbilityPhaseInterrupted | void OnAbilityPhaseInterrupted()
|
Cast time did not complete successfully. |
OnAbilityPhaseStart | bool OnAbilityPhaseStart()
|
Cast time begins (return true for successful cast). |
OnChannelFinish | void OnChannelFinish(bool bInterrupted)
|
(bool bInterrupted) Channel finished. |
OnChannelThink | void OnChannelThink(float flInterval)
|
(float flInterval) Channeling is taking place. |
OnHeroCalculateStatBonus | void OnHeroCalculateStatBonus()
|
Caster (hero only) gained a level, skilled an ability, or received a new stat bonus. |
OnHeroDiedNearby | void OnHeroDiedNearby(handle unit, handle attacker, handle table)
|
A hero has died in the vicinity (ie Urn), takes table of params. |
OnHeroLevelUp | void OnHeroLevelUp()
|
Caster gained a level. |
OnInventoryContentsChanged | void OnInventoryContentsChanged()
|
Caster inventory changed. |
OnItemEquipped | void OnItemEquipped(handle hItem)
|
( HSCRIPT hItem ) Caster equipped item. |
OnOwnerDied | void OnOwnerDied()
|
Caster died. |
OnOwnerSpawned | void OnOwnerSpawned()
|
Caster respawned or spawned for the first time. |
OnProjectileHit | bool OnProjectileHit(handle hTarget, Vector vLocation)
|
(HSCRIPT hTarget, Vector vLocation) Projectile has collided with a given target or reached its destination (target is invalid). |
OnProjectileThink | void OnProjectileThink(Vector vLocation)
|
(Vector vLocation) Projectile is actively moving. |
OnSpellStart | void OnSpellStart()
|
Cast time finished, spell effects begin. |
OnStolen | void OnStolen(handle hSourceAbility)
|
( HSCRIPT hAbility ) Special behavior when stolen by Spell Steal. |
OnToggle | void OnToggle()
|
Ability is toggled on/off. |
OnUnStolen | void OnUnStolen()
|
Special behavior when lost by Spell Steal. |
OnUpgrade | void OnUpgrade()
|
Ability gained a level. |
ProcsMagicStick | bool ProcsMagicStick()
|
Returns true if this ability will generate magic stick charges for nearby enemies. |
SpeakTrigger | int SpeakTrigger()
|
Return the type of speech used. |
Constants
AbilityLearnResult_t
Name | Value | Description |
---|---|---|
ABILITY_CAN_BE_UPGRADED | 0 | |
ABILITY_CANNOT_BE_UPGRADED_NOT_UPGRADABLE | 1 | |
ABILITY_CANNOT_BE_UPGRADED_AT_MAX | 2 | |
ABILITY_CANNOT_BE_UPGRADED_REQUIRES_LEVEL | 3 | |
ABILITY_NOT_LEARNABLE | 4 |
Attributes
Name | Value | Description |
---|---|---|
DOTA_ATTRIBUTE_INVALID | -1 | |
DOTA_ATTRIBUTE_STRENGTH | 0 | Strength attribute. |
DOTA_ATTRIBUTE_AGILITY | 1 | Agility attribute. |
DOTA_ATTRIBUTE_INTELLECT | 2 | Intelligence attribute. |
DOTA_ATTRIBUTE_MAX | 3 |
DAMAGE_TYPES
Name | Value | Description |
---|---|---|
DAMAGE_TYPE_NONE | 0 | |
DAMAGE_TYPE_PHYSICAL | 1 | Physical, reduced by armor. |
DAMAGE_TYPE_MAGICAL | 2 | Magical, reduced by magic resistance. |
DAMAGE_TYPE_PURE | 4 | Pure, not reduced by anything. |
DAMAGE_TYPE_ALL | 7 | |
DAMAGE_TYPE_HP_REMOVAL | 8 | Deprecated. |
DOTAAbilitySpeakTrigger_t
Name | Value | Description |
---|---|---|
DOTA_ABILITY_SPEAK_START_ACTION_PHASE | 0 | |
DOTA_ABILITY_SPEAK_CAST | 1 |
DOTADamageFlag_t
Name | Value | Description |
---|---|---|
DOTA_DAMAGE_FLAG_NONE | 0 | |
DOTA_DAMAGE_FLAG_IGNORES_MAGIC_ARMOR | 1 | |
DOTA_DAMAGE_FLAG_IGNORES_PHYSICAL_ARMOR | 2 | |
DOTA_DAMAGE_FLAG_BYPASSES_INVULNERABILITY | 4 | |
DOTA_DAMAGE_FLAG_BYPASSES_BLOCK | 8 | |
DOTA_DAMAGE_FLAG_REFLECTION | 16 | |
DOTA_DAMAGE_FLAG_HPLOSS | 32 | |
DOTA_DAMAGE_FLAG_NO_DIRECTOR_EVENT | 64 | |
DOTA_DAMAGE_FLAG_NON_LETHAL | 128 | |
DOTA_DAMAGE_FLAG_USE_COMBAT_PROFICIENCY | 256 | |
DOTA_DAMAGE_FLAG_NO_DAMAGE_MULTIPLIERS | 512 |
DOTAHUDVisibility_t
Name | Value | Description |
---|---|---|
DOTA_HUD_VISIBILITY_TOP_TIMEOFDAY | 0 | |
DOTA_HUD_VISIBILITY_TOP_HEROES | 1 | |
DOTA_HUD_VISIBILITY_TOP_SCOREBOARD | 2 | |
DOTA_HUD_VISIBILITY_ACTION_PANEL | 3 | |
DOTA_HUD_VISIBILITY_ACTION_MINIMAP | 4 | |
DOTA_HUD_VISIBILITY_INVENTORY_PANEL | 5 | |
DOTA_HUD_VISIBILITY_INVENTORY_SHOP | 6 | |
DOTA_HUD_VISIBILITY_INVENTORY_ITEMS | 7 | |
DOTA_HUD_VISIBILITY_INVENTORY_QUICKBUY | 8 | |
DOTA_HUD_VISIBILITY_INVENTORY_COURIER | 9 | |
DOTA_HUD_VISIBILITY_INVENTORY_PROTECT | 10 | |
DOTA_HUD_VISIBILITY_INVENTORY_GOLD | 11 | |
DOTA_HUD_VISIBILITY_SHOP_SUGGESTEDITEMS | 12 | |
DOTA_HUD_VISIBILITY_COUNT | 13 |
DOTAInventoryFlags_t
Name | Value | Description |
---|---|---|
DOTA_INVENTORY_ALLOW_NONE | 0 | |
DOTA_INVENTORY_ALLOW_MAIN | 1 | |
DOTA_INVENTORY_ALLOW_STASH | 2 | |
DOTA_INVENTORY_ALL_ACCESS | 3 | |
DOTA_INVENTORY_ALLOW_DROP_ON_GROUND | 4 | |
DOTA_INVENTORY_ALLOW_DROP_AT_FOUNTAIN | 8 | |
DOTA_INVENTORY_LIMIT_DROP_ON_GROUND | 16 |
DOTAMinimapEvent_t
Name | Value | Description |
---|---|---|
DOTA_MINIMAP_EVENT_ANCIENT_UNDER_ATTACK | 2 | |
DOTA_MINIMAP_EVENT_BASE_UNDER_ATTACK | 4 | |
DOTA_MINIMAP_EVENT_BASE_GLYPHED | 8 | |
DOTA_MINIMAP_EVENT_TEAMMATE_UNDER_ATTACK | 16 | |
DOTA_MINIMAP_EVENT_TEAMMATE_TELEPORTING | 32 | |
DOTA_MINIMAP_EVENT_TEAMMATE_DIED | 64 | |
DOTA_MINIMAP_EVENT_TUTORIAL_TASK_ACTIVE | 128 | |
DOTA_MINIMAP_EVENT_TUTORIAL_TASK_FINISHED | 256 | |
DOTA_MINIMAP_EVENT_HINT_LOCATION | 512 | |
DOTA_MINIMAP_EVENT_ENEMY_TELEPORTING | 1024 | |
DOTA_MINIMAP_EVENT_CANCEL_TELEPORTING | 2048 |
DOTAModifierAttribute_t
Name | Value | Description |
---|---|---|
MODIFIER_ATTRIBUTE_NONE | 0 | |
MODIFIER_ATTRIBUTE_PERMANENT | 1 | Modifier passively remains until strictly removed. |
MODIFIER_ATTRIBUTE_MULTIPLE | 2 | Allows modifier to stack with itself. |
MODIFIER_ATTRIBUTE_IGNORE_INVULNERABLE | 4 | Allows modifier to be assigned to invulnerable entities. |
DOTAMusicStatus_t
Name | Value | Description |
---|---|---|
DOTA_MUSIC_STATUS_NONE | 0 | |
DOTA_MUSIC_STATUS_EXPLORATION | 1 | |
DOTA_MUSIC_STATUS_BATTLE | 2 | |
DOTA_MUSIC_STATUS_PRE_GAME_EXPLORATION | 3 | |
DOTA_MUSIC_STATUS_DEAD | 4 | |
DOTA_MUSIC_STATUS_LAST | 5 |
DOTASlotType_t
Name | Value | Description |
---|---|---|
DOTA_LOADOUT_TYPE_INVALID | -1 | |
DOTA_LOADOUT_TYPE_WEAPON | 0 | |
DOTA_LOADOUT_TYPE_OFFHAND_WEAPON | 1 | |
DOTA_LOADOUT_TYPE_WEAPON2 | 2 | |
DOTA_LOADOUT_TYPE_OFFHAND_WEAPON2 | 3 | |
DOTA_LOADOUT_TYPE_HEAD | 4 | |
DOTA_LOADOUT_TYPE_SHOULDER | 5 | |
DOTA_LOADOUT_TYPE_ARMS | 6 | |
DOTA_LOADOUT_TYPE_ARMOR | 7 | |
DOTA_LOADOUT_TYPE_BELT | 8 | |
DOTA_LOADOUT_TYPE_NECK | 9 | |
DOTA_LOADOUT_TYPE_BACK | 10 | |
DOTA_LOADOUT_TYPE_LEGS | 11 | |
DOTA_LOADOUT_TYPE_GLOVES | 12 | |
DOTA_LOADOUT_TYPE_TAIL | 13 | |
DOTA_LOADOUT_TYPE_MISC | 14 | |
DOTA_LOADOUT_TYPE_BODY_HEAD | 15 | |
DOTA_LOADOUT_TYPE_MOUNT | 16 | |
DOTA_LOADOUT_TYPE_SUMMON | 17 | |
DOTA_LOADOUT_TYPE_SHAPESHIFT | 18 | |
DOTA_LOADOUT_TYPE_TAUNT | 19 | |
DOTA_LOADOUT_TYPE_AMBIENT_EFFECTS | 20 | |
DOTA_LOADOUT_TYPE_ABILITY_ATTACK | 21 | |
DOTA_LOADOUT_TYPE_ABILITY1 | 22 | |
DOTA_LOADOUT_TYPE_ABILITY2 | 23 | |
DOTA_LOADOUT_TYPE_ABILITY3 | 24 | |
DOTA_LOADOUT_TYPE_ABILITY4 | 25 | |
DOTA_LOADOUT_TYPE_ABILITY_ULTIMATE | 26 | |
DOTA_LOADOUT_TYPE_VOICE | 27 | |
DOTA_LOADOUT_TYPE_ACTION_ITEM | 28 | |
DOTA_PLAYER_LOADOUT_START | 28 | |
DOTA_LOADOUT_TYPE_COURIER | 29 | |
DOTA_LOADOUT_TYPE_ANNOUNCER | 30 | |
DOTA_LOADOUT_TYPE_MEGA_KILLS | 31 | |
DOTA_LOADOUT_TYPE_MUSIC | 32 | |
DOTA_LOADOUT_TYPE_WARD | 33 | |
DOTA_LOADOUT_TYPE_HUD_SKIN | 34 | |
DOTA_LOADOUT_TYPE_LOADING_SCREEN | 35 | |
DOTA_LOADOUT_TYPE_WEATHER | 36 | |
DOTA_LOADOUT_TYPE_HEROIC_STATUE | 37 | |
DOTA_LOADOUT_TYPE_MULTIKILL_BANNER | 38 | |
DOTA_LOADOUT_TYPE_CURSOR_PACK | 39 | |
DOTA_LOADOUT_TYPE_TELEPORT_EFFECT | 40 | |
DOTA_LOADOUT_TYPE_BLINK_EFFECT | 41 | |
DOTA_LOADOUT_TYPE_TEAM_SHOWCASE | 42 | |
DOTA_PLAYER_LOADOUT_END | 42 | |
DOTA_LOADOUT_TYPE_NONE | 43 | |
DOTA_LOADOUT_TYPE_COUNT | 44 |
DOTASpeechType_t
Name | Value | Description |
---|---|---|
DOTA_SPEECH_USER_INVALID | 0 | |
DOTA_SPEECH_USER_SINGLE | 1 | |
DOTA_SPEECH_USER_TEAM | 2 | |
DOTA_SPEECH_USER_TEAM_NEARBY | 3 | |
DOTA_SPEECH_USER_NEARBY | 4 | |
DOTA_SPEECH_USER_ALL | 5 | |
DOTA_SPEECH_GOOD_TEAM | 6 | |
DOTA_SPEECH_BAD_TEAM | 7 | |
DOTA_SPEECH_SPECTATOR | 8 | |
DOTA_SPEECH_RECIPIENT_TYPE_MAX | 9 |
DOTATeam_t
Name | Value | Description |
---|---|---|
DOTA_TEAM_FIRST | 2 | |
DOTA_TEAM_GOODGUYS | 2 | Radiant team. |
DOTA_TEAM_BADGUYS | 3 | Dire team. |
DOTA_TEAM_NEUTRALS | 4 | Neutral. |
DOTA_TEAM_NOTEAM | 5 | |
DOTA_TEAM_CUSTOM_1 | 6 | |
DOTA_TEAM_CUSTOM_MIN | 6 | |
DOTA_TEAM_CUSTOM_2 | 7 | |
DOTA_TEAM_CUSTOM_3 | 8 | |
DOTA_TEAM_CUSTOM_COUNT | 8 | |
DOTA_TEAM_CUSTOM_4 | 9 | |
DOTA_TEAM_CUSTOM_5 | 10 | |
DOTA_TEAM_CUSTOM_6 | 11 | |
DOTA_TEAM_CUSTOM_7 | 12 | |
DOTA_TEAM_CUSTOM_8 | 13 | |
DOTA_TEAM_CUSTOM_MAX | 13 | |
DOTA_TEAM_COUNT | 14 |
DOTAUnitAttackCapability_t
Name | Value | Description |
---|---|---|
DOTA_UNIT_CAP_NO_ATTACK | 0 | Unit is unable to attack in any way. |
DOTA_UNIT_CAP_MELEE_ATTACK | 1 | Unit attacks are classified as melee (no uphill miss chance, attacks on enemies that are 350 over the attack range automatically miss). |
DOTA_UNIT_CAP_RANGED_ATTACK | 2 | Unit attacks are classified as ranged (can miss on uphill, disjointable, has projectile). |
DOTAUnitMoveCapability_t
Name | Value | Description |
---|---|---|
DOTA_UNIT_CAP_MOVE_NONE | 0 | Unit cannot move in any way. |
DOTA_UNIT_CAP_MOVE_GROUND | 1 | Unit move while being obstructed by the terrain. |
DOTA_UNIT_CAP_MOVE_FLY | 2 | Unit ignores terrain. |
DOTA_UNIT_ORDERS
Name | Value | Description |
---|---|---|
DOTA_UNIT_ORDER_NONE | 0 | |
DOTA_UNIT_ORDER_MOVE_TO_POSITION | 1 | |
DOTA_UNIT_ORDER_MOVE_TO_TARGET | 2 | |
DOTA_UNIT_ORDER_ATTACK_MOVE | 3 | |
DOTA_UNIT_ORDER_ATTACK_TARGET | 4 | |
DOTA_UNIT_ORDER_CAST_POSITION | 5 | |
DOTA_UNIT_ORDER_CAST_TARGET | 6 | |
DOTA_UNIT_ORDER_CAST_TARGET_TREE | 7 | |
DOTA_UNIT_ORDER_CAST_NO_TARGET | 8 | |
DOTA_UNIT_ORDER_CAST_TOGGLE | 9 | |
DOTA_UNIT_ORDER_HOLD_POSITION | 10 | |
DOTA_UNIT_ORDER_TRAIN_ABILITY | 11 | |
DOTA_UNIT_ORDER_DROP_ITEM | 12 | |
DOTA_UNIT_ORDER_GIVE_ITEM | 13 | |
DOTA_UNIT_ORDER_PICKUP_ITEM | 14 | |
DOTA_UNIT_ORDER_PICKUP_RUNE | 15 | |
DOTA_UNIT_ORDER_PURCHASE_ITEM | 16 | |
DOTA_UNIT_ORDER_SELL_ITEM | 17 | |
DOTA_UNIT_ORDER_DISASSEMBLE_ITEM | 18 | |
DOTA_UNIT_ORDER_MOVE_ITEM | 19 | |
DOTA_UNIT_ORDER_CAST_TOGGLE_AUTO | 20 | |
DOTA_UNIT_ORDER_STOP | 21 | |
DOTA_UNIT_ORDER_TAUNT | 22 | |
DOTA_UNIT_ORDER_BUYBACK | 23 | |
DOTA_UNIT_ORDER_GLYPH | 24 | |
DOTA_UNIT_ORDER_EJECT_ITEM_FROM_STASH | 25 | |
DOTA_UNIT_ORDER_CAST_RUNE | 26 |
DOTA_ABILITY_BEHAVIOR
Name | Value | Description |
---|---|---|
DOTA_ABILITY_BEHAVIOR_NONE | 0 | |
DOTA_ABILITY_BEHAVIOR_HIDDEN | 1 | Ability doesn't appear on the HUD. |
DOTA_ABILITY_BEHAVIOR_PASSIVE | 2 | Ability is classified as passive, and cannot be pressed. |
DOTA_ABILITY_BEHAVIOR_NO_TARGET | 4 | Ability fires immediately when pressed. |
DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | 8 | Ability needs a unit target to be cast. |
DOTA_ABILITY_BEHAVIOR_POINT | 16 | Ability needs a target point to be cast. |
DOTA_ABILITY_BEHAVIOR_AOE | 32 | Ability is considered an AoE ability, respecting "AOERadius" KV when drawing the AoE overlay. |
DOTA_ABILITY_BEHAVIOR_NOT_LEARNABLE | 64 | Ability cannot be skilled. |
DOTA_ABILITY_BEHAVIOR_CHANNELLED | 128 | Ability is considered a channeling ability. |
DOTA_ABILITY_BEHAVIOR_ITEM | 256 | |
DOTA_ABILITY_BEHAVIOR_TOGGLE | 512 | Ability can be toggled on and off. |
DOTA_ABILITY_BEHAVIOR_DIRECTIONAL | 1024 | |
DOTA_ABILITY_BEHAVIOR_IMMEDIATE | 2048 | Ability ignores cast points and is fired as soon as the skill is pressed. |
DOTA_ABILITY_BEHAVIOR_AUTOCAST | 4096 | Ability can be set to auto cast. |
DOTA_ABILITY_BEHAVIOR_OPTIONAL_UNIT_TARGET | 8192 | |
DOTA_ABILITY_BEHAVIOR_OPTIONAL_POINT | 16384 | |
DOTA_ABILITY_BEHAVIOR_OPTIONAL_NO_TARGET | 32768 | |
DOTA_ABILITY_BEHAVIOR_AURA | 65536 | Ability is considered an aura. |
DOTA_ABILITY_BEHAVIOR_ATTACK | 131072 | |
DOTA_ABILITY_BEHAVIOR_DONT_RESUME_MOVEMENT | 262144 | After casting that ability, the caster won't resume its last order. |
DOTA_ABILITY_BEHAVIOR_ROOT_DISABLES | 524288 | Ability cannot be cast while rooted. |
DOTA_ABILITY_BEHAVIOR_UNRESTRICTED | 1048576 | |
DOTA_ABILITY_BEHAVIOR_IGNORE_PSEUDO_QUEUE | 2097152 | |
DOTA_ABILITY_BEHAVIOR_IGNORE_CHANNEL | 4194304 | |
DOTA_ABILITY_BEHAVIOR_DONT_CANCEL_MOVEMENT | 8388608 | Ability doesn't stop the caster to be used. |
DOTA_ABILITY_BEHAVIOR_DONT_ALERT_TARGET | 16777216 | |
DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK | 33554432 | After using ability, caster won't proceed to attack the nearby enemy (even if set otherwise in options) |
DOTA_ABILITY_BEHAVIOR_NORMAL_WHEN_STOLEN | 67108864 | |
DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING | 134217728 | Ability ignores backswing animation. |
DOTA_ABILITY_BEHAVIOR_RUNE_TARGET | 268435456 | Ability can target runes. |
DOTA_ABILITY_BEHAVIOR_DONT_CANCEL_CHANNEL | 536870912 | Ability can be used without cancelling the current channel. |
DOTA_ABILITY_LAST_BEHAVIOR | 536870912 |
DOTA_HeroPickState
Name | Value | Description |
---|---|---|
DOTA_HEROPICK_STATE_NONE | 0 | |
DOTA_HEROPICK_STATE_AP_SELECT | 1 | |
DOTA_HEROPICK_STATE_SD_SELECT | 2 | |
DOTA_HEROPICK_STATE_INTRO_SELECT | 3 | |
DOTA_HEROPICK_STATE_RD_SELECT | 4 | |
DOTA_HEROPICK_STATE_CM_INTRO | 5 | |
DOTA_HEROPICK_STATE_CM_CAPTAINPICK | 6 | |
DOTA_HEROPICK_STATE_CM_BAN1 | 7 | |
DOTA_HEROPICK_STATE_CM_BAN2 | 8 | |
DOTA_HEROPICK_STATE_CM_BAN3 | 9 | |
DOTA_HEROPICK_STATE_CM_BAN4 | 10 | |
DOTA_HEROPICK_STATE_CM_BAN5 | 11 | |
DOTA_HEROPICK_STATE_CM_BAN6 | 12 | |
DOTA_HEROPICK_STATE_CM_BAN7 | 13 | |
DOTA_HEROPICK_STATE_CM_BAN8 | 14 | |
DOTA_HEROPICK_STATE_CM_BAN9 | 15 | |
DOTA_HEROPICK_STATE_CM_BAN10 | 16 | |
DOTA_HEROPICK_STATE_CM_SELECT1 | 17 | |
DOTA_HEROPICK_STATE_CM_SELECT2 | 18 | |
DOTA_HEROPICK_STATE_CM_SELECT3 | 19 | |
DOTA_HEROPICK_STATE_CM_SELECT4 | 20 | |
DOTA_HEROPICK_STATE_CM_SELECT5 | 21 | |
DOTA_HEROPICK_STATE_CM_SELECT6 | 22 | |
DOTA_HEROPICK_STATE_CM_SELECT7 | 23 | |
DOTA_HEROPICK_STATE_CM_SELECT8 | 24 | |
DOTA_HEROPICK_STATE_CM_SELECT9 | 25 | |
DOTA_HEROPICK_STATE_CM_SELECT10 | 26 | |
DOTA_HEROPICK_STATE_CM_PICK | 27 | |
DOTA_HEROPICK_STATE_AR_SELECT | 28 | |
DOTA_HEROPICK_STATE_MO_SELECT | 29 | |
DOTA_HEROPICK_STATE_FH_SELECT | 30 | |
DOTA_HEROPICK_STATE_CD_INTRO | 31 | |
DOTA_HEROPICK_STATE_CD_CAPTAINPICK | 32 | |
DOTA_HEROPICK_STATE_CD_BAN1 | 33 | |
DOTA_HEROPICK_STATE_CD_BAN2 | 34 | |
DOTA_HEROPICK_STATE_CD_BAN3 | 35 | |
DOTA_HEROPICK_STATE_CD_BAN4 | 36 | |
DOTA_HEROPICK_STATE_CD_BAN5 | 37 | |
DOTA_HEROPICK_STATE_CD_BAN6 | 38 | |
DOTA_HEROPICK_STATE_CD_SELECT1 | 39 | |
DOTA_HEROPICK_STATE_CD_SELECT2 | 40 | |
DOTA_HEROPICK_STATE_CD_SELECT3 | 41 | |
DOTA_HEROPICK_STATE_CD_SELECT4 | 42 | |
DOTA_HEROPICK_STATE_CD_SELECT5 | 43 | |
DOTA_HEROPICK_STATE_CD_SELECT6 | 44 | |
DOTA_HEROPICK_STATE_CD_SELECT7 | 45 | |
DOTA_HEROPICK_STATE_CD_SELECT8 | 46 | |
DOTA_HEROPICK_STATE_CD_SELECT9 | 47 | |
DOTA_HEROPICK_STATE_CD_SELECT10 | 48 | |
DOTA_HEROPICK_STATE_CD_PICK | 49 | |
DOTA_HEROPICK_STATE_BD_SELECT | 50 | |
DOTA_HERO_PICK_STATE_ABILITY_DRAFT_SELECT | 51 | |
DOTA_HERO_PICK_STATE_ARDM_SELECT | 52 | |
DOTA_HEROPICK_STATE_ALL_DRAFT_SELECT | 53 | |
DOTA_HERO_PICK_STATE_CUSTOMGAME_SELECT | 54 | |
DOTA_HEROPICK_STATE_COUNT | 55 |
DOTA_MOTION_CONTROLLER_PRIORITY
Name | Value | Description |
---|---|---|
DOTA_MOTION_CONTROLLER_PRIORITY_LOWEST | 0 | |
DOTA_MOTION_CONTROLLER_PRIORITY_LOW | 1 | |
DOTA_MOTION_CONTROLLER_PRIORITY_MEDIUM | 2 | |
DOTA_MOTION_CONTROLLER_PRIORITY_HIGH | 3 | |
DOTA_MOTION_CONTROLLER_PRIORITY_HIGHEST | 4 |
DOTA_RUNES
Name | Value | Description |
---|---|---|
DOTA_RUNE_INVALID | -1 | |
DOTA_RUNE_DOUBLEDAMAGE | 0 | |
DOTA_RUNE_HASTE | 1 | |
DOTA_RUNE_ILLUSION | 2 | |
DOTA_RUNE_INVISIBILITY | 3 | |
DOTA_RUNE_REGENERATION | 4 | |
DOTA_RUNE_BOUNTY | 5 | |
DOTA_RUNE_COUNT | 6 | |
DOTA_RUNE_HAUNTED | 7 | |
DOTA_RUNE_SPOOKY | 8 | |
DOTA_RUNE_RAPIER | 9 | |
DOTA_RUNE_TURBO | 10 | |
DOTA_RUNE_MYSTERY | 11 | |
DOTA_HALLOWEEN_RUNE_COUNT | 12 |
DOTA_UNIT_TARGET_FLAGS
Name | Value | Description |
---|---|---|
DOTA_UNIT_TARGET_FLAG_NONE | 0 | No special flag rules. |
DOTA_UNIT_TARGET_FLAG_RANGED_ONLY | 2 | Targets only ranged units and heroes. |
DOTA_UNIT_TARGET_FLAG_MELEE_ONLY | 4 | Targets only melee units and heroes. |
DOTA_UNIT_TARGET_FLAG_DEAD | 8 | Targets dead units and heroes as well. |
DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | 16 | Targets magic immune enemies as well. |
DOTA_UNIT_TARGET_FLAG_NOT_MAGIC_IMMUNE_ALLIES | 32 | Targets non-magic immune allies as well. |
DOTA_UNIT_TARGET_FLAG_INVULNERABLE | 64 | Targets invulnerable units/heroes as well. |
DOTA_UNIT_TARGET_FLAG_FOW_VISIBLE | 128 | Targets only those that are visible through the fog of war. |
DOTA_UNIT_TARGET_FLAG_NO_INVIS | 256 | Targets only those that are not invisible. |
DOTA_UNIT_TARGET_FLAG_NOT_ANCIENTS | 512 | Targets only those that are not considered ancients. |
DOTA_UNIT_TARGET_FLAG_PLAYER_CONTROLLED | 1024 | Targets player controlled units (ignores the rest of basic units). |
DOTA_UNIT_TARGET_FLAG_NOT_DOMINATED | 2048 | Targets only those that are not being dominated. |
DOTA_UNIT_TARGET_FLAG_NOT_SUMMONED | 4096 | Targets only those that are not summoned creatures. |
DOTA_UNIT_TARGET_FLAG_NOT_ILLUSIONS | 8192 | Targets only those that are not illusions. |
DOTA_UNIT_TARGET_FLAG_NOT_ATTACK_IMMUNE | 16384 | Targets only those that are not immune to attacks. |
DOTA_UNIT_TARGET_FLAG_MANA_ONLY | 32768 | Targets only those that has a mana bar. |
DOTA_UNIT_TARGET_FLAG_CHECK_DISABLE_HELP | 65536 | |
DOTA_UNIT_TARGET_FLAG_NOT_CREEP_HERO | 131072 | Targets only those that are not considered creep heroes. |
DOTA_UNIT_TARGET_FLAG_OUT_OF_WORLD | 262144 | Targets units/heroes that are hidden as well. |
DOTA_UNIT_TARGET_FLAG_NOT_NIGHTMARED | 524288 | Targets only those that are not nightmared. |
DOTA_UNIT_TARGET_TEAM
Name | Value | Description |
---|---|---|
DOTA_UNIT_TARGET_TEAM_NONE | 0 | |
DOTA_UNIT_TARGET_TEAM_FRIENDLY | 1 | Targets all those that are in the same team as the team that was declared the source. |
DOTA_UNIT_TARGET_TEAM_ENEMY | 2 | Targets all those that are not in the same team as the team that was declared the source. |
DOTA_UNIT_TARGET_TEAM_BOTH | 3 | Targets all entities from every team. |
DOTA_UNIT_TARGET_TEAM_CUSTOM | 4 |
DOTA_UNIT_TARGET_TYPE
Name | Value | Description |
---|---|---|
DOTA_UNIT_TARGET_NONE | 0 | |
DOTA_UNIT_TARGET_HERO | 1 | Targets heroes. |
DOTA_UNIT_TARGET_CREEP | 2 | Targets creeps. |
DOTA_UNIT_TARGET_BUILDING | 4 | Targets buildings. |
DOTA_UNIT_TARGET_MECHANICAL | 8 | Deprecated. |
DOTA_UNIT_TARGET_COURIER | 16 | Targets couriers. |
DOTA_UNIT_TARGET_BASIC | 18 | Targets units. (not necessarily creeps) |
DOTA_UNIT_TARGET_OTHER | 32 | |
DOTA_UNIT_TARGET_ALL | 63 | Targets everything (including buildings, couriers, Shrines etc) |
DOTA_UNIT_TARGET_TREE | 64 | Targets trees. |
DOTA_UNIT_TARGET_CUSTOM | 128 |
EDOTA_ModifyGold_Reason
Name | Value | Description |
---|---|---|
DOTA_ModifyGold_Unspecified | 0 | |
DOTA_ModifyGold_Death | 1 | |
DOTA_ModifyGold_Buyback | 2 | |
DOTA_ModifyGold_PurchaseConsumable | 3 | |
DOTA_ModifyGold_PurchaseItem | 4 | |
DOTA_ModifyGold_AbandonedRedistribute | 5 | |
DOTA_ModifyGold_SellItem | 6 | |
DOTA_ModifyGold_AbilityCost | 7 | |
DOTA_ModifyGold_CheatCommand | 8 | |
DOTA_ModifyGold_SelectionPenalty | 9 | |
DOTA_ModifyGold_GameTick | 10 | |
DOTA_ModifyGold_Building | 11 | |
DOTA_ModifyGold_HeroKill | 12 | |
DOTA_ModifyGold_CreepKill | 13 | |
DOTA_ModifyGold_RoshanKill | 14 | |
DOTA_ModifyGold_CourierKill | 15 | |
DOTA_ModifyGold_SharedGold | 16 |
EDOTA_ModifyXP_Reason
Name | Value | Description |
---|---|---|
DOTA_ModifyXP_Unspecified | 0 | |
DOTA_ModifyXP_HeroKill | 1 | |
DOTA_ModifyXP_CreepKill | 2 | |
DOTA_ModifyXP_RoshanKill | 3 |
Name | Value | Description |
---|---|---|
ITEM_FULLY_SHAREABLE | 0 | |
ITEM_PARTIALLY_SHAREABLE | 1 | |
ITEM_NOT_SHAREABLE | 2 |
LuaModifierType
Name | Value | Description |
---|---|---|
LUA_MODIFIER_MOTION_NONE | 0 | |
LUA_MODIFIER_MOTION_HORIZONTAL | 1 | |
LUA_MODIFIER_MOTION_VERTICAL | 2 | |
LUA_MODIFIER_MOTION_BOTH | 3 | |
LUA_MODIFIER_INVALID | 4 |
ModifierPriority
Name | Value | Description |
---|---|---|
MODIFIER_PRIORITY_LOW | 0 | |
MODIFIER_PRIORITY_NORMAL | 1 | |
MODIFIER_PRIORITY_HIGH | 2 | |
MODIFIER_PRIORITY_ULTRA | 3 | |
MODIFIER_PRIORITY_SUPER_ULTRA | 4 |
ParticleAttachment_t
Name | Value | Description |
---|---|---|
PATTACH_INVALID | -1 | |
PATTACH_ABSORIGIN | 0 | Attaches the particle to the an origin. |
PATTACH_ABSORIGIN_FOLLOW | 1 | Attaches the particle to an origin, and causes it to follow the unit that is considered the source of the particle. |
PATTACH_CUSTOMORIGIN | 2 | Attaches the particle to a custom origin. (Requires passing a vector to the Control points) |
PATTACH_CUSTOMORIGIN_FOLLOW | 3 | |
PATTACH_POINT | 4 | |
PATTACH_POINT_FOLLOW | 5 | |
PATTACH_EYES_FOLLOW | 6 | Attaches the particle to the "eyes" of the entity. |
PATTACH_OVERHEAD_FOLLOW | 7 | Attaches the particle to be set above the head of the entity. |
PATTACH_WORLDORIGIN | 8 | Attaches the particle to the ground. |
PATTACH_ROOTBONE_FOLLOW | 9 | |
PATTACH_RENDERORIGIN_FOLLOW | 10 | |
PATTACH_MAIN_VIEW | 11 | |
PATTACH_WATERWAKE | 12 | |
MAX_PATTACH_TYPES | 13 |
UnitFilterResult
Name | Value | Description |
---|---|---|
UF_SUCCESS | 0 | |
UF_FAIL_FRIENDLY | 1 | |
UF_FAIL_ENEMY | 2 | |
UF_FAIL_HERO | 3 | |
UF_FAIL_CONSIDERED_HERO | 4 | |
UF_FAIL_CREEP | 5 | |
UF_FAIL_BUILDING | 6 | |
UF_FAIL_MECHANICAL | 7 | |
UF_FAIL_COURIER | 8 | |
UF_FAIL_OTHER | 9 | |
UF_FAIL_ANCIENT | 10 | |
UF_FAIL_ILLUSION | 11 | |
UF_FAIL_SUMMONED | 12 | |
UF_FAIL_DOMINATED | 13 | |
UF_FAIL_MELEE | 14 | |
UF_FAIL_RANGED | 15 | |
UF_FAIL_DEAD | 16 | |
UF_FAIL_MAGIC_IMMUNE_ALLY | 17 | |
UF_FAIL_MAGIC_IMMUNE_ENEMY | 18 | |
UF_FAIL_INVULNERABLE | 19 | |
UF_FAIL_IN_FOW | 20 | |
UF_FAIL_INVISIBLE | 21 | |
UF_FAIL_NOT_PLAYER_CONTROLLED | 22 | |
UF_FAIL_ATTACK_IMMUNE | 23 | |
UF_FAIL_CUSTOM | 24 | |
UF_FAIL_INVALID_LOCATION | 25 | |
UF_FAIL_DISABLE_HELP | 26 | |
UF_FAIL_OUT_OF_WORLD | 27 | |
UF_FAIL_NIGHTMARED | 28 |
modifierstate
Name | Value | Description |
---|---|---|
MODIFIER_STATE_ROOTED | 0 | Set to true to cause the parent to become rooted. |
MODIFIER_STATE_DISARMED | 1 | Set to true to cause the parent to become disarmed. |
MODIFIER_STATE_ATTACK_IMMUNE | 2 | Set to true to cause the parent to become attack immune. |
MODIFIER_STATE_SILENCED | 3 | Set to true to cause the parent to become silenced. |
MODIFIER_STATE_MUTED | 4 | Set to true to cause the parent to become muted. |
MODIFIER_STATE_STUNNED | 5 | Set to true to cause the parent to become stunned. |
MODIFIER_STATE_HEXED | 6 | Set to true to cause the parent to become hexed. |
MODIFIER_STATE_INVISIBLE | 7 | Set to true to cause the parent to become invisible. |
MODIFIER_STATE_INVULNERABLE | 8 | Set to true to cause the parent to become invulnerable. |
MODIFIER_STATE_MAGIC_IMMUNE | 9 | Set to true to cause the parent to become immune to magic. |
MODIFIER_STATE_PROVIDES_VISION | 10 | Set to true to cause the parent to share its vision with the source of the modifier. |
MODIFIER_STATE_NIGHTMARED | 11 | Set to true to cause the parent to become nightmared. |
MODIFIER_STATE_BLOCK_DISABLED | 12 | Set to true to cause the parent to become unable to block attacks. |
MODIFIER_STATE_EVADE_DISABLED | 13 | Set to true to cause the parent to become unable to evade attacks. |
MODIFIER_STATE_UNSELECTABLE | 14 | Set to true to cause the parent to make it unselectable. |
MODIFIER_STATE_CANNOT_MISS | 15 | Set to true to cause the parent to always hit its target. |
MODIFIER_STATE_SPECIALLY_DENIABLE | 16 | Set to true to cause allies to be able to deny the parent. |
MODIFIER_STATE_FROZEN | 17 | Set to true to cause the parent to become frozen. |
MODIFIER_STATE_COMMAND_RESTRICTED | 18 | Set to true to cause the parent to become unable to issue orders. |
MODIFIER_STATE_NOT_ON_MINIMAP | 19 | Set to true to cause the parent to become invisible on the minimap. |
MODIFIER_STATE_NOT_ON_MINIMAP_FOR_ENEMIES | 20 | Set to true to cause the parent to become invisible on the minimap for enemies. |
MODIFIER_STATE_LOW_ATTACK_PRIORITY | 21 | Set to true to cause the parent to become low attack priority, causing it to be the last to be hit when attack moving. |
MODIFIER_STATE_NO_HEALTH_BAR | 22 | Set to true to cause the parent to have its health bar disabled (invisible). |
MODIFIER_STATE_FLYING | 23 | Set to true to cause the parent to fly, ignoring terrains and increasing its offset from the ground. |
MODIFIER_STATE_NO_UNIT_COLLISION | 24 | Set to true to cause the parent to become phased. |
MODIFIER_STATE_NO_TEAM_MOVE_TO | 25 | |
MODIFIER_STATE_NO_TEAM_SELECT | 26 | |
MODIFIER_STATE_PASSIVES_DISABLED | 27 | Set to true to cause the parent to have its passives disabled. |
MODIFIER_STATE_DOMINATED | 28 | Set to true to cause the parent to become dominated. |
MODIFIER_STATE_BLIND | 29 | Set to true to cause the parent to become blind. |
MODIFIER_STATE_OUT_OF_GAME | 30 | |
MODIFIER_STATE_FAKE_ALLY | 31 | |
MODIFIER_STATE_FLYING_FOR_PATHING_PURPOSES_ONLY | 32 | Set to true to cause the parent to stay on the ground, but be considered flying when moving. |
MODIFIER_STATE_TRUESIGHT_IMMUNE | 33 | Set to true to cause the parent to become immune to truesight. |
MODIFIER_STATE_LAST | 34 |
quest_text_replace_values_t
Name | Value | Description |
---|---|---|
QUEST_TEXT_REPLACE_VALUE_CURRENT_VALUE | 0 | |
QUEST_TEXT_REPLACE_VALUE_TARGET_VALUE | 1 | |
QUEST_TEXT_REPLACE_VALUE_ROUND | 2 | |
QUEST_TEXT_REPLACE_VALUE_REWARD | 3 | |
QUEST_NUM_TEXT_REPLACE_VALUES | 4 |
Find Types
Name | Value | Description |
---|---|---|
FIND_UNITS_EVERYWHERE | -1 | Find units in the whole map. |
FIND_ANY_ORDER | 0 | Random the order units are found. |
FIND_CLOSEST | 1 | Find units from the closest to the source to the farthest. |
FIND_FARTHEST | 2 | Find units from the farthest to the source to the farthest. |
subquest_text_replace_values_t
Name | Value | Description |
---|---|---|
SUBQUEST_TEXT_REPLACE_VALUE_CURRENT_VALUE | 0 | |
SUBQUEST_TEXT_REPLACE_VALUE_TARGET_VALUE | 1 | |
SUBQUEST_NUM_TEXT_REPLACE_VALUES | 2 |
DOTAScriptInventorySlot_t
Name | Value | Description |
---|---|---|
DOTA_ITEM_SLOT_1 | 0 | |
DOTA_ITEM_SLOT_2 | 1 | |
DOTA_ITEM_SLOT_3 | 2 | |
DOTA_ITEM_SLOT_4 | 3 | |
DOTA_ITEM_SLOT_5 | 4 | |
DOTA_ITEM_SLOT_6 | 5 | |
DOTA_STASH_SLOT_1 | 6 | |
DOTA_STASH_SLOT_2 | 7 | |
DOTA_STASH_SLOT_3 | 8 | |
DOTA_STASH_SLOT_4 | 9 | |
DOTA_STASH_SLOT_5 | 10 | |
DOTA_STASH_SLOT_6 | 11 |
DOTA_GameState
Name | Value | Description |
---|---|---|
DOTA_GAMERULES_STATE_INIT | 0 | |
DOTA_GAMERULES_STATE_WAIT_FOR_PLAYERS_TO_LOAD | 1 | |
DOTA_GAMERULES_STATE_CUSTOM_GAME_SETUP | 2 | |
DOTA_GAMERULES_STATE_HERO_SELECTION | 3 | |
DOTA_GAMERULES_STATE_STRATEGY_TIME | 4 | |
DOTA_GAMERULES_STATE_TEAM_SHOWCASE | 5 | |
DOTA_GAMERULES_STATE_PRE_GAME | 6 | |
DOTA_GAMERULES_STATE_GAME_IN_PROGRESS | 7 | |
DOTA_GAMERULES_STATE_POST_GAME | 8 | |
DOTA_GAMERULES_STATE_DISCONNECT | 9 |
DOTALimits_t
Name | Value | Description |
---|---|---|
DOTA_DEFAULT_MAX_TEAM | 5 | Default number of players per team. |
DOTA_DEFAULT_MAX_TEAM_PLAYERS | 10 | Default number of non-spectator players supported. |
DOTA_MAX_PLAYER_TEAMS | 10 | Max number of player teams supported. |
DOTA_MAX_TEAM | 24 | Max number of players per team. |
DOTA_MAX_TEAM_PLAYERS | 24 | Max number of non-spectator players supported. |
DOTA_MAX_SPECTATOR_TEAM_SIZE | 40 | How many spectators can watch. |
DOTA_MAX_PLAYERS | 64 | Max number of players connected to the server including spectators. |
GameActivity_t
Name | Value | Description |
---|---|---|
ACT_DOTA_IDLE | 1500 | |
ACT_DOTA_IDLE_RARE | 1501 | |
ACT_DOTA_RUN | 1502 | |
ACT_DOTA_ATTACK | 1503 | |
ACT_DOTA_ATTACK2 | 1504 | |
ACT_DOTA_ATTACK_EVENT | 1505 | |
ACT_DOTA_DIE | 1506 | |
ACT_DOTA_FLINCH | 1507 | |
ACT_DOTA_FLAIL | 1508 | |
ACT_DOTA_DISABLED | 1509 | |
ACT_DOTA_CAST_ABILITY_1 | 1510 | |
ACT_DOTA_CAST_ABILITY_2 | 1511 | |
ACT_DOTA_CAST_ABILITY_3 | 1512 | |
ACT_DOTA_CAST_ABILITY_4 | 1513 | |
ACT_DOTA_CAST_ABILITY_5 | 1514 | |
ACT_DOTA_CAST_ABILITY_6 | 1515 | |
ACT_DOTA_OVERRIDE_ABILITY_1 | 1516 | |
ACT_DOTA_OVERRIDE_ABILITY_2 | 1517 | |
ACT_DOTA_OVERRIDE_ABILITY_3 | 1518 | |
ACT_DOTA_OVERRIDE_ABILITY_4 | 1519 | |
ACT_DOTA_CHANNEL_ABILITY_1 | 1520 | |
ACT_DOTA_CHANNEL_ABILITY_2 | 1521 | |
ACT_DOTA_CHANNEL_ABILITY_3 | 1522 | |
ACT_DOTA_CHANNEL_ABILITY_4 | 1523 | |
ACT_DOTA_CHANNEL_ABILITY_5 | 1524 | |
ACT_DOTA_CHANNEL_ABILITY_6 | 1525 | |
ACT_DOTA_CHANNEL_END_ABILITY_1 | 1526 | |
ACT_DOTA_CHANNEL_END_ABILITY_2 | 1527 | |
ACT_DOTA_CHANNEL_END_ABILITY_3 | 1528 | |
ACT_DOTA_CHANNEL_END_ABILITY_4 | 1529 | |
ACT_DOTA_CHANNEL_END_ABILITY_5 | 1530 | |
ACT_DOTA_CHANNEL_END_ABILITY_6 | 1531 | |
ACT_DOTA_CONSTANT_LAYER | 1532 | |
ACT_DOTA_CAPTURE | 1533 | |
ACT_DOTA_SPAWN | 1534 | |
ACT_DOTA_KILLTAUNT | 1535 | |
ACT_DOTA_TAUNT | 1536 | |
ACT_DOTA_THIRST | 1537 | |
ACT_DOTA_CAST_DRAGONBREATH | 1538 | |
ACT_DOTA_ECHO_SLAM | 1539 | |
ACT_DOTA_CAST_ABILITY_1_END | 1540 | |
ACT_DOTA_CAST_ABILITY_2_END | 1541 | |
ACT_DOTA_CAST_ABILITY_3_END | 1542 | |
ACT_DOTA_CAST_ABILITY_4_END | 1543 | |
ACT_MIRANA_LEAP_END | 1544 | |
ACT_WAVEFORM_START | 1545 | |
ACT_WAVEFORM_END | 1546 | |
ACT_DOTA_CAST_ABILITY_ROT | 1547 | |
ACT_DOTA_DIE_SPECIAL | 1548 | |
ACT_DOTA_RATTLETRAP_BATTERYASSAULT | 1549 | |
ACT_DOTA_RATTLETRAP_POWERCOGS | 1550 | |
ACT_DOTA_RATTLETRAP_HOOKSHOT_START | 1551 | |
ACT_DOTA_RATTLETRAP_HOOKSHOT_LOOP | 1552 | |
ACT_DOTA_RATTLETRAP_HOOKSHOT_END | 1553 | |
ACT_STORM_SPIRIT_OVERLOAD_RUN_OVERRIDE | 1554 | |
ACT_DOTA_TINKER_REARM1 | 1555 | |
ACT_DOTA_TINKER_REARM2 | 1556 | |
ACT_DOTA_TINKER_REARM3 | 1557 | |
ACT_TINY_AVALANCHE | 1558 | |
ACT_TINY_TOSS | 1559 | |
ACT_TINY_GROWL | 1560 | |
ACT_DOTA_WEAVERBUG_ATTACH | 1561 | |
ACT_DOTA_CAST_WILD_AXES_END | 1562 | |
ACT_DOTA_CAST_LIFE_BREAK_START | 1563 | |
ACT_DOTA_CAST_LIFE_BREAK_END | 1564 | |
ACT_DOTA_NIGHTSTALKER_TRANSITION | 1565 | |
ACT_DOTA_LIFESTEALER_RAGE | 1566 | |
ACT_DOTA_LIFESTEALER_OPEN_WOUNDS | 1567 | |
ACT_DOTA_SAND_KING_BURROW_IN | 1568 | |
ACT_DOTA_SAND_KING_BURROW_OUT | 1569 | |
ACT_DOTA_EARTHSHAKER_TOTEM_ATTACK | 1570 | |
ACT_DOTA_WHEEL_LAYER | 1571 | |
ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START | 1572 | |
ACT_DOTA_ALCHEMIST_CONCOCTION | 1573 | |
ACT_DOTA_JAKIRO_LIQUIDFIRE_START | 1574 | |
ACT_DOTA_JAKIRO_LIQUIDFIRE_LOOP | 1575 | |
ACT_DOTA_LIFESTEALER_INFEST | 1576 | |
ACT_DOTA_LIFESTEALER_INFEST_END | 1577 | |
ACT_DOTA_LASSO_LOOP | 1578 | |
ACT_DOTA_ALCHEMIST_CONCOCTION_THROW | 1579 | |
ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END | 1580 | |
ACT_DOTA_CAST_COLD_SNAP | 1581 | |
ACT_DOTA_CAST_GHOST_WALK | 1582 | |
ACT_DOTA_CAST_TORNADO | 1583 | |
ACT_DOTA_CAST_EMP | 1584 | |
ACT_DOTA_CAST_ALACRITY | 1585 | |
ACT_DOTA_CAST_CHAOS_METEOR | 1586 | |
ACT_DOTA_CAST_SUN_STRIKE | 1587 | |
ACT_DOTA_CAST_FORGE_SPIRIT | 1588 | |
ACT_DOTA_CAST_ICE_WALL | 1589 | |
ACT_DOTA_CAST_DEAFENING_BLAST | 1590 | |
ACT_DOTA_VICTORY | 1591 | |
ACT_DOTA_DEFEAT | 1592 | |
ACT_DOTA_SPIRIT_BREAKER_CHARGE_POSE | 1593 | |
ACT_DOTA_SPIRIT_BREAKER_CHARGE_END | 1594 | |
ACT_DOTA_TELEPORT | 1595 | |
ACT_DOTA_TELEPORT_END | 1596 | |
ACT_DOTA_CAST_REFRACTION | 1597 | |
ACT_DOTA_CAST_ABILITY_7 | 1598 | |
ACT_DOTA_CANCEL_SIREN_SONG | 1599 | |
ACT_DOTA_CHANNEL_ABILITY_7 | 1600 | |
ACT_DOTA_LOADOUT | 1601 | |
ACT_DOTA_FORCESTAFF_END | 1602 | |
ACT_DOTA_POOF_END | 1603 | |
ACT_DOTA_SLARK_POUNCE | 1604 | |
ACT_DOTA_MAGNUS_SKEWER_START | 1605 | |
ACT_DOTA_MAGNUS_SKEWER_END | 1606 | |
ACT_DOTA_MEDUSA_STONE_GAZE | 1607 | |
ACT_DOTA_RELAX_START | 1608 | |
ACT_DOTA_RELAX_LOOP | 1609 | |
ACT_DOTA_RELAX_END | 1610 | |
ACT_DOTA_CENTAUR_STAMPEDE | 1611 | |
ACT_DOTA_BELLYACHE_START | 1612 | |
ACT_DOTA_BELLYACHE_LOOP | 1613 | |
ACT_DOTA_BELLYACHE_END | 1614 | |
ACT_DOTA_ROQUELAIRE_LAND | 1615 | |
ACT_DOTA_ROQUELAIRE_LAND_IDLE | 1616 | |
ACT_DOTA_GREEVIL_CAST | 1617 | |
ACT_DOTA_GREEVIL_OVERRIDE_ABILITY | 1618 | |
ACT_DOTA_GREEVIL_HOOK_START | 1619 | |
ACT_DOTA_GREEVIL_HOOK_END | 1620 | |
ACT_DOTA_GREEVIL_BLINK_BONE | 1621 | |
ACT_DOTA_IDLE_SLEEPING | 1622 | |
ACT_DOTA_INTRO | 1623 | |
ACT_DOTA_GESTURE_POINT | 1624 | |
ACT_DOTA_GESTURE_ACCENT | 1625 | |
ACT_DOTA_SLEEPING_END | 1626 | |
ACT_DOTA_AMBUSH | 1627 | |
ACT_DOTA_ITEM_LOOK | 1628 | |
ACT_DOTA_STARTLE | 1629 | |
ACT_DOTA_FRUSTRATION | 1630 | |
ACT_DOTA_TELEPORT_REACT | 1631 | |
ACT_DOTA_TELEPORT_END_REACT | 1632 | |
ACT_DOTA_SHRUG | 1633 | |
ACT_DOTA_RELAX_LOOP_END | 1634 | |
ACT_DOTA_PRESENT_ITEM | 1635 | |
ACT_DOTA_IDLE_IMPATIENT | 1636 | |
ACT_DOTA_SHARPEN_WEAPON | 1637 | |
ACT_DOTA_SHARPEN_WEAPON_OUT | 1638 | |
ACT_DOTA_IDLE_SLEEPING_END | 1639 | |
ACT_DOTA_BRIDGE_DESTROY | 1640 | |
ACT_DOTA_TAUNT_SNIPER | 1641 | |
ACT_DOTA_DEATH_BY_SNIPER | 1642 | |
ACT_DOTA_LOOK_AROUND | 1643 | |
ACT_DOTA_CAGED_CREEP_RAGE | 1644 | |
ACT_DOTA_CAGED_CREEP_RAGE_OUT | 1645 | |
ACT_DOTA_CAGED_CREEP_SMASH | 1646 | |
ACT_DOTA_CAGED_CREEP_SMASH_OUT | 1647 | |
ACT_DOTA_IDLE_IMPATIENT_SWORD_TAP | 1648 | |
ACT_DOTA_INTRO_LOOP | 1649 | |
ACT_DOTA_BRIDGE_THREAT | 1650 | |
ACT_DOTA_DAGON | 1651 | |
ACT_DOTA_CAST_ABILITY_2_ES_ROLL_START | 1652 | |
ACT_DOTA_CAST_ABILITY_2_ES_ROLL | 1653 | |
ACT_DOTA_CAST_ABILITY_2_ES_ROLL_END | 1654 | |
ACT_DOTA_NIAN_PIN_START | 1655 | |
ACT_DOTA_NIAN_PIN_LOOP | 1656 | |
ACT_DOTA_NIAN_PIN_END | 1657 | |
ACT_DOTA_LEAP_STUN | 1658 | |
ACT_DOTA_LEAP_SWIPE | 1659 | |
ACT_DOTA_NIAN_INTRO_LEAP | 1660 | |
ACT_DOTA_AREA_DENY | 1661 | |
ACT_DOTA_NIAN_PIN_TO_STUN | 1662 | |
ACT_DOTA_RAZE_1 | 1663 | |
ACT_DOTA_RAZE_2 | 1664 | |
ACT_DOTA_RAZE_3 | 1665 | |
ACT_DOTA_UNDYING_DECAY | 1666 | |
ACT_DOTA_UNDYING_SOUL_RIP | 1667 | |
ACT_DOTA_UNDYING_TOMBSTONE | 1668 | |
ACT_DOTA_WHIRLING_AXES_RANGED | 1669 | |
ACT_DOTA_SHALLOW_GRAVE | 1670 | |
ACT_DOTA_COLD_FEET | 1671 | |
ACT_DOTA_ICE_VORTEX | 1672 | |
ACT_DOTA_CHILLING_TOUCH | 1673 | |
ACT_DOTA_ENFEEBLE | 1674 | |
ACT_DOTA_FATAL_BONDS | 1675 | |
ACT_DOTA_MIDNIGHT_PULSE | 1676 | |
ACT_DOTA_ANCESTRAL_SPIRIT | 1677 | |
ACT_DOTA_THUNDER_STRIKE | 1678 | |
ACT_DOTA_KINETIC_FIELD | 1679 | |
ACT_DOTA_STATIC_STORM | 1680 | |
ACT_DOTA_MINI_TAUNT | 1681 | |
ACT_DOTA_ARCTIC_BURN_END | 1682 | |
ACT_DOTA_LOADOUT_RARE | 1683 | |
ACT_DOTA_SWIM | 1684 | |
ACT_DOTA_FLEE | 1685 | |
ACT_DOTA_TROT | 1686 | |
ACT_DOTA_SHAKE | 1687 | |
ACT_DOTA_SWIM_IDLE | 1688 | |
ACT_DOTA_WAIT_IDLE | 1689 | |
ACT_DOTA_GREET | 1690 | |
ACT_DOTA_TELEPORT_COOP_START | 1691 | |
ACT_DOTA_TELEPORT_COOP_WAIT | 1692 | |
ACT_DOTA_TELEPORT_COOP_END | 1693 | |
ACT_DOTA_TELEPORT_COOP_EXIT | 1694 | |
ACT_DOTA_SHOPKEEPER_PET_INTERACT | 1695 | |
ACT_DOTA_ITEM_PICKUP | 1696 | |
ACT_DOTA_ITEM_DROP | 1697 | |
ACT_DOTA_CAPTURE_PET | 1698 | |
ACT_DOTA_PET_WARD_OBSERVER | 1699 | |
ACT_DOTA_PET_WARD_SENTRY | 1700 | |
ACT_DOTA_PET_LEVEL | 1701 | |
ACT_DOTA_CAST_BURROW_END | 1702 | |
ACT_DOTA_LIFESTEALER_ASSIMILATE | 1703 | |
ACT_DOTA_LIFESTEALER_EJECT | 1704 | |
ACT_DOTA_ATTACK_EVENT_BASH | 1705 | |
ACT_DOTA_CAPTURE_RARE | 1706 | |
ACT_DOTA_AW_MAGNETIC_FIELD | 1707 | |
ACT_DOTA_CAST_GHOST_SHIP | 1708 |
modifierfunction
Name | Value | Lua function | Description |
---|---|---|---|
MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE | 0 | GetModifierPreAttack_BonusDamage | |
MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE_PROC | 1 | GetModifierPreAttack_BonusDamage_Proc | |
MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE_POST_CRIT | 2 | GetModifierPreAttack_BonusDamagePostCrit | |
MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE | 3 | GetModifierBaseAttack_BonusDamage | |
MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PHYSICAL | 4 | GetModifierProcAttack_BonusDamage_Physical | |
MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_MAGICAL | 5 | GetModifierProcAttack_BonusDamage_Magical | |
MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PURE | 6 | GetModifierProcAttack_BonusDamage_Pure | |
MODIFIER_PROPERTY_PROCATTACK_FEEDBACK | 7 | GetModifierProcAttack_Feedback | |
MODIFIER_PROPERTY_PRE_ATTACK | 8 | GetModifierPreAttack | |
MODIFIER_PROPERTY_INVISIBILITY_LEVEL | 9 | GetModifierInvisibilityLevel | Generates a level of opacity on the parent. |
MODIFIER_PROPERTY_PERSISTENT_INVISIBILITY | 10 | GetModifierPersistentInvisibility | |
MODIFIER_PROPERTY_MOVESPEED_BONUS_CONSTANT | 11 | GetModifierMoveSpeedBonus_Constant | Increases the move speed of the parent by a constant returned to it. Can get negative values. |
MODIFIER_PROPERTY_MOVESPEED_BASE_OVERRIDE | 12 | GetModifierMoveSpeedOverride | changes the base move speed of the parent by a value returned to it. Minimum of 100 move speed. |
MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE | 13 | GetModifierMoveSpeedBonus_Percentage | Increases the move speed of the parent by a percentage returned to it. Can get negative values. |
MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE_UNIQUE | 14 | GetModifierMoveSpeedBonus_Percentage_Unique | |
MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE_UNIQUE_2 | 15 | GetModifierMoveSpeedBonus_Percentage_Unique_2 | |
MODIFIER_PROPERTY_MOVESPEED_BONUS_UNIQUE | 16 | GetModifierMoveSpeedBonus_Special_Boots | |
MODIFIER_PROPERTY_MOVESPEED_BONUS_UNIQUE_2 | 17 | GetModifierMoveSpeedBonus_Special_Boots_2 | |
MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE | 18 | GetModifierMoveSpeed_Absolute | Sets the move speed of the parent to a value. Nothing can increase or decrease move speed. |
MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE_MIN | 19 | GetModifierMoveSpeed_AbsoluteMin | Sets the move speed of the parent to a minimum value. Nothing can decrease move speed below the chosen value. |
MODIFIER_PROPERTY_MOVESPEED_LIMIT | 20 | GetModifierMoveSpeed_Limit | Sets the move speed limit of the parent. |
MODIFIER_PROPERTY_MOVESPEED_MAX | 21 | GetModifierMoveSpeed_Max | |
MODIFIER_PROPERTY_ATTACKSPEED_BASE_OVERRIDE | 22 | GetModifierAttackSpeedBaseOverride | |
MODIFIER_PROPERTY_FIXED_ATTACK_RATE | 23 | GetModifierAttackSpeedBaseOverride | |
MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT | 24 | GetModifierAttackSpeedBonus_Constant | Increases the attack speed of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_COOLDOWN_REDUCTION_CONSTANT | 25 | GetModifierCooldownReduction_Constant | Reduces the cooldown of all skills and items of the parent by a constant returned to it. Can get negative values to increase cooldowns instead. |
MODIFIER_PROPERTY_BASE_ATTACK_TIME_CONSTANT | 26 | GetModifierBaseAttackTimeConstant | Decreases the base attack time of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_ATTACK_POINT_CONSTANT | 27 | GetModifierAttackPointConstant | |
MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE | 28 | GetModifierDamageOutgoing_Percentage | Increases the raw damage that the parent deals by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE_ILLUSION | 29 | GetModifierDamageOutgoing_Percentage_Illusion | |
MODIFIER_PROPERTY_TOTALDAMAGEOUTGOING_PERCENTAGE | 30 | GetModifierTotalDamageOutgoing_Percentage | Increases the damage of all sources that the parent deals by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_SPELL_AMPLIFY_PERCENTAGE | 31 | GetModifierSpellAmplify_Percentage | |
MODIFIER_PROPERTY_HP_REGEN_AMPLIFY_PERCENTAGE | 32 | GetModifierHPRegenAmplify_Percentage | Increases health regen and heal gained by parent by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_MAGICDAMAGEOUTGOING_PERCENTAGE | 33 | GetModifierMagicDamageOutgoing_Percentage | Increases the magic damage that the parent deals by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_BASEDAMAGEOUTGOING_PERCENTAGE | 34 | GetModifierBaseDamageOutgoing_Percentage | Increases the base damage of that the parent deals by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_BASEDAMAGEOUTGOING_PERCENTAGE_UNIQUE | 35 | GetModifierBaseDamageOutgoing_PercentageUnique | |
MODIFIER_PROPERTY_INCOMING_DAMAGE_PERCENTAGE | 36 | GetModifierIncomingDamage_Percentage | Increases the damage of all sources that the parent takes by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_INCOMING_PHYSICAL_DAMAGE_PERCENTAGE | 37 | GetModifierIncomingPhysicalDamage_Percentage | Increases the damage of physical sources that the parent takes by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_INCOMING_PHYSICAL_DAMAGE_CONSTANT | 38 | GetModifierIncomingPhysicalDamageConstant | |
MODIFIER_PROPERTY_INCOMING_SPELL_DAMAGE_CONSTANT | 39 | GetModifierIncomingSpellDamageConstant | Increases the damage of magical sources that the parent takes by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_EVASION_CONSTANT | 40 | GetModifierEvasion_Constant | Increases the evasion of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_NEGATIVE_EVASION_CONSTANT | 41 | GetModifierNegativeEvasion_Constant | |
MODIFIER_PROPERTY_AVOID_DAMAGE | 42 | GetModifierAvoidDamage | |
MODIFIER_PROPERTY_AVOID_SPELL | 43 | GetModifierAvoidSpell | |
MODIFIER_PROPERTY_MISS_PERCENTAGE | 44 | GetModifierMiss_Percentage | Increases the chance of the parent to miss by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS | 45 | GetModifierPhysicalArmorBonus | Increases the armor of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_UNIQUE | 46 | GetModifierPhysicalArmorBonusUnique | |
MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_UNIQUE_ACTIVE | 47 | GetModifierPhysicalArmorBonusUniqueActive | |
MODIFIER_PROPERTY_IGNORE_PHYSICAL_ARMOR | 48 | GetModifierIgnorePhysicalArmor | |
MODIFIER_PROPERTY_MAGICAL_RESISTANCE_DIRECT_MODIFICATION | 49 | GetModifierMagicalResistanceDirectModification | |
MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS | 50 | GetModifierMagicalResistanceBonus | Increases the magical resistance of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_MAGICAL_RESISTANCE_DECREPIFY_UNIQUE | 51 | GetModifierMagicalResistanceDecrepifyUnique | |
MODIFIER_PROPERTY_BASE_MANA_REGEN | 52 | GetModifierBaseRegen | Increases the base mana regeneration of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_MANA_REGEN_CONSTANT | 53 | GetModifierConstantManaRegen | Increases the mana regeneration of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_MANA_REGEN_CONSTANT_UNIQUE | 54 | GetModifierConstantManaRegenUnique | |
MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE | 55 | GetModifierPercentageManaRegen | Increases the mana regeneration of the parent by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_MANA_REGEN_TOTAL_PERCENTAGE | 56 | GetModifierTotalPercentageManaRegen | Increases the total mana regeneration of the parent by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT | 57 | GetModifierConstantHealthRegen | Increases the health regeneration of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_HEALTH_REGEN_PERCENTAGE | 58 | GetModifierHealthRegenPercentage | Increases the evasion of the parent by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_HEALTH_BONUS | 59 | GetModifierHealthBonus | Increases the maximum health of the parent by a constant returned to it. Can return negative values. Health is scaled to the same percentage as before the increase. |
MODIFIER_PROPERTY_MANA_BONUS | 60 | GetModifierManaBonus | Increases the maximum mana of the parent by a constant returned to it. Can return negative values. Mana is scaled to the same percentage as before the increase. |
MODIFIER_PROPERTY_EXTRA_STRENGTH_BONUS | 61 | GetModifierExtraStrengthBonus | |
MODIFIER_PROPERTY_EXTRA_HEALTH_BONUS | 62 | GetModifierExtraHealthBonus | Increases the maximum health of the parent by a constant returned to it. Can return negative values. Ignores current health. |
MODIFIER_PROPERTY_EXTRA_MANA_BONUS | 63 | GetModifierExtraManaBonus | Increases the maximum mana of the parent by a constant returned to it. Can return negative values. Ignores current mana. |
MODIFIER_PROPERTY_EXTRA_HEALTH_PERCENTAGE | 64 | GetModifierExtraHealthPercentage | Increases the maximum health of the parent by a percentage returned to it. Can return negative values. Ignores current health. |
MODIFIER_PROPERTY_STATS_STRENGTH_BONUS | 65 | GetModifierBonusStats_Strength | Increases the strength stat of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_STATS_AGILITY_BONUS | 66 | GetModifierBonusStats_Agility | Increases the agility stat of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_STATS_INTELLECT_BONUS | 67 | GetModifierBonusStats_Intellect | Increases the intelligence stat of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_CAST_RANGE_BONUS | 68 | GetModifierCastRangeBonus | Increases the cast range of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_CAST_RANGE_BONUS_STACKING | 69 | GetModifierCastRangeBonusStacking | |
MODIFIER_PROPERTY_ATTACK_RANGE_BONUS | 70 | GetModifierAttackRangeBonus | Increases the attack range of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_ATTACK_RANGE_BONUS_UNIQUE | 71 | GetModifierAttackRangeBonusUnique | |
MODIFIER_PROPERTY_MAX_ATTACK_RANGE | 72 | GetModifierMaxAttackRange | |
MODIFIER_PROPERTY_PROJECTILE_SPEED_BONUS | 73 | GetModifierProjectileSpeedBonus | Increases the projectile speed of attacks sourced by the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_REINCARNATION | 74 | ReincarnateTime | |
MODIFIER_PROPERTY_RESPAWNTIME | 75 | GetModifierConstantRespawnTime | Increases the respawn time of the parent by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_RESPAWNTIME_PERCENTAGE | 76 | GetModifierPercentageRespawnTime | Increases the respawn time of the parent by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_RESPAWNTIME_STACKING | 77 | GetModifierStackingRespawnTime | Increases the respawn time of the parent by a constant returned to it. Can return negative values. Stacks with other modifiers. |
MODIFIER_PROPERTY_COOLDOWN_PERCENTAGE | 78 | GetModifierPercentageCooldown | Increases the cooldown of the parent by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_COOLDOWN_PERCENTAGE_STACKING | 79 | GetModifierPercentageCooldownStacking | |
MODIFIER_PROPERTY_CASTTIME_PERCENTAGE | 80 | GetModifierPercentageCasttime | Increases the cast time of the parent's abilities by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_MANACOST_PERCENTAGE | 81 | GetModifierPercentageManacost | Increases the mana cost of the parent's abilities by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_DEATHGOLDCOST | 82 | GetModifierConstantDeathGoldCost | |
MODIFIER_PROPERTY_EXP_RATE_BOOST | 83 | GetModifierPercentageExpRateBoost | |
MODIFIER_PROPERTY_PREATTACK_CRITICALSTRIKE | 84 | GetModifierPreAttack_CriticalStrike | Procs a critical strike dealing the extra damage returned to it. |
MODIFIER_PROPERTY_PREATTACK_TARGET_CRITICALSTRIKE | 85 | GetModifierPreAttack_Target_CriticalStrike | |
MODIFIER_PROPERTY_MAGICAL_CONSTANT_BLOCK | 86 | GetModifierMagical_ConstantBlock | |
MODIFIER_PROPERTY_PHYSICAL_CONSTANT_BLOCK | 87 | GetModifierPhysical_ConstantBlock | Blocks damage the parent takes by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_PHYSICAL_CONSTANT_BLOCK_SPECIAL | 88 | GetModifierPhysical_ConstantBlockSpecial | |
MODIFIER_PROPERTY_TOTAL_CONSTANT_BLOCK_UNAVOIDABLE_PRE_ARMOR | 89 | GetModifierPhysical_ConstantBlockUnavoidablePreArmor | |
MODIFIER_PROPERTY_TOTAL_CONSTANT_BLOCK | 90 | GetModifierTotal_ConstantBlock | |
MODIFIER_PROPERTY_OVERRIDE_ANIMATION | 91 | GetOverrideAnimation | Forces the parent to play a specific animation. |
MODIFIER_PROPERTY_OVERRIDE_ANIMATION_WEIGHT | 92 | GetOverrideAnimationWeight | |
MODIFIER_PROPERTY_OVERRIDE_ANIMATION_RATE | 93 | GetOverrideAnimationRate | |
MODIFIER_PROPERTY_ABSORB_SPELL | 94 | GetAbsorbSpell | Allows the parent to ignore targeted abilities. (Similar to linken's sphere) |
MODIFIER_PROPERTY_REFLECT_SPELL | 95 | GetReflectSpell | Allows the parent to reflect targeted abilities. (Similar to Lotus Orb) |
MODIFIER_PROPERTY_DISABLE_AUTOATTACK | 96 | GetDisableAutoAttack | |
MODIFIER_PROPERTY_BONUS_DAY_VISION | 97 | GetBonusDayVision | Increases the vision of the parent during the day by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_BONUS_NIGHT_VISION | 98 | GetBonusNightVision | Increases the vision of the parent during the night by a constant returned to it. Can return negative values. |
MODIFIER_PROPERTY_BONUS_NIGHT_VISION_UNIQUE | 99 | GetBonusNightVisionUnique | |
MODIFIER_PROPERTY_BONUS_VISION_PERCENTAGE | 100 | GetBonusVisionPercentage | Increases the vision of the parent by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_FIXED_DAY_VISION | 101 | GetFixedDayVision | Sets the vision of the parent during the day to a fixed value returned to it. Cannot be changed by any means. |
MODIFIER_PROPERTY_FIXED_NIGHT_VISION | 102 | GetFixedNightVision | Sets the vision of the parent during the night to a fixed value returned to it. Cannot be changed by any means. |
MODIFIER_PROPERTY_MIN_HEALTH | 103 | GetMinHealth | |
MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PHYSICAL | 104 | GetAbsoluteNoDamagePhysical | |
MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_MAGICAL | 105 | GetAbsoluteNoDamageMagical | |
MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PURE | 106 | GetAbsoluteNoDamagePure | |
MODIFIER_PROPERTY_IS_ILLUSION | 107 | GetIsIllusion | |
MODIFIER_PROPERTY_ILLUSION_LABEL | 108 | GetModifierIllusionLabel | |
MODIFIER_PROPERTY_SUPER_ILLUSION | 109 | GetModifierSuperIllusion | |
MODIFIER_PROPERTY_SUPER_ILLUSION_WITH_ULTIMATE | 110 | GetModifierSuperIllusionWithUltimate | |
MODIFIER_PROPERTY_TURN_RATE_PERCENTAGE | 111 | GetModifierTurnRate_Percentage | Increases the turn rate of the parent by a percentage returned to it. Can return negative values. |
MODIFIER_PROPERTY_DISABLE_HEALING | 112 | GetDisableHealing | Negates healing applied to the parent. |
MODIFIER_PROPERTY_ALWAYS_ALLOW_ATTACK | 113 | GetAlwaysAllowAttack | |
MODIFIER_PROPERTY_OVERRIDE_ATTACK_MAGICAL | 114 | GetOverrideAttackMagical | |
MODIFIER_PROPERTY_UNIT_STATS_NEEDS_REFRESH | 115 | GetModifierUnitStatsNeedsRefresh | |
MODIFIER_PROPERTY_BOUNTY_CREEP_MULTIPLIER | 116 | GetModifierBountyCreepMultiplier | |
MODIFIER_PROPERTY_BOUNTY_OTHER_MULTIPLIER | 117 | GetModifierBountyOtherMultiplier | |
MODIFIER_EVENT_ON_SPELL_TARGET_READY | 118 | OnSpellTargetReady | |
MODIFIER_EVENT_ON_ATTACK_RECORD | 119 | OnAttackRecord | |
MODIFIER_EVENT_ON_ATTACK_START | 120 | OnAttackStart | Event that fires when an attack starts. |
MODIFIER_EVENT_ON_ATTACK | 121 | OnAttack | Event that fires when an attack was completed, regardless of the result of it. |
MODIFIER_EVENT_ON_ATTACK_LANDED | 122 | OnAttackLanded | Event that fires when an attack landed on its target successfully. |
MODIFIER_EVENT_ON_ATTACK_FAIL | 123 | OnAttackFail | Event that fires when an attack failed to land on its target. |
MODIFIER_EVENT_ON_ATTACK_ALLIED | 124 | OnAttackAllied | Event that fires when attacking allies. |
MODIFIER_EVENT_ON_PROJECTILE_DODGE | 125 | OnProjectileDodge | Event that fires when dodging a projectile. (Disjointing it) |
MODIFIER_EVENT_ON_ORDER | 126 | OnOrder | Event that fires when an order is given to the parent. |
MODIFIER_EVENT_ON_UNIT_MOVED | 127 | OnUnitMoved | Event that fires when a unit moved. |
MODIFIER_EVENT_ON_ABILITY_START | 128 | OnAbilityStart | Event that fires when starting to use an ability. |
MODIFIER_EVENT_ON_ABILITY_EXECUTED | 129 | OnAbilityExecuted | Event that fires when finishing the ability phase stage of the ability. |
MODIFIER_EVENT_ON_ABILITY_FULLY_CAST | 130 | OnAbilityFullyCast | Event that fires when the ability has completely activated. |
MODIFIER_EVENT_ON_BREAK_INVISIBILITY | 131 | OnBreakInvisibility | Event that fires when breaking invisibility. |
MODIFIER_EVENT_ON_ABILITY_END_CHANNEL | 132 | OnAbilityEndChannel | Event that fires when finishing a channel. |
MODIFIER_EVENT_ON_PROCESS_UPGRADE | 133 | ||
MODIFIER_EVENT_ON_REFRESH | 134 | ||
MODIFIER_EVENT_ON_TAKEDAMAGE | 135 | OnTakeDamage | Event that fires when taking damage. |
MODIFIER_EVENT_ON_STATE_CHANGED | 136 | OnStateChanged | Event that fires when a state is changed. |
MODIFIER_EVENT_ON_ORB_EFFECT | 137 | ||
MODIFIER_EVENT_ON_ATTACKED | 138 | OnAttacked | Event that fires when being attacked. |
MODIFIER_EVENT_ON_DEATH | 139 | OnDeath | Event that fires when dying. |
MODIFIER_EVENT_ON_RESPAWN | 140 | OnRespawn | Event that fires when respawning. |
MODIFIER_EVENT_ON_SPENT_MANA | 141 | OnSpentMana | Event that fires when spending mana on items or abilities. |
MODIFIER_EVENT_ON_TELEPORTING | 142 | OnTeleporting | Event that fires when starting to teleporting. |
MODIFIER_EVENT_ON_TELEPORTED | 143 | OnTeleported | Event that fires when completing a teleport. |
MODIFIER_EVENT_ON_SET_LOCATION | 144 | OnSetLocation | |
MODIFIER_EVENT_ON_HEALTH_GAINED | 145 | OnHealthGained | |
MODIFIER_EVENT_ON_MANA_GAINED | 146 | OnManaGained | |
MODIFIER_EVENT_ON_TAKEDAMAGE_KILLCREDIT | 147 | OnTakeDamageKillCredit | |
MODIFIER_EVENT_ON_HERO_KILLED | 148 | OnHeroKilled | Event that fires when a hero is killed. |
MODIFIER_EVENT_ON_HEAL_RECEIVED | 149 | OnHealReceived | Event that fires when being healed. |
MODIFIER_EVENT_ON_BUILDING_KILLED | 150 | OnBuildingKilled | Event that fires when a building is destroyed. |
MODIFIER_EVENT_ON_MODEL_CHANGED | 151 | OnModelChanged | Event that fires when the model changes. |
MODIFIER_EVENT_ON_MODIFIER_ADDED | 152 | OnModifierAdded | |
MODIFIER_PROPERTY_TOOLTIP | 153 | OnTooltip | |
MODIFIER_PROPERTY_MODEL_CHANGE | 154 | GetModifierModelChange | Changes the parent's model. |
MODIFIER_PROPERTY_MODEL_SCALE | 155 | GetModifierModelScale | Changes the parent's model scale. |
MODIFIER_PROPERTY_IS_SCEPTER | 156 | GetModifierScepter | |
MODIFIER_PROPERTY_TRANSLATE_ACTIVITY_MODIFIERS | 157 | GetActivityTranslationModifiers | |
MODIFIER_PROPERTY_TRANSLATE_ATTACK_SOUND | 158 | GetAttackSound | |
MODIFIER_PROPERTY_LIFETIME_FRACTION | 159 | GetUnitLifetimeFraction | |
MODIFIER_PROPERTY_PROVIDES_FOW_POSITION | 160 | GetModifierProvidesFOWVision | Return 1 if parent's model would show to his enemies. |
MODIFIER_PROPERTY_SPELLS_REQUIRE_HP | 161 | GetModifierSpellsRequireHP | |
MODIFIER_PROPERTY_FORCE_DRAW_MINIMAP | 162 | GetForceDrawOnMinimap | |
MODIFIER_PROPERTY_DISABLE_TURNING | 163 | GetModifierDisableTurning | |
MODIFIER_PROPERTY_IGNORE_CAST_ANGLE | 164 | GetModifierIgnoreCastAngle | |
MODIFIER_PROPERTY_CHANGE_ABILITY_VALUE | 165 | GetModifierChangeAbilityValue | |
MODIFIER_PROPERTY_ABILITY_LAYOUT | 166 | GetModifierAbilityLayout | Changes the ability layout. |
MODIFIER_EVENT_ON_DOMINATED | 167 | OnDominated | An event that fires when a unit is being dominated. |
MODIFIER_PROPERTY_TEMPEST_DOUBLE | 168 | GetModifierTempestDouble | |
MODIFIER_PROPERTY_PRESERVE_PARTICLES_ON_MODEL_CHANGE | 169 | PreserveParticlesOnModelChanged | |
MODIFIER_EVENT_ON_ATTACK_FINISHED | 170 | OnAttackFinished | |
MODIFIER_PROPERTY_IGNORE_COOLDOWN | 171 | GetModifierIgnoreCooldown | |
MODIFIER_PROPERTY_CAN_ATTACK_TREES | 172 | GetModifierCanAttackTrees | |
MODIFIER_PROPERTY_VISUAL_Z_DELTA | 173 | GetVisualZDelta | |
MODIFIER_PROPERTY_INCOMING_DAMAGE_ILLUSION | 174 | ||
MODIFIER_FUNCTION_LAST | 175 | ||
MODIFIER_FUNCTION_INVALID | 255 |
DOTA_CONNECTION_STATE
Name | Value | Description |
---|---|---|
DOTA_CONNECTION_STATE_UNKNOWN | 0 | |
DOTA_CONNECTION_STATE_NOT_YET_CONNECTED | 1 | |
DOTA_CONNECTION_STATE_CONNECTED | 2 | |
DOTA_CONNECTION_STATE_DISCONNECTED | 3 | |
DOTA_CONNECTION_STATE_ABANDONED | 4 | |
DOTA_CONNECTION_STATE_LOADING | 5 | |
DOTA_CONNECTION_STATE_FAILED | 6 |