agricultural-tower radius is not reflected ingame
Posted: Sun Apr 19, 2026 10:46 pm
Hi,
i have a problem. When calling the prototype.radius of any type = "agricultural-tower", i get a converted radius number back during control.lua!
for example i define in the prototype
growth_grid_tile_size = 2,
radius = 4,
when i call prototye.radius i get an api return like this
r = 2.6847960598177
how can i get the real radius that is defined in the file? during final fix the protoype radius is still correct but when ingame it suddenly is this wired number!
this is what i have:
https://github.com/MoltenOre/Show_Agri_Range
I appreciate any help
i have a problem. When calling the prototype.radius of any type = "agricultural-tower", i get a converted radius number back during control.lua!
for example i define in the prototype
growth_grid_tile_size = 2,
radius = 4,
when i call prototye.radius i get an api return like this
r = 2.6847960598177
how can i get the real radius that is defined in the file? during final fix the protoype radius is still correct but when ingame it suddenly is this wired number!
this is what i have:
https://github.com/MoltenOre/Show_Agri_Range
I appreciate any help