Returns info about a follower assigned to a building. This will return information about the follower (if any) assigned to the building on the specified plot.
Note that this function takes a plot ID, not a building ID. To query for the follower at, say, the Enchanter's Study, one would have to first find the plot where the study is and then give that plot ID to this function.
See also _(API_CAT_GARRISON).
plotID- The ID of the plot to query (
name- Follower name (
level- Follower level (
quality- Follower quality (
displayID- Display ID for the follower model (
followerID- Follower ID (seems to be unused? See below) (
garrFollowerID- Hexadecimal number (as a string), this seems to be the actual follower ID. (
status- Follower status (
portraitIconID- Portrait icon ID for the follower (
-- Finds a level 2 barracks and prints out the name of the bodyguard assigned to it local buildings = C_Garrison.GetBuildings() for i = 1, #buildings do local buildingId = buildings[i].buildingID if buildingId == 27 then -- Level 2 Barracks local name = C_Garrison.GetFollowerInfoForBuilding(plot_id) print("The bodyguard currently assigned to barracks is " .. name or "<No Bodyguard>") end end