NetMulticast function executed on unrelevant clients

Yes of course,


bool ATestCharacter::IsNetRelevantFor(AActor const * RealViewer, AActor const * ViewTarget, FVector const & SrcLocation) const {
	if (this == ViewTarget) {
		return true;
	} else {
		return false;
	}
}

As I said the problem is not the function “IsNetRelevantFor” because the other character (that is always not relevant) after NetMulticast function’s call appears and after 2/3 sec disappear again.

The NetMulticast function is:

Header


UFUNCTION(NetMulticast, Reliable)
void EVENT_OnServerFireTriggerPressed();
void EVENT_OnServerFireTriggerPressed_Implementation();

CPP


void ATestCharacter::EVENT_OnFireTriggerPressed_Implementation() {
	if (ROLE_SimulatedProxy == Role) {
		bIsFireTriggerPressed = true;
	}
}

Thanks for the help