(3158a90db) Option to prevent AI targets from being automatically added to specific structure pieces

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:37:39 +03:00
parent c86225fd82
commit c6b80ad234
4 changed files with 81 additions and 114 deletions
@@ -349,7 +349,7 @@ namespace Barotrauma
}
// Only add ai targets automatically to submarine/outpost walls
if (aiTarget == null && HasBody && Tags.Contains("wall") && submarine != null)
if (aiTarget == null && HasBody && Tags.Contains("wall") && submarine != null && !Prefab.NoAITarget)
{
aiTarget = new AITarget(this);
}