Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Kaz on February 08, 2010, 04:13:59 PM
-
Hi all
I have two inventories, one for documents and one for objects, related to two actors, InvDocs and InvObjects (I know, they could just as easliy be entities). I get the whole actor.TakeItem thing but does that also extend to other methods like TotalNumItems, QueryItem and IsItemTaken or are those methods only for the Game object?
I want to switch a menu button on depending on whether there are things in each inventory. How do I check whether the number of items in InvDocs's inventory is > 0? I tried InvDocs.QueryItem and InvDocs.IsItemTaken and got 'call ignored'.
Cheers
-
Solved - HasItem works with entities, and a QueryItem loop will throw up a null if there's nothing in the entity's inventory.