Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API C Vignettes.GetNumVignettes

Last wiki revision 2020-09-03

Returns the number of vignettes currently visible to the player. numVignettes = C_Vignettes.GetNumVignettes

  • numVignettes : Number - number of vignettes currently visible on the player's minimap (either as icons or directional arrows).

To print the names of all currently visible vignettes: local numVignettes = C_Vignettes.GetNumVignettes for i=1, numVignettes do local vigInstanceID = C_Vignettes.GetVignetteInstanceID(i) local ofsX, ofsY, name = C_Vignettes. GetVignetteInfoFromInstanceID(vigInstanceID) print(i, name, " at +(" .. ofsX .. ", " .. ofsY .. ")") end if numVignettes == 0 then print("No vignettes are currently visible") end

Source

https://warcraft.wiki.gg/wiki/API_C_Vignettes.GetNumVignettes · 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.