I'm trying to make entities that only last a given time, but am assuming that keeping track of it using script would cause a lot more lag than letting the engine do it natively would. I'd like for production_health_effect to be moved to EntityWithOwner / EntityWithHealth and the properties changed to 'active' and 'inactive'.
Specifically, I am interested in this for inserters and pumps. I am trying to model wear on the entities that are most likely to be affected by it.
Move production_health_effect
Re: Move production_health_effect
Sorry, but no. This logic on assembling machines already forces them to be active at all times and has a negative performance cost to exist. It's also ripe for crashes due to mod errors/mod interference.
If you want to get ahold of me I'm almost always on Discord.