Page 1 of 1

NE Enemies - Could use a little help [Solved]

Posted: Fri May 12, 2023 6:12 pm
by TheSAguy
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,

Re: NE Enemies - Could use a little help

Posted: Fri May 12, 2023 6:44 pm
by Pi-C
TheSAguy wrote:
Fri May 12, 2023 6:12 pm
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.
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".

Re: NE Enemies - Could use a little help

Posted: Fri May 12, 2023 7:40 pm
by TheSAguy
Man, that was an easy fix...
Thanks Pi-C!