Get variable from object collided with?

Sorry for the basic question but my searches are not giving me what I need,

Is there a way to do this below

93071-getvariable.png

I have read the unreal docs recommended for this subject but they all seem to deal with setting blueprints to talk when you already know which specific instances will be talking and then pre-set them to talk to each other by sampling them. I am after doing this dynamically so I don’t know which instance will collide with which until I get the “on overlap”.

All I need to do it set a bool to true in the object that has been collided with.

Again sorry if this is an obvious one but I have been stumped for a while on this.

Thanks

Two options:

  1. If the “other actor” will always be from the same class (including parent/child), you can simply cast to the class/parent and set the variable that way.
  2. Use an interface