Teach compilatron to avoid fires

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

Teach compilatron to avoid fires

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

coppercoil
Filter Inserter
Filter Inserter
Posts: 472
Joined: Tue Jun 26, 2018 10:14 am
Contact:

Re: Teach compilatron to avoid fires

Post by coppercoil »

BTW if pathfinding could avoid fires, maybe biters could also improve their tactic regarding flamethrowers? :)

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2530
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Teach compilatron to avoid fires

Post 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.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles

PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Re: Teach compilatron to avoid fires

Post by PFQNiet »

If all else fails, take the lazy option and give the entity 100% fire resistance ;)

Post Reply

Return to “Modding help”