Collisionless Disable By Script


Provides a remote interface to script-disable entities in a way that won't cause collisions. All calls get put in a queue. The first one to disable an entity will have its custom error specified on the entity until it is removed, then the next error will display, and so on.

Internal
21 days ago
2.0
5
Owner:
Templarfreak
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
21 days ago
Latest Version:
0.0.1 (21 days ago)
Factorio version:
2.0
Downloaded by:
5 users

Simple code utility mod for other modders to use. Guarantees that different mods, scripts, or simply different uses of disabled_by_script, disabling or enabling the same entity will not collide. Every use of the remote interface is kept track of. The entity will remain disabled until every disable applied to the entity has been removed. You can provide a custom status with the disable, which will be displayed in the order that they were added.