Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
mNo edit summary
No edit summary
Line 33: Line 33:
   
 
----
 
----
{{Template:WoW API}}
+
{{WoW API}}
[[Category:API Functions|ToggleBag]]
 
[[Category:API Container Functions|ToggleBag]]
 
[[Category:API Toggle Functions|ToggleBag]]
 

Revision as of 04:59, 4 January 2006

ToggleBag -Documentation by AlexanderYoshi-

Opens or closes the specified bag.

ToggleBag(bagNum);

Arguments
(Number bagNum)
bagNum
The number of which bag you want to toggle open or close

Returns
nil

Example
ToggleBag(2);
Result

Description
Opens or closes the specified bag.


NOTE:
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.

Template:WoW API