How to open the door?

The pack contains a door that works with a lock, but I will tell you the main points needed to create your own door.

  1. Create a variable

  2. Call it for example “Padlock Ref”, make it “Instance Editable” for this you need to click on the eye to the right of the variable name

  3. Set the type of the variable, in our case “BP_Lock

  4. In Begin Play, subscribe to the Event “OnSuccessPassword_Disp” (or you can subscribe elsewhere according to your logic)

  5. And finally, the code that will open the door, in my case, I just turn on the physics.

Last updated

Was this helpful?