Been trying to convert my blueprint code to c++ and i reached a problem with receiving of radial damage . It worked perfectly in blueprint where i get the desired damage based on the distance between impact point . But in code i used the function
TakeDamage(float DamageAmount, struct FDamageEvent const& DamageEvent, class AController EventInstigator, class AActor DamageCauser)**
It always returns the base damage of the radial impact (in my case its 5000) . Im not sure whats wrong on my side . Going through the docs i noticed the below function
InternalTakeRadialDamage(float Damage,FRadialDamageEvent const & RadialDa…)
i overridden the above function but i dont get any response . I only receive the damage within the TakeDamage always returning the exact base damage (5000) . Can somebody tell me how to get radial damage properly ? much appreciated .
Thanks