#2
16th Mar 2015 at 12:34 PM
Last edited by Arsil : 16th Mar 2015 at
12:44 PM.
Posts: 997
Thanks: 22100 in 95 Posts
15 Achievements
Adding an inventory to an existing object eh? Not sure about that... but maybe it's possible.
I'd try with a pure scripting mod, of course, and add to every existing BaristaBar (and newly bought ones, with an event handler)
Code:
// bb is an object of class BaristaBar
if (!bb.HasInventory)
{
bb.AddComponent<InventoryComponent>(new object[] { MaxInventoryCapacity });
}
This is just theory, I haven't tried. And it's only a little piece to achieve what you want to do
(you'll need custom interactions to open/furnish the inventory and to actually use the objects
in the bar's inventory to make drinks/whatever).
It's not a beginner friendly project if you are new to scripting, but, hey, I'm just saying this
for preparing you, I don't want to discourage you ^^