Download

OnProjectileBounce doesnt get called

guys i have no idea why this function doesn’t get called could someone help me debug this.

in the .h

UFUNCTION()
	void OnprojectileBounce(const FHitResult& ImpactResult, const FVector& ImpactVelocity);

in cpp constructer

Projectile = CreateDefaultSubobject<UProjectileMovementComponent>(TEXT("Projectile MovementComponent"));

	
	Projectile->InitialSpeed = 800;
	Projectile->MaxSpeed = 1200;
	Projectile->bShouldBounce = true;

On begin play

Projectile->OnProjectileBounce.AddDynamic(this, &ABall::OnprojectileBounce);

but the function never gets called.