In my players characters blueprints I am trying to calculate damage with data resulting from both sides of a ComponentHit event. Ie for each character I want to use the other characters Hit data too to work out the result.
So I’m storing all recent Hit’s in a short list coupled with a sequential running id number for each hit.
Just after that in the Blueprint I want to use that data.
The problem is that for each character I don’t know if the other character has managed to save out its Hit data yet. So I don’t know if I can expect to be able to proceed.
I thought maybe I can use an ‘isSet’ bool and maybe create a loop that continually checks the other character until its set, but that sounds dangerous it might get stuck.
What is the common way of solving this kind of problem?