Page 1 of 1

Can't access spidertron equipment grid with console?

Posted: Fri Nov 26, 2021 1:30 am
by Queuebee
Hello! I hope this in the right place.


I'm trying to create a command that spawns a Spidertron and fills it with equipment, but I don't understand how to 'access' the equipment grid.

I hoped it would be similar to how you insert items into power armor (https://wiki.factorio.com/Console#Add_i ... _inventory)

When I looked at the defines here https://lua-api.factorio.com/latest/def ... .inventory, I only found those..

Code: Select all

defines.inventory.spider_trunk	
defines.inventory.spider_ammo	
defines.inventory.spider_trash
Does this mean there is no way to access the spidertron equipment grid at this time?


P.S.
I'm NOT a modder. I'm just trying to this console thingy. It took me a while to figure this out, Is there some fast way to inspect entities through the console.. something like

Code: Select all

/c tojson(entity)
?

Re: Can't access spidertron equipment grid with console?

Posted: Fri Nov 26, 2021 8:26 am
by PFQNiet
entity.grid gives you the equipment grid that you can then manipulate.

Re: Can't access spidertron equipment grid with console?

Posted: Fri Nov 26, 2021 5:07 pm
by Queuebee
Oohhhhh wow, that worked!! That's amazing. I knew there had to be a way. Thank you very much!