Page 1 of 1

Need help resolving issue with turrets

Posted: Thu Aug 02, 2018 3:39 pm
by Joeykyle88
Part of the mod I'm creating is a new type of turret but I'm having the problem of it destroying other machines if they're in the line of fire, is there any way to make the projectiles it shoots not damage other machines?

Re: Need help resolving issue with turrets

Posted: Thu Aug 02, 2018 3:42 pm
by Klonan
In 0.17 you can set the projectiles to only hit entities of a certain force,
In 0.16 it is not possible

Re: Need help resolving issue with turrets

Posted: Wed Aug 08, 2018 2:40 pm
by eradicator
Klonan wrote:In 0.17 you can set the projectiles to only hit entities of a certain force,
Is that limited to exactly one force, or are groups allowed? I.e an "all hostile forces" or "all friendly forces" group. (Thinking of multi-team pvp situations)

Re: Need help resolving issue with turrets

Posted: Wed Aug 08, 2018 7:04 pm
by Klonan
eradicator wrote:
Klonan wrote:In 0.17 you can set the projectiles to only hit entities of a certain force,
Is that limited to exactly one force, or are groups allowed? I.e an "all hostile forces" or "all friendly forces" group. (Thinking of multi-team pvp situations)
As follows:
  • All,
  • Enemy,
  • Ally,
  • Friend,
  • NotFriend,
  • Same,
  • NotSame
If you have a suggestion for more, it is easy to add them

Re: Need help resolving issue with turrets

Posted: Fri Dec 07, 2018 9:57 pm
by Schallfalke
I guess this is highly-related, so I am not creating a new post asking.

I assume the above is for the projectiles on which entities they are affected, right?

How about for the guns targeting? Is it possible to target "ally"/"friend" only?
I tried to make a heal turret firing negative damage projectiles. It can heal entities, but the turret is not firing at friendly damaged entities. It keeps firing on and healing enemies instead. (I have both force = "ally" lines, seems no effect.)
PS: I made a heal gun firing the same projectile. It can heal any entities (both friendly and enemy).

Re: Need help resolving issue with turrets

Posted: Mon Dec 17, 2018 9:20 pm
by Klonan
Schallfalke wrote: Fri Dec 07, 2018 9:57 pm How about for the guns targeting? Is it possible to target "ally"/"friend" only?
Unfortunately at the moment this is a hardcoded search, it will only find enemy units

Potentially it can be changed in the future, but its not a priority