Casting to an actor thats not the player or player character

I would recommend Direct Communication https://docs.unrealengine.com/en-us/…BlueprintComms

  • Door_Blueprint

    • Create a Door_Blueprint and place it in the map

    • Create an Event named OpenDoor

  • Button_Blueprint

    • Create a Button_Blueprint and place it in the map

    • Create a Door_Blueprint (Object reference) variable and mark this variable as “Instance editable”

    • Select the Button_Blueprint in the level and assign the Door_Blueprint instance you placed in the map (step 1.1) to the variable

    • In the EventGraph get the Door_Blueprint variable and use it to call OpenDoor when the button is pressed eg.

If the button needs to open several doors simply make the variable into an array and use a foreach loop when calling OpenDoor

You can place as many instances of buttons and doors in the map as you like. Link the button instance to the door instance as described in step 2.3