How to turn off a component in another blueprint

Hey guys,

I am trying to turn off a widget component attached to my player pawn when I hit a particular object with linetrace.

Thanks in advance!

your on the right track i suppose but instead of using a get all of class just drag off of the other actor pin. the other actor pin will give a reference to whatever actor caused the hit. though that doesnt have anything to do with the line trace.

to accomplish what you ask in the question i would first go to where you create your widget and promote the return pin to a variable (named widgetvar). now off the out hit of the line trace take the hit actor and cast to the class type used by the player. now off the cast you want to get the widgetvar then set visibility or do whatever your looking to do to hide it.