create empty trash slot

Place to get help with not working mods / modding interface.
imajor
Fast Inserter
Fast Inserter
Posts: 164
Joined: Thu Aug 14, 2014 11:02 am
Contact:

create empty trash slot

Post by imajor »

Hi,

I want to copy the trash inventory from a character to another, including empty slots. How can I do that? I can call insert on the new inventory to all the items in the old, but I need to skip empty slots, because insert won't accept that. Any ideas?

Thanks in advance
imajor
Fast Inserter
Fast Inserter
Posts: 164
Joined: Thu Aug 14, 2014 11:02 am
Contact:

Re: create empty trash slot

Post by imajor »

I solved it with a gigantic hack, for the empty slots I just insert some cheap items (f.e. iron stick) and remove then in the next game tick. If I remove then in the same game tick, then the slots are not correct. I would still be veryhappy if someone could give me the proper way for doing this. Also when I copy quickbars, is there a way to copy the lock status of a slot?
Post Reply

Return to “Modding help”