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

Place to get help with not working mods / modding interface.
Post Reply
mrvn
Smart Inserter
Smart Inserter
Posts: 5699
Joined: Mon Sep 05, 2016 9:10 am
Contact:

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

Post 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.

InappropriatePenguin
Inserter
Inserter
Posts: 29
Joined: Mon Sep 13, 2021 6:53 pm
Contact:

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

Post 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

mrvn
Smart Inserter
Smart Inserter
Posts: 5699
Joined: Mon Sep 05, 2016 9:10 am
Contact:

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

Post 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.

Post Reply

Return to “Modding help”