Page 1 of 1

Move production_health_effect

Posted: Fri Nov 15, 2024 9:23 am
by Moterius
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.

Re: Move production_health_effect

Posted: Wed Nov 20, 2024 12:00 am
by Rseding91
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.