Key not opening door

I want to use a key to open a door however some doors don’t need to be opened. my door is recognizing that I don’t have the key but not that I do have the key. please help…

If I tick (is enabled) in my Player Character then the door opens… but I need to start with it off and have it enable when I pick it up… where have I gone wrong? please help?!

The Key BP

The Door BP

Hey @riaaa!

Try putting a printstring directly after “Event Use Interact” that says “KEY GET” or something. I think the issue is something on your character_BP, I think that it might be that the interaction isn’t being activated because there is absolutely NO reason any of that should be on tick. :slight_smile: Can you bring us some more info to work with on this?

So, event use interact in the door BP worked fine, I saw it print in the corner but in the KeyBP, I didnt see it in the corner however it still picked up the key. The key BP is a child of a parent, could that be causing an issue?

What should I have in my CharacterBP because right now, for this specific event, I only created the Has key Variable (Boolean type)

This is the Tutorial I followed

Sorry for all the messages, I am trying things. I just tried a completely different method and the same thing happens. everything works except detecting that I have the key in order to open the door. The string still prints as “Locked” Would my "Item data component somehow be causing problems?

Hey again!

Is this set to the right value?
image
Typically those won’t be set with a “?”, usually that’s just for bools.
You do have to manually say “THIS value” though.

yes the question mark is an error on my part…

What do you mean THIS value, for this one I followed this video

OKAY! so if I create A new BP then the door works, the problem is either because it’s a child BP or because of the item data component

FIXED!!! I put it inside the Parent BP instead of the Child BP… -_- WHY IS THE ANSWER ALWAYS SO OBVIOUS!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.