LuaEntityPrototype::gun
Posted: Sun Jul 26, 2020 2:27 pm
It would be nice to beable to read the gun of a artillery turret or normal turret, because I didnt found ANY way todo that in script.
No, not possible because I dont need the dmg, but I need the prototype itself.orzelek wrote: Mon Jul 27, 2020 5:30 pm Are you looking for this:
https://lua-api.factorio.com/latest/Lua ... ack_result
?
Edit:
Looking at this I don't think that turrets have more information. I'm not sure how to get damage for laser turret in runtime from prorotype data. On gun turrets you might be able to grab ammo from inventory slot and use that to calculate damage.
You mean something like game.entity_prototypes or entity.prototype?LuziferSenpai wrote: Mon Oct 19, 2020 11:53 am So any Update to this?
No, not possible because I dont need the dmg, but I need the prototype itself.orzelek wrote: Mon Jul 27, 2020 5:30 pm Are you looking for this:
https://lua-api.factorio.com/latest/Lua ... ack_result
?
Edit:
Looking at this I don't think that turrets have more information. I'm not sure how to get damage for laser turret in runtime from prorotype data. On gun turrets you might be able to grab ammo from inventory slot and use that to calculate damage.