Hi,
In my Mod, NE Enemies, I have a Spitter that shoots land mines.
It works good in theory, when the player runs over these mines they would explode.
I also have a small script that removed old mines after like 30min from the map.
The issue I'm having is that if there are any turrets in the area, they would keep shooting at these mines, depleting their ammo.
I'd like to see if there is a way for turrets (Or any other drones, etc) to ignore the mines, or have the mines explode/disappear if shot.
Not sure how to implement this and could use help with the code please.
Thanks,
NE Enemies - Could use a little help [Solved]
NE Enemies - Could use a little help [Solved]
Last edited by TheSAguy on Wed Jun 21, 2023 2:21 pm, edited 1 time in total.
Re: NE Enemies - Could use a little help
Check out Prototype/LandMine.is_military_target. The default value usually is "false", but Prototype/Landmine is one of those prototypes where the default value is "true".TheSAguy wrote: ↑Fri May 12, 2023 6:12 pmThe issue I'm having is that if there are any turrets in the area, they would keep shooting at these mines, depleting their ammo.
I'd like to see if there is a way for turrets (Or any other drones, etc) to ignore the mines, or have the mines explode/disappear if shot.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Re: NE Enemies - Could use a little help
Man, that was an easy fix...
Thanks Pi-C!
Thanks Pi-C!