Compare all components in mesh with one in a variable?

I have a line trace that puts the actor hit and component hit into variables held in a game instance.
I then have a box with different components that I need to compare to the variables.
I’m comparing the actor hit using the self node but how can I compare all of that actors components with the one in the variable?

Hello,
I am not sure as i don’t know what you want to do / compare, but as the component is in the actor, i suppose that you’ll have to use the “actor hit” to “cast to” and from it drag the component / component list to check the “comp hit” (maybe an array, once again, depending of your goal)

I’ve now realised that they aren’t separate components but they have different elements.
I have a cube which can have different coloured sides.
I need to know which colour is being looked at.
On unreal answerhub someone suggested that I can use the hit location and actor location/rotation to work this out for me.
Any idea if this is possible?

It depends what you want to do. For a dice roll, you could use sockets without trace to know location. With a line trace, compare axis with hit location would do it.

I’m making a first person puzzler.
The player and cube can move all over the place so the player can view the box from all directions from quite a distance.
I’m not sure how to convert the hit location, cube location/rotation in to which side is being looked at.

Ok, you need to get both world locations and compare them to know the closest axis one and then check which face is facing. Needs some math, but i am not sure of the best way to follow to atm.