No Instant Build


Prevents instant build of entities. Instead, they will be built over time.

Tweaks
23 days ago
1.1
184
Cheats

g Disabling entities?

1 year, 6 months ago

can you share the part of the code that disables entities? Seems useful is all.

1 year, 6 months ago

Sure, here ya go:

-- Deactivate the entity
entity.active = false
entity.operable = false

-- Change the force of this entity to the neutral force, so it won't be repaired by robots
entity.force = game.forces.neutral
1 year, 6 months ago

thanks

New response