My prefab will go after neutral NPC grids even though they have the relation check in their target profile, and before you say to check MSB to see how that works, I used the basic MSB target profile too which is near identical to mine and that one had the same issue.
<?xml version="1.0"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<EntityComponents>
<EntityComponent xsi:type="MyObjectBuilder_InventoryComponentDefinition">
<Id>
<TypeId>Inventory</TypeId>
<SubtypeId>BasicTargetProfile</SubtypeId>
</Id>
<Description>
[RivalAI Target]
[UseCustomTargeting:true]
[Target:PlayerAndGrid]
[TimeUntilTargetAcquisition:2]
[TimeUntilNextEvaluation:3]
[MaxDistance:15000]
[MatchAllFilters:OutsideOfSafezone]
[MatchAllFilters:Powered]
[MatchAnyFilters:Owner]
[MatchAllFilters:Relation]
[GetTargetBy:ClosestDistance]
[Owners:Player]
[Owners:NPC]
[Relations:Enemy]
</Description>
</EntityComponent>
</EntityComponents>
</Definitions>
My prefab will go after neutral NPC grids even though they have the relation check in their target profile, and before you say to check MSB to see how that works, I used the basic MSB target profile too which is near identical to mine and that one had the same issue.