Page 1 of 1

Is it possible to instantiate a Lua class from API

Posted: Thu Apr 26, 2018 11:25 am
by TelemakFactorio
I am looking for a hidden inventory. I think the invisible chest solution is overcomplicated.
Is it possible to instantiate a LuaInventory by code ? How do I do that ? There is a "new" word or something like in C++ ?

Regards

Re: Is it possible to instantiate a Lua class from API

Posted: Thu Apr 26, 2018 2:54 pm
by eradicator
TelemakFactorio wrote: Is it possible to instantiate a LuaInventory by code ? How do I do that ? There is a "new" word or something like in C++ ?
No. Inventories only exist when they're bound to an actual entity.

Re: Is it possible to instantiate a Lua class from API

Posted: Thu Apr 26, 2018 4:11 pm
by TelemakFactorio
Ok thanks :)