Padlock_FeaturedNew

Initial Setup (updated 2nd August 2018)

Step 1

In your vault, find the Padlock and Keypad pack and click ‘Create Project’.

Step1

Step 2

Right click the ‘PadlockAndKeypadPack’ folder and click ‘Migrate’. The migrate option may be under ‘Asset Actions’. Select the content folder of the project you want to use the pack in.

Step2

 

Step 3

Open you player character blueprint and in the top toolbar, click on ‘Class Settings’.

Step3

 

Step 4

In the class options panel (on the right hand side) add the BPI_Interact interface.

Step4

 

Step 5

Right click on an empty space of the player blueprint and search for ‘Interact Function’. Connect this up to an input event. In this example, F was used.

Step5

 

Step 6

One of the features of the padlock is the padlock zooms to be in front of the character. For the padlock to move to the right place there needs to be a reference mesh in the character blueprint. Drag and drop the padlock mesh into the component list and attach it to the camera. Then you can move/rotate/scale the padlock to where you would like.

Step6


Step 7

With the padlock mesh selected, disable collision and untick the ‘Visible’ checkbox.

Step7

Step 8

With the padlock selected, add a tag to the mesh and name it ‘ReferenceMesh’.

Step8

 

 

Changing the Code of the Padlock

Changing the code of the padlock is very simple. Just drag the padlock blueprint out of the content browser and into your level. With the padlock selected, change the Padlock Code variable found in the details panel. The code is limited to 4 digits. You can also tick the ‘Randomise Padlock Code’ check box to get a random code.

 

Padlock Code

 

Support

If you require any additional support with this blueprint or to report bugs you can contact me by email at james@relapse-game.com.

2 Comments

  1. Stamaths

    I tried to add padlock to First Person Horror Template (https://www.unrealengine.com/marketplace/first-person-horror-template)
    but is not working (i can give you my project if you want to look it up). Thanks!

    • Relapse Team

      Hi, sorry that you are having issues with the padlock and keypad pack. If you have followed the set up guide and it still isn’t working as intended, then please feel free to upload your project online and send me a link to it by email. You can email me at james@relapse-game.com.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>