🦸Hero
Table to work with CHero
.
CHero
.CHero
extends CNPC
GetCurrentXP(hero: CHero
): integer
CHero
): integer
Returns the hero's current XP.
GetAbilityPoints(hero: CHero
): integer
CHero
): integer
Returns the hero's available ability points.
GetRespawnTime(hero: CHero
): number
CHero
): number
Could be less than current game time if hero is already alive.
Returns the game time when the hero will respawn.
GetRespawnTimePenalty(hero: CHero
): number
CHero
): number
Returns the next respawn time penalty, e.g. buyback.
GetPrimaryAttribute(hero: CHero
): Enum.Attributes
CHero
): Enum.Attributes
Returns the hero's primary attribute type.
GetStrength(hero: CHero
): number
CHero
): number
Returns white
value of strength.
GetAgility(hero: CHero
): number
CHero
): number
Returns white
value of agility.
GetIntellect(hero: CHero
): number
CHero
): number
Returns white
value of intellect.
GetStrengthTotal(hero: CHero
): number
CHero
): number
Returns total value of strength.
GetAgilityTotal(hero: CHero
): number
CHero
): number
Returns total value of agility.
GetIntellectTotal(hero: CHero
): number
CHero
): number
Returns total value of intellect.
GetLastHurtTime(hero: CHero
): number
CHero
): number
Returns the time when the hero was last hurt.
GetHurtAmount(hero: CHero
): number
CHero
): number
Returns the amount of damage the hero last received.
GetRecentDamage(hero: CHero
): integer
CHero
): integer
Returns the damage taken by the hero in the last in ~1 second.
GetPainFactor(hero: CHero
): number
CHero
): number
Returns the pain factor of the hero. Not sure what it is.
GetTargetPainFactor(hero: CHero
): number
CHero
): number
Returns the pain factor of the hero's target. Not sure what it is.
GetLifeState(hero: CHero
): boolean
CHero
): boolean
Returns true
if the hero is alive. Recommended to use Entity.IsAlive
instead.
GetPlayerID(hero: CHero
): integer
CHero
): integer
Returns the ID of the hero player.
If the hero is an illusion, Arc's copy, Meepo clone, etc. returns the original hero, otherwise returns nil.
Returns true
if talent is learned.
Example
GetFacetAbilities(hero: CHero
): CAbility[]
CHero
): CAbility[]
Returns facet ability array.
GetFacetID(hero: CHero
): integer
CHero
): integer
Returns facet id. Start from 1.
Returns the last hero pos from maphack.
Last updated