Fr/ISXWoW:unit (Data Type)
From ISMods Wiki
Contents |
[edit]
Description
[edit]
Membres
- buff Buff[#]
- Returns the name of the Buff in buff slot # (Currently slots 1-56 are valid)
- buff Buff[name]
- Returns the buff slot that the named Buff occupies or NULL if that buff is not present.
- bool CanLoot
- 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.
- string Class
- 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.
- bool Dead
- Returns true if the Unit is dead, otherwise false.
- float Distance
- Returns the Distance to the unit.
- int Health
- 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.
- int Level
- Returns the level of this unit.
- bool Lootable
- Returns true if the Unit is lootable without checking the context of the current player.
- int MaxEnergy
- Returns the units Maximum Energy.
- int MaxHappiness
- Returns the units Maximum Happiness.
- int MaxHealth
- 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%)
- int MaxMana
- Returns the units Maximum Mana.
- int MaxRage
- Returns the units Maximum Rage.
- float PctHPs
- Returns the units Hitpoints as a percentage.
- float PctMana
- Returns the units Mana as a percentage.
- float PctRage
- Returns the units Rage as a percentage.
- float PctEnergy
- Returns the units Energy as a percentage.
- float PctHappiness
- 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
- string Race
- 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
- bool Tapped
- Returns true if the Unit is tapped
- bool TappedByMe
- Returns true if the Unit is tapped by the active player
- bool Skinnable
- 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.
[edit]
Methods
- Target
- SpellTarget
- Assist
[edit]
Returns
[edit]
Inherits
[edit]
