Page 1 of 1

Help with LuaEquipmentGrid equipment

Posted: Tue Jan 23, 2024 11:26 pm
by BubstyBoy
I'm trying to figure out why grid.equipment doesn't work. In the Factorio LuaEquipmentGrid section of the Factorio API (https://lua-api.factorio.com/latest/cla ... tGrid.html) there is a list of functions and parameters, but I can't index the equipment parameter. whenever I try it gives me the following error: "LuaEntity doesn't contain key equipment". Does anyone know why or how to fix this?

I know I got the equipment grid because when I try grid.shield, it gives me a value corresponding to the shield health.

Re: Help with LuaEquipmentGrid equipment

Posted: Tue Jan 23, 2024 11:49 pm
by BubstyBoy
Nevermind, I figured it out. I forgot to change something :D