GetCompanionInfo
functionguessedavailable in: camelot
Returns info for a companion.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
type | string | Companion type to query: "CRITTER" or "MOUNT". |
id | number | Index of the slot to query. Starting at 1 and going up to GetNumCompanions("type"). |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | creatureID | number | The NPC ID of the companion. |
| 2 | creatureName | string | The name of the companion. |
| 3 | creatureSpellID | number | The spell ID to cast the companion. This is not passed to CallCompanion, but can be used with, e.g., GetSpellInfo. |
| 4 | icon | string | The texture of the icon for the companion. |
| 5 | issummoned | boolean? | 1 if the companion is summoned, nil if it's not. |
| 6 | mountType | number | Bitfield for air/ground/water mounts |
In wowlua's emulated client
guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.