ACharacter::Landed not called on Simulated proxies

Hi everyone,

While playing around with the Landed function from Character class I noticed it was not called on the clients with a SimulatedProxy role. In other words, it is only called on the server and the character’s owning client.

Is this a wanted feature?

Cheers

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

Create a custom CharacterMovementComponent and override SetPostLandedPhysics:

void UShooterCharacterMovement::SetPostLandedPhysics(const FHitResult& Hit)
{
	// call for non-authority only because this is already called for authority elsewhere
	if (CharacterOwner && CharacterOwner->GetLocalRole() != ROLE_Authority && CharacterOwner->ShouldNotifyLanded(Hit))
	{
		CharacterOwner->OnLanded(Hit);
	}
	Super::SetPostLandedPhysics(Hit);
}