Hello guys! I have a door and a widget. I want to make it so when I press a button in the widget it opens the door. Problem is that I have multiple doors in the same level, so when I try to “get all actors of class” it opens all of them. This is the blueprint for the door:
Right click and break the “Out hit” pin, grab “Hit Actor” and use “Actor has tag”, with “Interactable” as the tag check (to make sure it’s a door).
Plug that into a bool above. Off true, grab “Hit Actor” from the trace again, cast it to “yourDoorBP” and have it run your “Door Opening” event!
On the widget, on button press you’ll just "GetPlayerCharacter ->Cast to “yourPlayerBP”, ->Call “yourCustomEvent”.