Find who hit who

Got a few questions on a function that I’m trying to create. My main question pertains to this part of the function:

My function inputs:
Get Attackers Attack Type (either Physical or Special)
Get Attackers Attack Element
Get Defenders Defense Type (either Physical or Special)
Get Defenders Elem Resist(.5), Weakness(2), Absorb(-1), Nullify(0) Arrays

How do I go about doing that? Most of the special attacks are going to be projectiles (I’m using the “laser” created in the twin stick shooter tutorial as a base for my projectiles though I plan on changing it in the future, dunno how I’m going to change it though) My main problem is determining who attacked and who got hit.

You can use a LineTrace Node for this kind of thing, for example the LineTraceByChannel can give a lot of information about who hit whom and so forth. Heres a link to the UE4 documentation:

Hope this helps, kind regards
Gull Jemon Studios

Typically, I would look into Instigator/Owner when it comes to this situation

link here:
Instigator