Fr/ISXWoW:unit (Data Type)

From ISMods Wiki

Contents

Description

Membres

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.
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 class of the unit.
  • int CurrentMana
Returns the amount Mana 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 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. I don't know how this works in group situations where you know the actual value or your party member's health.
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 Rage.
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.
  • int ReactionLevel
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 tapped
Returns true if the Unit is tapped by the active player
Returns true if the Unit is Skinnable.
Returns the creature type e.g. Humanoid.
Returns true if this unit would cooperate (i.e Assist) the unit specified by guid.

Methods

  • Target
  • SpellTarget
  • Assist

Returns

Inherits

object

See Also