How to open the door?
Last updated
Was this helpful?
Last updated
Was this helpful?
The pack contains a door that works with a lock, but I will tell you the main points needed to create your own door.
Create a variable
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
Set the type of the variable, in our case “BP_Lock”
In Begin Play, subscribe to the Event “OnSuccessPassword_Disp” (or you can subscribe elsewhere according to your logic)
And finally, the code that will open the door, in my case, I just turn on the physics.