Can't Connect Get Variable To Target Reference

Hey forum!

Been following this tutorial from Zenva to make an interactable object system, haven’t changed anything besides making the ability to E into interaction dependent on Begin Overlap rather than hovering your cursor (making a 2D top-down game), and everything goes completely ok for me up until 16:56 where I have to drag off my Get Current Interactable and get the Begin Interaction so that it’s target is Interactable

When dragging off Get Current Interactable, Begin Interaction doesn’t appear

I’ve got it in the blueprint through disabling context sensitive but obv it still doesn’t want to connect to my get variable

I tried doing it through Current Interactable > (Object Reference) Cast To Interactable > (Target) Begin Interaction
Then I tried Current Interactable > (Target) Child Actor > (Object Reference) Cast To Interactable > (Target) Begin Interaction

None of these have worked, help needed!
And I’m a total newbie with Unreal, so don’t pull anything crazy on me! I’m 99.9% sure this is just a simple solution that I haven’t found


image

Get variable won’t connect to target child actor*
Get variable won’t connect to Begin Interaction*

Hey @rocketeatsburger!

Simply having the variable type correct isn’t enough, you should have a reference to your “interactable”.

To do that, you should either:

  • Spawn your actor with a Spawn Actor node and store the Return Value inside a variable
  • If you’re detecting your interactable actor using line traces or collisions, save the hit actor inside a variable
  • Get the Get All Actors of Class node, select your actor class from the dropdown menu inside the node, drag a Get node out of it’s Out Actors output pin, leave the index as 0, and connect it to the Object pin of your Cast To node

Hope this helps! :innocent:

In the video he drags a wire from Current Interactable and searches for Begin Interact. Try that.

i’ve already tried this! thats why i came to the help forum, what he was telling me to do in the tut wasnt giving me the outcome shown in the tut