Page 1 of 1
Control.lua
Posted: Sun Jun 23, 2019 5:18 am
by mat1k
Is there a way to get the resistance values from an entity when it is placed? and if possible alter them.
Re: Control.lua
Posted: Sun Jun 23, 2019 6:09 am
by eradicator
You can read them.
https://lua-api.factorio.com/latest/Lua ... esistances
game.entity_prototypes[entity_name].prototype.resistances
entity.prototype.resistances
But changing is only possible in data stage.