WildStar:API TYPE Unit

From AddOn Studio
Revision as of 05:19, 5 July 2020 by Bear (talk | contribs) (Created page with "{{../uiapitype}} The '''unit''' GameLib type, and used to hold information about a particular target-able unit in the world. This userdata type is not ac...")
Jump to navigation Jump to search

{{../uiapitype}} The unit GameLib type, and used to hold information about a particular target-able unit in the world. This [[../API TYPE userdata|userdata]] type is not accessible as table and is immutable.

local unit = GameLib.GetPlayerUnit()

Members

  • {{../id|APIT|Unit|GetAbsorptionMax}}()
  • {{../id|APIT|Unit|GetAbsorptionValue}}()
  • {{../id|APIT|Unit|GetAlternateTarget}}()
  • {{../id|APIT|Unit|GetAuctionableItems}}())
  • {{../id|APIT|Unit|GetBaseLifesteal}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetBasicStats}}()
  • {{../id|APIT|Unit|GetBuffs}}()
  • {{../id|APIT|Unit|GetCCDurationModifier}}() -1) + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetClassId}}()
  • {{../id|APIT|Unit|GetCooldownReductionModifier}}() + 0.000005 - 1) * 10000) / 100))
  • {{../id|APIT|Unit|GetCritChance}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetCritSeverity}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetDeflectChance}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetDeflectCritChance}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetEquippedItems}}()
  • {{../id|APIT|Unit|GetFaction}}() - returns unit nFactionID
  • {{../id|APIT|Unit|GetGuildName}}()
  • {{../id|APIT|Unit|GetHealth}}()
  • {{../id|APIT|Unit|GetId}}()
  • {{../id|APIT|Unit|GetIgnoreArmorBase}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetIgnoreShieldBase}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetInterruptArmorMax}}()
  • {{../id|APIT|Unit|GetInventoryItems}}()
  • {{../id|APIT|Unit|GetLevel}}()
  • {{../id|APIT|Unit|GetLevelDifferential}}(unitTarget)
  • {{../id|APIT|Unit|GetMagicMitigation}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetMana}}()
  • {{../id|APIT|Unit|GetManaCostModifier}}() -1) + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetManaRegenInCombat}}() * 2)
  • {{../id|APIT|Unit|GetMaxHealth}}()
  • {{../id|APIT|Unit|GetMaxMana}}()
  • {{../id|APIT|Unit|GetMaxResource}}(4)
  • {{../id|APIT|Unit|GetName}}()
  • {{../id|APIT|Unit|GetPhysicalMitigation}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetPlayerPathType}}()
  • {{../id|APIT|Unit|GetPosition}}()
  • {{../id|APIT|Unit|GetPrereqInfo}}(tFlags.nPrereqVendorId)
  • {{../id|APIT|Unit|GetPvPDefensePercent}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetPvPOffensePercent}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetRaceId}}()
  • {{../id|APIT|Unit|GetResource}}(4)
  • {{../id|APIT|Unit|GetShieldCapacity}}()
  • {{../id|APIT|Unit|GetShieldCapacityMax}}()
  • {{../id|APIT|Unit|GetShieldRebootTime}}() / 1000)
  • {{../id|APIT|Unit|GetShieldRegenPct}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetStrikethroughChance}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetSupplySatchelItems}}(1)
  • {{../id|APIT|Unit|GetTarget}}()
  • {{../id|APIT|Unit|GetTechMitigation}}() + 0.000005) * 10000) / 100))
  • {{../id|APIT|Unit|GetTitle}}()
  • {{../id|APIT|Unit|GetTitleOrName}}()
  • {{../id|APIT|Unit|GetUnitMount}}()
  • {{../id|APIT|Unit|GetUnitProperty}}(Unit.CodeEnumProperties.ManaPerFiveSeconds).fValue))
  • {{../id|APIT|Unit|IsACharacter}}()
  • {{../id|APIT|Unit|IsDead}}()
  • {{../id|APIT|Unit|IsInCombat}}()
  • {{../id|APIT|Unit|IsInVehicle}}()
  • {{../id|APIT|Unit|IsInYourGroup}}()
  • {{../id|APIT|Unit|IsMentoring}}()
  • {{../id|APIT|Unit|IsMounted}}()
  • {{../id|APIT|Unit|IsPvpFlagged}}()
  • {{../id|APIT|Unit|IsRallied}}()
  • {{../id|APIT|Unit|IsThePlayer}}()
  • {{../id|APIT|Unit|IsValid}}()
  • {{../id|APIT|Unit|SetAlternateTarget}}(unitTarget)
  • {{../id|APIT|Unit|ShouldShowCastBar}}
  • {{../id|APIT|Unit|ShouldShowBreathBar}}()

See Also

  • [[../UI API/]]