Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API ToggleBag

Last wiki revision 2020-02-29

ToggleBag(bagNum);

Opens or closes the specified bag.

  • bagNum : Number - the bagID you want to toggle open or close
  • nil

ToggleBag(2);

  • If toggling the backpack with the keyboard, this function is called when opening but NOT when closing. Closing appears to be done by ToggleBackpack. However, if the mouse is used to close the Backpack then this function does respond.

Source

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