🦸Hero
Last updated
Last updated
CHero
.CHero
extends CNPC
CHero
): integer
Name | Type | Description |
---|---|---|
Returns the hero's current XP.
CHero
): integer
Name | Type | Description |
---|---|---|
Returns the hero's available ability points.
CHero
): number
Could be less than current game time if hero is already alive.
Name | Type | Description |
---|---|---|
Returns the game time when the hero will respawn.
CHero
): number
Returns the next respawn time penalty, e.g. buyback.
CHero
): Enum.Attributes
Returns the hero's primary attribute type.
CHero
): number
Returns white
value of strength.
CHero
): number
Returns white
value of agility.
CHero
): number
Returns white
value of intellect.
CHero
): number
Returns total value of strength.
CHero
): number
Returns total value of agility.
CHero
): number
Returns total value of intellect.
CHero
): number
Returns the time when the hero was last hurt.
CHero
): number
Returns the amount of damage the hero last received.
CHero
): integer
Returns the damage taken by the hero in the last in ~1 second.
CHero
): number
Returns the pain factor of the hero. Not sure what it is.
CHero
): number
Returns the pain factor of the hero's target. Not sure what it is.
CHero
): boolean
Returns true
if the hero is alive. Recommended to use Entity.IsAlive
instead.
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.
CHero
): CAbility[]
Returns facet ability array.
CHero
): integer
Returns facet id. Start from 1.
Returns the last hero pos from maphack.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|