Jump to content

Scripting - parse entire container contents


Risuun

Recommended Posts

You can only make requests about the content of an inventory if you know exactly what type(s) of item you're looking for. However, with the OnItemAdded and OnItemRemoved events you can accurately keep track of changes to a container's inventory. Couple that with RemoveAllItems (twice to move items to another container then back again) and you should be able to detect all items within a container.

 

Be wary of doing this with actors, however. Particularly the player. Removing an item will also unequip it, and I'm not sure but I expect it would play havok with favourites and/or hotkeys.

 

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...