ISXWoW:unit (Data Type)

From ISMods Wiki

Contents

Description

Members

  • bool Aggro
  • unit AttackingUnit
Returns the unit being attacked.
Returns the name of the Buff in buff slot # (Currently slots 1-56 are valid)
Returns the buff slot that the named Buff occupies or NULL if that buff is not present.
  • bool CanCooperate[guid]
Returns true if this unit would cooperate (i.e Assist) the unit specified by guid.
Returns true if the Unit is lootable by the active player. The object may be lootable, but will return false if not lootable by you.
Returns the name of the spell being cast.
Unit[${AttackGUID}].Casting will return the spell being cast by the attacker.
Returns the class of the unit.
Returns (Normal, Elite, Rare Elite, Worldboss, Rare)
Returns the creature type e.g. Humanoid/Mechanical/Beast.
  • int CurrentMana
Returns the amount Mana the unit currently has.
  • int CurrentPower
Returns the amount Power the unit currently has.
  • int CurrentRage
Returns the amount Rage the unit currently has.
  • int CurrentEnergy
Returns the amount Energy the unit currently has.
  • int CurrentHappiness
Returns the current Happiness of the unit.
Returns true if the Unit is dead, otherwise false.
Returns the Distance to the unit.
Returns Horde or Alliance.
Returns true if the player is on a griffon, bat, etc
Returns the current health of the player. Depending on the context, this may return a percentage, or an actual value. If the player object is YOU then it will always return a full value. In group situations, this returns the current hps (not a percentage) of your group member.
Returns the level of this unit.
Returns true if the Unit is lootable without checking the context of the current player.
Returns the units Maximum Energy.
  • int MaxHappiness
Returns the units Maximum Happiness.
Returns the max health of the player. Depending on the context, this may return a percentage, or an actual value. Will always return 100 if actual HPs are unknown. (For 100%)
Returns the units Maximum Mana.
Returns the units Maximum Power.
Returns the units Maximum Rage.
Returns true for owned Totems/Pets.
Returns the name of your mount.
Returns the units Hitpoints as a percentage.
Returns the units Mana as a percentage.
Returns the units Rage as a percentage.
Returns the units Energy as a percentage.
Returns the units Happiness as a percentage.
Returns the reaction level of the unit
2 - Red
3 - Orange
4 - Yellow
5 - Green
6 - very green
Returns the PLAYER race of the current unit. Not sure if/where/how we access non-PC races yet for units.
None
Human
Orc
Dwarf
Night Elf
Undead
Tauren
Gnome
Troll
Returns true if the unit is stealthed.
Returns true if the Unit is tapped
Returns true if the Unit is tapped by the active player
Returns true if the Unit is Skinnable.
  • bool IsPathObstructed[x,y,z,within]
true if unit path to x,y,z is block in certin distance
  • bool IsPathObstructed[x,y,z,within,from x,from y,from z]
true if unit path from to x,y,z is block in certin distance

Methods

  • Target
  • SpellTarget
  • Assist

Returns

Inherits

object

See Also