PDA

View Full Version : Inventory + item highlighting



Kaldrick
11-10-2009, 02:52 PM
Is it possible to do an inventory? And how could I test if I see an item that's right in front of me, highlight it and - if I'd click a button - pick up it? Any guidelines would be appreciated, I'm not aiming for a complete solution ;]

mikepurvis
11-10-2009, 03:09 PM
Check out extending the health vial, I have used that before in making an inventory system. You can do whatever you want on the event to the playercontroller, from changing your characters mesh, to giving them a power up, adding/or/and removing weapons from the inventory.

decko
11-11-2009, 05:37 AM
The engine has the backend for making inventories. Take a look at the Engine.InventoryManager class.

http://wiki.beyondunreal.com/UE3:InventoryManager_%28UT3%29

musilowski
11-11-2009, 05:54 AM
Is that manager good for a RPG-ish complicated inventory system? If not, should I extend it or create one from scratch?

Makaze
11-11-2009, 11:45 AM
I'd extend InventoryManager. It doesn't sound like it from the name but it's used in the weapon firestate, weapon pickup and holding, even the HUD code.