Hi everyone. I want to do an inventory system. For do it, I need to save each property of the entity I’m saving on the inventory. I thought to read Adv duplicator system, but is so huge and I’m getting mad. Could someone explain me how to save in a data file all properties of an entity? Thanks for read.
Use GLON to save an entitiy’s table into a storable string. I’ll explain in further detail when I get the chance, I gotta go somewhere now.
Just the GLON name helped me. Thanks.
You can do it the super simple way also.
[lua]
pl.Inventory = {}
table.Insert(pl.Inventory, Entity:EntIndex())
[/lua]
Nope.
I thought how I could. But I’m wrong. When I use glon with an entity I just get the entity’s id…