Control.lua
Control.lua
Is there a way to get the resistance values from an entity when it is placed? and if possible alter them.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Control.lua
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.
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.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.