Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: fireside on October 25, 2008, 04:15:11 AM

Title: Disable inventory
Post by: fireside on October 25, 2008, 04:15:11 AM
I have the standard inventory and for one scene I ended up too high with a puzzle.  Since it's not an inventory puzzle I thought I would disable the inventory but I'm having no luck using:
var inv = Game.GetInventoryBox();
inv.Disabled = true;

How would I do that?
Title: Re: Disable inventory
Post by: Catacomber on October 25, 2008, 04:55:35 AM
I don't know if this code would help--you could try it:

if(!InventoryActive) Game.InventoryVisible = false;

before you start the puzzle

or just

Game.InventoryVisible = false;

triggered somewhere so you can't add anything. 

BTW, I just noticed that if I set the coordinates "go to" for my actor to be the exact same as an item lying on the ground, it will never, ever go into inventory--interesting little details. : )
Title: Re: Disable inventory
Post by: Silverbristle on October 25, 2008, 05:43:06 AM
Theres a wiki article about disabling the inventory in a scene here. :)
http://wiki.dead-code.org/wakka.php?wakka=FAQ#inventory (http://wiki.dead-code.org/wakka.php?wakka=FAQ#inventory)
It might be what you are looking for.