Secondly, aka item with unit number
item grid persistence and identification
item grid persistence and identification
Many objects provide links to the objects higher in hierarchy (entity - force\surface, gui - parent element). Can we have grid point to the owner entity or item? Can we have item_stack class point to inventory? Can we have inventory point to entity?
Last edited by Adil on Sat Feb 25, 2017 9:43 am, edited 1 time in total.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: item grid persistence and identification
An equipment grid has no reference to what owns it. The Lua object points directly at it.
As for inventory: it may or have an associated entity, item, or none.
As for inventory: it may or have an associated entity, item, or none.
If you want to get ahold of me I'm almost always on Discord.