What changes were made in OnProjectileBounce delegate between 4.0.1 and 4.2.0?

Hi I upgraded my project from 4.0.1 to 4.2 today.

There were some errors which i commented out and compiled successfully.

How do I use the OnProjectileBounce delegate. I am not sure what changes took place but I am getting errors for my old code.

ProjectileMovement->OnProjectileBounce.AddDynamic(this, &ABaseProjectile::OnBounce);

And

void ABaseProjectile::OnBounce(const FHitResult& ImpactResult, const FVector& ImpactVelocity)
{
	NumberOfBounce+= 1;
}

Hmm… error solved

Hi ,

I just wanted to confirm that your issue has been resolved. If so, would you be able to explain what, if anything, you did to resolve it?

Yup just minute changes the projectile OnBounce in 4.0.1 version takes only 1 parameter i.e ImpactResult. But in the newer versions it takes 2 parameters.

I had changed it. As you can see here. But had forgotten to change it in the .h of the delegate function. Just a silly error on my part.