And then I trying to handle this damage in base character class by
TakeDamage(...) and OnTakeAnyDamage delegate `TakeAnyDamage(...)`
And nothing happens. What am I doing wrong?
Shooter Exampe have header file with structs about Damage Events and I cannot understand do I need this or not. Damage in UE4 - Unreal Engine is useless. So I even dont know where I can read about damage system.
You seems to use the damage system correctly.
You should check if the radius is enough (try 100000.0f), the ImpactLocation and the ‘if’ is not a problem…
If it still do not give you correct results, try to debug with breakpoints and enter in the function to see what happens (this part of the code is not really tricky to understand).
Overlaps contains Mesh (with NoCollision, if I turn on collision - nothing happened) and FirstPersonCameraComponent (WHY?) and dont contains CapsuleComponent (maybe because its invisible).
So I try debug ShooterTutorial and there Overlaps contains 2xBotBehavior(WTF?!) and mesh. And BotBehavior return true by ComponentIsDamageableFrom(…).
I attached my collision settings. Maybe I do it wrong.
capsule