Skip to content

Dispenser class ​

No description available

Functions ​

mnscript
StringResult Dispenser.DispenseItem(string, number) 
  • Dispenses an item.
mnscript
Dispenser.DisplayItem(string, bool) 
  • Displays the item on the dispenser screen.
mnscript
DispenserItem[] Dispenser.GetContents() 
  • Gets contents of the dispenser.
mnscript
DispenserItem Dispenser.GetItem(string) 
  • Finds a DispenserItem of the given name.
mnscript
Player Dispenser.GetOwner() 
  • Gets the Player who owns this dispenser.
mnscript
bool Dispenser.HasItem(string) 
  • Gets whether the dispenser contains a certain item.
mnscript
Dispenser.HideAllItems() 
  • Removes all items being displayed from the dispenser screen.
mnscript
Dispenser.HideItem(string) 
  • Stops displaying the item on the dispenser screen.
mnscript
bool Dispenser.IsValid() 
  • Gets whether the Dispenser is valid.