Page 1 of 1
[solved] How to prevent robot build/mine an entity?
Posted: Sun Oct 16, 2016 12:53 am
by aubergine18
Is there a way, without using events, to prevent construction robots from building or mining a specific entity?
I can see a way by using events, but was wondering if there's a flag that prevents logistic robots working with a specific type (or more correctly: prototype) of entity, as I'd prefer to avoid using events for such a rare situation.
Re: How to prevent robot build/mine an entity?
Posted: Sun Oct 16, 2016 4:09 pm
by Rseding91
The entity prototype flags "not-deconstructable" and "not-blueprintable". Although I don't think that prevents ghosts from being created when an entity is killed or if the player built manually using shift click.
Re: How to prevent robot build/mine an entity?
Posted: Sun Oct 16, 2016 4:43 pm
by aubergine18
I can handle the player placement without too much pain, so those flags above should solve all the other issues I was facing, thanks!
Out of interest, does the `can_be_part_of_blueprint` prototype setting do something different to the `not-blueprintable` flag?
Re: How to prevent robot build/mine an entity?
Posted: Sun Oct 16, 2016 4:47 pm
by Rseding91
aubergine18 wrote:I can handle the player placement without too much pain, so those flags above should solve all the other issues I was facing, thanks!
Out of interest, does the `can_be_part_of_blueprint` prototype setting do something different to the `not-blueprintable` flag?
That's for tiles not entities.
Re: How to prevent robot build/mine an entity?
Posted: Sat Oct 29, 2016 12:42 am
by aubergine18
Just finished testing "not-deconstructable" and "not-blueprintable" - they worked like a charm! Many thanks as always!