Help with LuaEquipmentGrid equipment

Place to get help with not working mods / modding interface.
Post Reply
BubstyBoy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Aug 15, 2023 3:24 pm
Contact:

Help with LuaEquipmentGrid equipment

Post 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.

BubstyBoy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Aug 15, 2023 3:24 pm
Contact:

Re: Help with LuaEquipmentGrid equipment

Post by BubstyBoy »

Nevermind, I figured it out. I forgot to change something :D

Post Reply

Return to “Modding help”