# CDOTA_Item_Lua
extends CDOTA_Item
Function | Description | Client |
---|---|---|
bool CanUnitPickUp(hUnit) | Returns true if this item can be picked up by the target unit. | ❌ |
int CastFilterResult() | Determine whether an issued command with no target is valid. | ✔️ |
int CastFilterResultLocation(vLocation) | (Vector vLocation) Determine whether an issued command on a location is valid. | ✔️ |
int CastFilterResultTarget(hTarget) | (HSCRIPT hTarget) Determine whether an issued command on a target is valid. | ✔️ |
string GetAssociatedPrimaryAbilities() | Returns abilities that are stolen simultaneously, or otherwise related in functionality. | ❌ |
string GetAssociatedSecondaryAbilities() | Returns other abilities that are stolen simultaneously, or otherwise related in functionality. Generally hidden abilities. | ❌ |
int GetBehavior() | Return cast behavior type of this ability. | ✔️ |
int GetCastRange(vLocation, hTarget) | Return cast range of this ability. | ✔️ |
float GetChannelTime() | Return the channel time of this ability. | ✔️ |
int GetChannelledManaCostPerSecond(iLevel) | Return mana cost at the given level per second while channeling (-1 is current). | ✔️ |
int GetConceptRecipientType() | Return who hears speech when this spell is cast. | ❌ |
float GetCooldown(iLevel) | Return cooldown of this ability. | ✔️ |
string GetCustomCastError() | Return the error string of a failed command with no target. | ✔️ |
string GetCustomCastErrorLocation(vLocation) | (Vector vLocation) Return the error string of a failed command on a location. | ✔️ |
string GetCustomCastErrorTarget(hTarget) | (HSCRIPT hTarget) Return the error string of a failed command on a target. | ✔️ |
int GetGoldCost(iLevel) | Return gold cost at the given level (-1 is current). | ✔️ |
string GetIntrinsicModifierName() | 返回此技能被动给予的修饰器的名称 | ❌ |
int GetManaCost(iLevel) | Return mana cost at the given level (-1 is current). | ✔️ |
float GetPlaybackRateOverride() | Return the animation rate of the cast animation. | ❌ |
bool IsHiddenAbilityCastable() | Returns true if this ability can be used when not on the action panel. | ❌ |
bool IsHiddenWhenStolen() | Returns true if this ability is hidden when stolen by Spell Steal. | ❌ |
bool IsMuted() | Returns whether this item is muted or not. | ✔️ |
bool IsRefreshable() | Returns true if this ability is refreshed by Refresher Orb. | ❌ |
bool IsStealable() | Returns true if this ability can be stolen by Spell Steal. | ❌ |
void OnAbilityPhaseInterrupted() | Cast time did not complete successfully. | ❌ |
bool OnAbilityPhaseStart() | Cast time begins (return true for successful cast). | ❌ |
void OnChannelFinish(bInterrupted) | (bool bInterrupted) Channel finished. | ❌ |
void OnChannelThink(flInterval) | (float flInterval) Channeling is taking place. | ❌ |
void OnHeroCalculateStatBonus() | Caster (hero only) gained a level, skilled an ability, or received a new stat bonus. | ❌ |
void OnHeroDiedNearby(unit, attacker, table) | A hero has died in the vicinity (ie Urn), takes table of params. | ❌ |
void OnHeroLevelUp() | Caster gained a level. | ❌ |
void OnInventoryContentsChanged() | Caster inventory changed. | ❌ |
void OnItemEquipped(hItem) | ( HSCRIPT hItem ) Caster equipped item. | ❌ |
void OnOwnerDied() | Caster died. | ❌ |
void OnOwnerSpawned() | Caster respawned or spawned for the first time. | ❌ |
bool OnProjectileHit(hTarget, vLocation) | (HSCRIPT hTarget, Vector vLocation) Projectile has collided with a given target or reached its destination (target is invalid). | ❌ |
void OnProjectileThink(vLocation) | (Vector vLocation) Projectile is actively moving. | ❌ |
void OnSpellStart() | Cast time finished, spell effects begin. | ❌ |
void OnStolen(hSourceAbility) | ( HSCRIPT hAbility ) Special behavior when stolen by Spell Steal. | ❌ |
void OnToggle() | Ability is toggled on/off. | ❌ |
void OnUnStolen() | Special behavior when lost by Spell Steal. | ❌ |
void OnUpgrade() | Ability gained a level. | ❌ |
bool ProcsMagicStick() | Returns true if this ability will generate magic stick charges for nearby enemies. | ❌ |
int SpeakTrigger() | Return the type of speech used. | ❌ |