API C_Garrison.GetFollowers

From Wowpedia
Jump to: navigation, search

One line summary description of function.

table = C_Garrison.GetFollowers([followerType])

Arguments

followerType
Number - 1 for followers, 2 for Ships. Can Also use LE_FOLLOWER_TYPE_GARRISON_6_0, LE_FOLLOWER_TYPE_SHIPYARD_6_2 and LE_FOLLOWER_TYPE_GARRISON_7_0.

Returns

A table containing information about available(?) followers:

Example answer here: C_Garrison.GetFollowers()

 {
   {
     classAtlas = "GarrMission_ClassIcon-Rogue",
     className = "Subtlety Rogue",
     classSpec = 28,
     displayHeight = 0.5,
     displayID = 55124,
     displayScale = 1,
     followerID = 0x00000000003A72DB,
     followerTypeID = 1,
     garrFollowerID = 0x0000000000000020,
     height = 1.3999999761581,
     iLevel = 600,
     isCollected = true,
     isFavorite = false,
     level = 90,
     levelXP = 400,
     name = "Dagg",
     portraitIconID = 1066116,
     quality = 2,
     scale = 0.60000002384186,
     xp = 170
   }, -- [1]
   -- currently returns 48 entry with faction bound followers
 }

Example answer with a collected follower C_Garrison.GetFollowers()

 {
   [1] = {
     classAtlas = "GarrMission_ClassIcon-Rogue",
     className = "Subtlety Rogue",
     classSpec = 28,
     displayHeight = 0.5,
     displayID = 55124,
     displayScale = 1,
     followerID = 0x00000000003A72DB,
     followerTypeID = 1,
     garrFollowerID = 0x0000000000000020,
     height = 1.3999999761581,
     iLevel = 600,
     isCollected = true,
     isFavorite = false,
     level = 90,
     levelXP = 400,
     name = "Dagg",
     portraitIconID = 1066116,
     quality = 2,
     scale = 0.60000002384186,
     xp = 170
   }, -- [1]
   [2] = {
    displayHeight=0.25,
    followerTypeID=2,
    iLevel=600
    scale=110,
    classAtlas="Ships_TroopTransport-List",
    garrFollowerID="0x0000000000000240",
    displayScale=95,
    status="On Mission",
    level=100,
    quality=3,
    portraitIconID=0,
    isFavorite=false
    xp=4000,
    texPrefix="Ships_TroopTransport",
    className="Transport",
    classSpec=53,
    name="The Slash Dance",
    followerID="0x0000000000F9DC95",
    height=0.3000000001192093,
    displayID=63894,
    levelXP=40000,
    iscollected=true
 },    -- currently returns 48 entry with faction bound followers
}

Notes

Wrong followers
Sometimes this function returns a list of followers from the other faction (alliance/horde). currently the reason is unclear.

Patch changes

  • Legion Patch 7.0.3 (2016-07-19): Can now take Arguments for Legion Troops/Champions
  • Warlords of Draenor Patch 6.2.0 (2015-06-23): Added Argument for the new Ship type.
  • Warlords of Draenor Patch 6.0.2 (2014-10-14): Added.