Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns a list of garrison tech followers.
info = C_Garrison.GetFollowers([followerType])
Arguments[]
- followerType
- Enum.GarrisonFollowerType?
Value | Field | Description |
---|---|---|
1 | FollowerType_6_0_GarrisonFollower | Garrison |
2 | FollowerType_6_0_Boat | Shipyard |
4 | FollowerType_7_0_GarrisonFollower | Legion |
22 | FollowerType_8_0_GarrisonFollower | Battle for Azeroth |
123 | FollowerType_9_0_GarrisonFollower | Shadowlands |
Returns[]
- info
- GarrFollowerInfo[]
Field | Type | Description |
---|---|---|
classAtlas | string | AtlasID |
className | string | |
classSpec | number | GarrClassSpec.ID |
displayHeight | number | |
displayIDs | DisplayInfo[] | |
displayScale | number | |
followerID | string|number | GUID; can be garrFollowerID
|
followerTypeID | number | Enum.GarrisonFollowerType |
garrFollowerID | number? | GarrFollowerID; can be nil
|
height | number | |
iLevel | number | |
isAutoTroop | boolean? | |
isCollected | boolean? | |
isFavorite | boolean | |
isMaxLevel | boolean | |
isSoulbind | boolean? | |
isTroop | boolean? | |
level | number | |
levelXP | number? | |
name | string | |
portraitIconID | number | |
quality | number | |
scale | number | |
slotSoundKitID | number? | |
status | string? | |
xp | number? |
Field | Type | Description |
---|---|---|
followerPageScale | number | |
id | number | |
showWeapon | boolean? |
Details[]
- This does not return a complete list of all possible followers, it will be whatever is displayed for the character in the Garrison UI.
Example[]
Dumps the first follower.
local followers = C_Garrison.GetFollowers()
DevTools_Dump(followers[1])
{
classAtlas = "GarrMission_ClassIcon-Priest-Discipline",
className = "Discipline Priest",
classSpec = 124,
displayIDs = {
[1] = {
followerPageScale = 1,
id = 67797
showWeapon = true,
}
},
displayHeight = 0.5,
displayScale = 1,
followerID = "0x0000000004CBDB61",
followerTypeID = 4,
garrFollowerID = 856
height = 1,
iLevel = 900,
isAutoTroop = false,
isCollected = true,
isFavorite = false,
isMaxLevel = true,
isSoulbind = false,
isTroop = false,
level = 45,
levelXP = 200000,
name = "Calia Menethil",
portraitIconID = 1401872,
quality = 4,
scale = 0.69999998807907,
slotSoundKitID = 62813,
xp = 60600,
}
Patch changes[]
Patch 7.0.3 (2016-07-19): Supports Legion Troops/Champions.
Patch 6.2.0 (2015-06-23): Supports the Shipyard.
Patch 6.0.2 (2014-10-14): Added.