No Instant Build


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

Tweaks
10 months ago
1.1
224
Cheats

g Disabling entities?

2 years ago

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

2 years 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
2 years ago

thanks

New response