Page 1 of 1

personal roboport construction_radius

Posted: Tue Sep 25, 2018 10:16 am
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"

Re: personal roboport construction_radius

Posted: Tue Sep 25, 2018 11:15 am
by mophydeen
found it:

Code: Select all

game.equipment_prototypes[equipment.name].logistic_parameters.construction_radius