CDOTA_BaseNPC_Hero extends CDOTA_BaseNPC
s
c
#
AddExperience(xpfloat, reasonEDOTA_ModifyXP_Reason, applyBotDifficultyScalingbool, incrementTotalbool): bool
s
c
#
Buyback(): nil
s
c
#

Spend the gold and buyback with this hero.
CalculateStatBonus(): nil
s
c
#

Recalculate all stats after the hero gains stats.
CanEarnGold(): bool
s
c
#

Returns boolean value result of buyback gold limit time less than game time.
ClearLastHitMultikill(): nil
s
c
#

Value is stored in PlayerResource.
ClearLastHitStreak(): nil
s
c
#

Value is stored in PlayerResource.
ClearStreak(): nil
s
c
#

Value is stored in PlayerResource.
GetAbilityPoints(): int
s
c
#

Gets the current unspent ability points.
GetAdditionalOwnedUnits(): [CDOTA_BaseNPC]
s
c
#
GetAgility(): float
s
c
#
GetAgilityGain(): float
s
c
#
GetAssists(): int
s
c
#

Value is stored in PlayerResource.
GetAttacker(indexint): int
s
c
#
GetBaseAgility(): float
s
c
#
GetBaseDamageMax(): int
s
c
#

Hero damage is also affected by attributes.
GetBaseDamageMin(): int
s
c
#

Hero damage is also affected by attributes.
GetBaseIntellect(): float
s
c
#
GetBaseManaRegen(): float
s
c
#

Returns the base mana regen.
GetBaseStrength(): float
s
c
#
GetBonusDamageFromPrimaryStat(): int
s
c
#
GetBuybackCooldownTime(): float
s
c
#

Return float value for the amount of time left on cooldown for this hero's buyback.
GetBuybackCost(returnOldValuesbool): int
s
c
#

Return integer value for the gold cost of a buyback.
GetBuybackGoldLimitTime(): float
s
c
#

Returns the amount of time gold gain is limited after buying back.
GetCurrentXP(): int
s
c
#

Returns the amount of XP.
GetDeathGoldCost(): int
s
c
#
GetDeaths(): int
s
c
#

Value is stored in PlayerResource.
GetDenies(): int
s
c
#

Value is stored in PlayerResource.
GetGold(): int
s
c
#

Returns gold amount for the player owning this hero.
GetGoldBounty(): int
s
c
#
GetIncreasedAttackSpeed(): float
s
c
#

Hero attack speed is also affected by agility.
GetIntellect(): float
s
c
#
GetIntellectGain(): float
s
c
#
GetKills(): int
s
c
#

Value is stored in PlayerResource.
GetLastHits(): int
s
c
#

Value is stored in PlayerResource.
GetMostRecentDamageTime(): float
s
c
#
GetMultipleKillCount(): int
s
c
#
GetNumAttackers(): int
s
c
#
GetNumItemsInInventory(): int
s
c
#
GetNumItemsInStash(): int
s
c
#
GetPhysicalArmorBaseValue(): float
s
c
#

Hero armor is affected by attributes.
GetPlayerID(): PlayerID
s
c
#

Returns player ID of the player owning this hero.
GetPrimaryAttribute(): Attributes
s
c
#
GetPrimaryStatValue(): float
s
c
#
GetRespawnsDisabled(): bool
s
c
#

Is this hero prevented from respawning?
GetRespawnTime(): float
s
c
#
GetStreak(): int
s
c
#

Value is stored in PlayerResource.
GetStrength(): float
s
c
#
GetStrengthGain(): float
s
c
#
GetTimeUntilRespawn(): float
s
c
#
GetTogglableWearable(slotTypeint): CBaseEntity
s
c
#

Get wearable entity in slot (slot).
HasAnyAvailableInventorySpace(): bool
s
c
#
HasFlyingVision(): bool
s
c
#
HasOwnerAbandoned(): bool
s
c
#
HasRoomForItem(itemNamestring, includeStashCombinesbool, allowSellingbool): int
s
c
#
HeroLevelUp(playEffectsbool): nil
s
c
#

Levels up the hero, true or false to play effects.
IncrementAssists(killerIdint): nil
s
c
#

Value is stored in PlayerResource.
IncrementDeaths(killerIdint): nil
s
c
#

Value is stored in PlayerResource.
IncrementDenies(): nil
s
c
#

Value is stored in PlayerResource.
IncrementKills(victimIdint): nil
s
c
#

Passed ID is for the victim, killer ID is ID of the current hero. Value is stored in PlayerResource.
IncrementLastHitMultikill(): nil
s
c
#

Value is stored in PlayerResource.
IncrementLastHits(): nil
s
c
#

Value is stored in PlayerResource.
IncrementLastHitStreak(): nil
s
c
#

Value is stored in PlayerResource.
IncrementNearbyCreepDeaths(): nil
s
c
#

Value is stored in PlayerResource.
IncrementStreak(): nil
s
c
#

Value is stored in PlayerResource.
IsBuybackDisabledByReapersScythe(): bool
s
c
#
IsReincarnating(): bool
s
c
#
IsStashEnabled(): bool
s
c
#
KilledHero(heroCDOTA_BaseNPC_Hero, inflictorCDOTABaseAbility | nil): nil
s
c
#
ModifyAgility(newAgilityfloat): nil
s
c
#

Adds passed value to base attribute value, then calls CalculateStatBonus.
ModifyGold(goldChangeint, reliablebool, reasonint): int
s
c
#

Gives this hero some gold.
ModifyIntellect(newIntellectfloat): nil
s
c
#

Adds passed value to base attribute value, then calls CalculateStatBonus.
ModifyStrength(newStrengthfloat): nil
s
c
#

Adds passed value to base attribute value, then calls CalculateStatBonus.
PerformTaunt(): nil
s
c
#
RecordLastHit(): nil
s
c
#
RespawnHero(buyBackbool, respawnPenaltybool): nil
s
c
#

Respawn this hero.
SetAbilityPoints(pointsint): nil
s
c
#

Sets the current unspent ability points.
SetBaseAgility(agilityfloat): nil
s
c
#
SetBaseIntellect(intellectfloat): nil
s
c
#
SetBaseStrength(strengthfloat): nil
s
c
#
SetBotDifficulty(difficultyint): nil
s
c
#
SetBuybackCooldownTime(timefloat): nil
s
c
#

Sets the buyback cooldown time.
SetBuyBackDisabledByReapersScythe(buybackDisabledbool): nil
s
c
#
SetBuybackGoldLimitTime(timefloat): nil
s
c
#

Set the amount of time gold gain is limited after buying back.
SetCustomDeathXP(valueint): nil
s
c
#

Sets a custom experience value for this hero. Note, GameRules boolean must be set for this to work!
SetGold(goldint, reliablebool): nil
s
c
#

Sets the gold amount for the player owning this hero.
SetPlayerID(playerIdPlayerID): nil
s
c
#
SetPrimaryAttribute(primaryAttributeAttributes): nil
s
c
#

Set this hero's primary attribute value.
SetRespawnPosition(originVector): nil
s
c
#
SetRespawnsDisabled(disableRespawnsbool): nil
s
c
#

Prevent this hero from respawning.
SetStashEnabled(enabledbool): nil
s
c
#
SetTimeUntilRespawn(timefloat): nil
s
c
#
ShouldDoFlyHeightVisual(): bool
s
c
#
SpendGold(costint, reasonEDOTA_ModifyGold_Reason): nil
s
c
#
UnitCanRespawn(): bool
s
c
#
UpgradeAbility(abilityCDOTABaseAbility): nil
s
c
#

This upgrades the passed ability if it exists and the hero has enough ability points.
WillReincarnate(): bool
s
c
#