Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetNumCompanions

Last wiki revision 2023-05-07

Returns the number of mounts. count = GetNumCompanions(type)

  • type: - Type of companions to count: "CRITTER", or "MOUNT".
  • count: - The number of companions of a specific type.

The following snippet prints how many mounts the player has collected. local count = GetNumCompanions("MOUNT"); print('Hello, I have collected a total of ' .. count .. ' mounts.');

Source

https://warcraft.wiki.gg/wiki/API_GetNumCompanions · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.