Page 1 of 1

Restrict building to resource

Posted: Wed Sep 16, 2015 12:03 am
by bobingabout
Similar to how you can only place an oil drill on a cruide oil patch, is there any way you can restrict the placement of a non-drill entity, such as a furnace or assembling machine to a resource patch?

if so, explanation/example please?

Re: Restrict building to resource

Posted: Wed Sep 16, 2015 5:35 am
by jorgenRe
There is this dirty way of using the count entities filtered function where type = resource that can be run every time an entity.type does not equal drill :)!
Though the count entities filtered may not be that dirty so you might wanna first trye it out in a well used world first ;)!

Re: Restrict building to resource

Posted: Wed Sep 16, 2015 5:19 pm
by orzelek
Only way I see currently would be to use entity build events and check in there if requirements are met - aka there is a proper ore under the entity.