Skip to content

OnNotifyFromActor - Ignores Identity tags match type #314

@SilentGodot

Description

@SilentGodot

The node OnNotifyFromActor inherits the identity tag match type from the ObserveActor node, however in the function OnNotifyFromComponent it strictly calls HasAnyExact on the identity tags and doesn't use the match type.

Image
void UFlowNode_OnNotifyFromActor::OnNotifyFromComponent(UFlowComponent* Component, const FGameplayTag& Tag)
{
	if (Component->IdentityTags.HasAnyExact(IdentityTags) && (!NotifyTags.IsValid() || NotifyTags.HasTagExact(Tag)))
	{
		OnEventReceived();
	}
}

This means any child tags will not be matched. In the attached screenshot for example, any child tag of Flow.Pawn.Collectible.Tombstone won't trigger the notify.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions