Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion Source/Flow/Private/Nodes/Actor/FlowNode_OnNotifyFromActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,24 @@ void UFlowNode_OnNotifyFromActor::ForgetActor(TWeakObjectPtr<AActor> Actor, TWea

void UFlowNode_OnNotifyFromActor::OnNotifyFromComponent(UFlowComponent* Component, const FGameplayTag& Tag)
{
if (Component->IdentityTags.HasAnyExact(IdentityTags) && (!NotifyTags.IsValid() || NotifyTags.HasTagExact(Tag)))
bool IdentityMatches = false;

switch (IdentityMatchType) {
case EFlowTagContainerMatchType::HasAny:
IdentityMatches = Component->IdentityTags.HasAny(IdentityTags);
break;
case EFlowTagContainerMatchType::HasAnyExact:
IdentityMatches = Component->IdentityTags.HasAnyExact(IdentityTags);
break;
case EFlowTagContainerMatchType::HasAll:
IdentityMatches = Component->IdentityTags.HasAll(IdentityTags);
break;
case EFlowTagContainerMatchType::HasAllExact:
IdentityMatches = Component->IdentityTags.HasAllExact(IdentityTags);
break;
}

if (IdentityMatches && (!NotifyTags.IsValid() || NotifyTags.HasTagExact(Tag)))
{
OnEventReceived();
}
Expand Down