Why won't this Custom Event Execute?

So I want when the player presses the left key, the door/gate opens. There are doors constantly spawning in the level, but you can only open the one LEAST recently spawned, so I have the doors in an array. So when you press left, it gets the door at index 0 and opens only THAT door. Idk if that makes sense…

Here you can see what I’m doing:

I’ve been trying to figure out what this stupid error is literally all day. Why can’t I figure something out that looks so simple!

Well, 2 options here:

  • connect the “pressed” to the left side of the cast node and the right side of the cast node to the white input of “Open” (cast needs an execution flow)
  • Right click the cast node and select “convert to pure cast” (if you are sure you will always get the correct object)

Cheers,