personal roboport construction_radius
Posted: Tue Sep 25, 2018 10:16 am
I need the construction_radius for a player's personal roboports.
prototypes/equipment/equipment.lua
With these number you can calculate it yourself.
BUT I can't get it.
error:
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"
prototypes/equipment/equipment.lua
Code: Select all
name = "personal-roboport-equipment",
construction_radius = 15,
name = "personal-roboport-mk2-equipment",
construction_radius = 20,
BUT I can't get it.
Code: Select all
game.equipment_prototypes[equipment.name].construction_radius
https://lua-api.factorio.com/latest/Lua ... otype.htmlLuaEquipmentPrototype doesn't contain key construction_radius.
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"