I’ve created a decorator that returns true if OwnerComp has a target.
bool UBTDecorator_HasTarget::CalculateRawConditionValue(UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) const
{
return Cast<AFighterAIController>(OwnerComp.GetAIOwner())->GetTargetActor() != nullptr;
}
even though I’ve made HasTarget decorator abort mode lower priority, this wont abort. Thanks for your help…