Page 1 of 1

RFH: Checking if a ghost has a (personal) bot assigned

Posted: Mon Aug 30, 2021 9:39 pm
by mrvn
Is there any way to check if a ghost entity has a (personal) construction bot assigned to deal with it? Same question for those deconstruction red crosses.

Re: RFH: Checking if a ghost has a (personal) bot assigned

Posted: Thu Oct 28, 2021 1:36 am
by InappropriatePenguin
Not sure if you were still looking for an answer, but I came across these, which I think would do what you wanted:

https://lua-api.factorio.com/latest/Lua ... nstruction
https://lua-api.factorio.com/latest/Lua ... nstruction

Re: RFH: Checking if a ghost has a (personal) bot assigned

Posted: Thu Oct 28, 2021 3:39 pm
by mrvn
Thanks. That is what I'm looking for. Too bad it doesn't return the bot. Would be even better to know how far away the bot is.