Page 1 of 1

Teach compilatron to avoid fires

Posted: Tue Nov 23, 2021 2:07 am
by mrvn
At game start I create a compilatron entity and give it the command to go near a stone patch using:

Code: Select all

      bot.entity.set_command({
          type = defines.command.go_to_location,
          destination = resource.position,
          radius = HAND_RADIUS / 2,
      })
Compilatron does faithfully go there too, that isn't the problem. But at start the crashed spaceship is burning and depdning where the stone patch is compilatron drives through the flames and takes damage.

Can I tell it to keep more distance to fire?

Re: Teach compilatron to avoid fires

Posted: Tue Nov 23, 2021 9:29 am
by coppercoil
BTW if pathfinding could avoid fires, maybe biters could also improve their tactic regarding flamethrowers? :)

Re: Teach compilatron to avoid fires

Posted: Tue Nov 23, 2021 1:46 pm
by FuryoftheStars
I don’t know of a native way to do this. However, I believe Rampant created a system that would make biters avoid areas where a lot of them die, and possibly even fire outright to an extent.

Re: Teach compilatron to avoid fires

Posted: Fri Nov 26, 2021 8:21 am
by PFQNiet
If all else fails, take the lazy option and give the entity 100% fire resistance ;)