Forum rules - please read before posting.

Small feature request: Action to check selected inventory item

edited April 2014 in Engine development
Having an action which checks the currently selected inventory item would be a really useful addition.

It could be used in an "equip" menu in which you put certain items in certain equipment slots, it could help with specifying unhandled hotspot interactions for each inventory item, and I'm sure there are plenty of other uses for it that others can think of. 

Seems like a relatively simple script too, though I wouldn't really know where to begin without a bit of help.

Comments

  • The currently-selected item is stored in the RuntimeInventory script's selectedItem variable:

    GameObject.FindWithTag (Tags.persistentEngine).GetComponent <RuntimeInventory>().selectedItem;


  • Thanks, I'll try to put something together and post it in the extending the editor forum if I succeed!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.