Keypad System Blueprint duplicate not working

Hi,

I’ve followed a really good tutorial on YT to create a keypad system and it works very well. However, when I re-use the keypad system I am starting to find errors. Unfortunately the creator of the tutorial does not appear to be active any more so I’m hoping to get some help here.

Individually, they both work fine. But if I use them in sequence of the gameplay I start having the issues.

Firstly, once I reach the second keypad, interacting with the buttons is very slow. It takes several seconds to be able to interact with the consecutive buttons.

Secondly, once the code has worked and successfully triggers the event, I receive a couple of errors. See images attached.



Could someone please point me in the right direction?

Thank you

Hey @HomeGrownHeroz!

It looks like you is in your set “Key Pad Interact Actor” node on the bottom. It can not access the player reference variable you are trying to set. More than likely that reference/variable is empty. How are you setting your player reference ahead of time?

VSYu25jxML

Hi, thanks for your reply!

Looking at your comment, and back at the video (37:15 second mark) the creator does seem to input anything in this section so I’m not sure I follow what you mean or what else should be there.

When you say how am I setting my player reference ahead of time, are you asking about my playable character? If so, I’ve created a simple first person controller.

Player Controller

Player Character

Hey @HomeGrownHeroz,

What I mean by how are you setting your player reference, what I mean is the Player Ref variable that you are feeding into the set keypad interactor node specifically.

image

Like so:

image

Sorry, I’m with you now.

This is where the player reference is set.

Apologies, still fairly new to Blueprints and this tutorial was quite advanced for me.

Hey @HomeGrownHeroz,

Your end overlap event is not connected to the branch that comes immediately after. This is needed to clear and reset the keypad references in both the player and the keypad. Try connecting that and let me know if you can re-use the keypad system.

Hi @Quetzalcodename, apologies for the delay. I hadn’t had time to pick up this project again.

I plugged that branch back in but it didn’t seem to work.

Fortunately, I’m not currently re-using is blueprint in my level, but I am having an issue where I’ve created the ability to press Q to quit the interaction which seems to work. However, when I return to the keypad I am unable to enter the digits again. Would this be the same issue as above?