personal roboport construction_radius

Place to get help with not working mods / modding interface.
Post Reply
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

personal roboport construction_radius

Post by mophydeen »

I need the construction_radius for a player's personal roboports.

prototypes/equipment/equipment.lua

Code: Select all

name = "personal-roboport-equipment",
construction_radius = 15,
	
name = "personal-roboport-mk2-equipment",
construction_radius = 20,
With these number you can calculate it yourself.
BUT I can't get it.

Code: Select all

game.equipment_prototypes[equipment.name].construction_radius
error:
LuaEquipmentPrototype doesn't contain key construction_radius.
https://lua-api.factorio.com/latest/Lua ... otype.html


Am I calling the wrong thing?

Thank you.

note: I don't want to hard code the 15 & 20, I check on type "roboport-equipment"


Post Reply

Return to “Modding help”