Hello, I want a solution

Hello, I want a solution for how to connect the door with Combination Lock. When I enter the correct code, the door opens. Thank you

1 Like
  • where is the door?
  • where is the lock?
  • both in the level?

If so:

  • create a variable of door type in the lock, flag it as Instance Editable
  • select the lock in the Outliner, pick which door instance the door variable refers to
  • use the variable in the lock bp to call the custom event in the door

Alternatively, bind them with an event dispatcher in the level blueprint.

1 Like

Thank you. but it’s not working

Show us how you’ve done it - the 3 bullet points above. And the updated script.

the door and the lock in the same level

Have you done this?

yes

Have you done this?

yess

If you’ve also done this. Please show a screenshot of the door variable with its value set and the way you call the Open Door custom event.

The third one, I don’t know if I did it correctly or not, and if you can explain more to me, I would be grateful

1 Like

Providing you’ve done the 2 first bullet points correctly, it would look like so:

Btw, do not use Delay, use the Finished pin of the Timeline.

1 Like

bro Thank you very much it’s now working thank you

1 Like

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