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