Does OnComponentHit also trigger hits for all attached components? Such that if my player has a sword which has a USpellEffectComponent attached and each have different on hit functions, would both be called when the parent receives a hit?
I just tried it, and no it doesn’t :D. You would have to call each component that wants to react to the hit. An alternative may be a multicast delegate. Say You have one component registering the hit, and in the on hit function you broadcast the delegate. And every other component can just register a method in that delegate. This way everyone who wants to be called gets called, without you having to care about that.
Dang that route never even occurred to me! Thank you. It’s exactly what I need.