ISXWoW:unit (Data Type)
From ISMods Wiki
Contents |
[edit]
Description
[edit]
Members
- bool Aggro
- unit AttackingUnit
- Returns the unit being attacked.
- 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 CanCooperate[guid]
- Returns true if this unit would cooperate (i.e Assist) the unit specified by guid.
- 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 Casting
- Returns the name of the spell being cast.
- Unit[${AttackGUID}].Casting will return the spell being cast by the attacker.
- string Class
- Returns the class of the unit.
- string Classification
- Returns (Normal, Elite, Rare Elite, Worldboss, Rare)
- string CreatureType
- 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.
- bool Dead
- Returns true if the Unit is dead, otherwise false.
- float Distance
- Returns the Distance to the unit.
- string FactionGroup
- Returns Horde or Alliance.
- bool Flying
- 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.
- 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 MaxPower
- Returns the units Maximum Power.
- int MaxRage
- Returns the units Maximum Rage.
- bool Mine
- Returns true for owned Totems/Pets.
- string Mount
- Returns the name of your mount.
- unit Owner
- 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.
- 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
- Returns true if the unit is stealthed.
- 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.
- 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
- bool CanGossip
- bool IsClassTrainer
- bool IsMerchant
- bool IsTaxiMaster
- bool IsTradeskillTrainer
- bool IsSpiritHealer
- bool IsInnkeeper
- bool IsBanker
- bool IsAuctioneer
- bool IsStableMaster
- bool CanRepair
- float Height
- bool Swimming
[edit]
Methods
- Target
- SpellTarget
- Assist
[edit]
Returns
[edit]
Inherits
[edit]
