Skip to content

Relation checks in Target Profiles don't work #327

@XGNXLency

Description

@XGNXLency

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions