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.
[QUOTE=Entoros;16037981]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.[/QUOTE]
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]
[QUOTE=find me;16039201]You can do it the super simple way also.
[lua]
pl.Inventory = {}
table.Insert(pl.Inventory, Entity:EntIndex())
[/lua][/QUOTE]
Nope.
[QUOTE=Entoros;16037981]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.[/QUOTE]
I thought how I could. But I'm wrong. When I use glon with an entity I just get the entity's id...
Sorry, you need to Log In to post a reply to this thread.