Door And Key System | How To Open A Locked Door With A Key In Unreal Engine 5 (Tutorial)

  Рет қаралды 18,916

Matt Aspland

Matt Aspland

Күн бұрын

This is how to create a locked door and key system in Unreal Engine 5. This allows you to have multiple doors and multiple keys in your level, with specific keys opening specific doors.
Get access to the project files and more on my Patreon: / mattaspland
Check Out My Game Studio: www.copagaming.co.uk/
#UE5 #UnrealEngine5 #UE5Tutorial
_________________________________________________________________________
🔗Resources
Key Download: www.cgtrader.com/free-3d-prin...
_________________________________________________________________________
What I use:
⌨️Keyboard: amzn.to/3TMYuly
🖱️Mouse: amzn.to/3JNYgWD
🎧Headphones: amzn.to/3z8OfhM
💺Gaming Chair: amzn.to/3M1VM9V
🎙️Microphone: amzn.to/3FSxnQ8
🎙️Mic Power Supply: amzn.to/3FTXt5f
🖥️Monitor (X2): amzn.to/3LSsMkT
🖥️Monitor (X1): amzn.to/3FSd9WS
🦾Dual Monitor Arm: amzn.to/3nvABCC
🦾Monitor Arm: amzn.to/40pKJvi
📷Webcam: amzn.to/3lIlRA2
📷DSLR: amzn.to/3lKbjQI
🔥Cable Management Tray: amzn.to/3ZwzEaQ
🔥Cable Management Sleeve: amzn.to/3M6U5Yu
My PC Specs:
GPU: amzn.to/3JHLHMx
CPU: amzn.to/40hcupY
RAM: amzn.to/40iHd67
Motherboard: amzn.to/3FRne6e
_________________________________________________________________________
🔥Subscribe: / @mattaspland
💬Discord: / discord
🐦Twitter: / matt_aspland
📷Instagram: / matt_aspland_
🔗All: linktr.ee/MattAspland
_________________________________________________________________________
Support Me:
Patreon: / mattaspland
PayPal: www.paypal.com/paypalme/matta...
Ko-Fi: ko-fi.com/mattaspland
_________________________________________________________________________
To access the project files and screenshots from the video, check out my Patreon above!
My Public Video List: trello.com/b/7vJgXzBm
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
Unreal Engine 5 Tutorials Playlist: • Unreal Engine 5 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
_________________________________________________________________________
🔖Topics Covered:
00:00 - Intro
00:09 - Overview
01:07 - Tutorial
12:20 - Final Overview
12:35 - Outro
_________________________________________________________________________
♫ Outro Song: Kronicle - Chill Noons

Пікірлер: 56
@masterx_6119
@masterx_6119 8 ай бұрын
bro you have all tutorials i need for making a horror game. that helps me a lot. thanks a lot
@PatrickTheDM
@PatrickTheDM 10 ай бұрын
It's a variable key to success! 😁 Edit: As you can see from my comment I expected you to use variables to match the key and door and you surprised me with a new way to do it. Great tutorial. Now I understand why you did a tutorial that you had done in the past.
@exakelgaming
@exakelgaming 6 ай бұрын
this helped with one of my game design assignments.
@jawsomeproductions
@jawsomeproductions 3 ай бұрын
This was a great help, thanks for putting it together!
@GrownAssNerd
@GrownAssNerd 3 ай бұрын
Thank you for this easy to follow tutorial! Keep them coming!
@vickycorbalan8556
@vickycorbalan8556 5 ай бұрын
your tutorial was great! thank you so much :)
@bunnygodx
@bunnygodx 4 ай бұрын
great tutorial, thank you!!!
@One-4-uDe
@One-4-uDe 10 ай бұрын
Awesome, that way is more elegant as I did with variables.
@lordhightower6124
@lordhightower6124 4 ай бұрын
very nice man thank you
@ravi12880
@ravi12880 21 күн бұрын
Thank you sir i appreciate it 😊
@Lucifer100990
@Lucifer100990 29 күн бұрын
Thank you
@AUTONOMOUSTANZIM
@AUTONOMOUSTANZIM 10 ай бұрын
Ur the best tutor ever
@muneebhero1159
@muneebhero1159 10 ай бұрын
Please matt as planned I am begging you please please please make a video on unreal engine 5 first person shooter combat system please
@vladiktomil434
@vladiktomil434 Ай бұрын
Very good tutorial bro! Thank you so much. Let's see you could upload something with Advanced Locomotion System.
@kevCarrico
@kevCarrico 10 ай бұрын
great tutorial - i'm using this to put a coin in a subway turnstile (and then setting "has key?" to be false) - thank you!
@topcheckers_
@topcheckers_ 10 ай бұрын
When second part to multiplayer doors, please we need to this, with linetrace without box overlapping
@bunnygodx
@bunnygodx 4 ай бұрын
subscribed
@studiodenne
@studiodenne 6 ай бұрын
Hi, thanks for this tutorial. It still works when I put the key anywhere on the map. But if I put the Key inside an drawer, as an child actor, I can pick the key up, but can´t open the door, because at this moment I can´t promote the BP_key to the BP_door at the default. What can I do to put Key inside the drawer an use them ? thank you
@makarqvvv
@makarqvvv 9 ай бұрын
you best
@CountCoffee
@CountCoffee 10 ай бұрын
I did your UE4 locked door tutorial and it didn’t work… I hope this one does! Lucky I didn’t do this more than 3 days ago XD
@raulalvarado7465
@raulalvarado7465 2 ай бұрын
I just used the aitudthy heavy key repond.
@andrewvanderwalt8494
@andrewvanderwalt8494 Ай бұрын
Hi Matt, Awesome tutorial mate! Question though...How Can I make it that the key can just unlock a door when picked up without having to select it with the picker when spawned into the map? In the class defaults it is grayed out so I can't set what key will unlock which door before it is spawned into the world. I want a boss AI to drop the key and the player just picks it up and unlocks the door that was set for that key. Thank you in advance
@Buddyer_ler
@Buddyer_ler 10 ай бұрын
hi i would like to know how to make a submarine for a game, if i can
@jawsomeproductions
@jawsomeproductions 3 ай бұрын
Is it possible for one key to be set for multiple doors, like a key card system?
@ERAK_Aenyegames
@ERAK_Aenyegames 10 ай бұрын
I have one question, my door just do ROTATION, bot not open like urs, how it can be possible ?
@GuestStudios690
@GuestStudios690 10 ай бұрын
hey bro i got a problem in my game: i want to make it so when a object interacts with another object one simulates physics but i dont know how to do that
@CyberianWaste
@CyberianWaste 10 ай бұрын
How can this be adapted to open multiple doors (the blue keycard opens all blue doors)? Would you have BP_Key contain an array of multiple BP_Doors? Or is there a more efficient way?
@MonkeyDGhoul
@MonkeyDGhoul 9 ай бұрын
did you manage to do it? and how? thanks
@andresaraya5198
@andresaraya5198 7 ай бұрын
idk if this will actually work but, can you add a int to specific key and then assign the same int to all the doors you want to open with that key. When trying to open them you can check/compare if they have the same int, if that is the case then the door opens.
@itsnotmeitsyou7615
@itsnotmeitsyou7615 7 ай бұрын
You can use gameplay tags.
@Mikaela112
@Mikaela112 6 ай бұрын
For some reason the doors collision is gone and I can walk through it? An idea what's caused this?
@giloniellfeliciano6911
@giloniellfeliciano6911 8 ай бұрын
I tried doing it exactly but the only thing it doesn't let me is interact with the key, pressing the key on my keyboard doesn't activate
@makarqvvv
@makarqvvv 9 ай бұрын
I love u
@ahmadruslanovich739
@ahmadruslanovich739 10 ай бұрын
Hi, Matt! How would you make a smartphone like in gta v? I mean there should be user widget and what’s happening on that widget should be displayed on phone object model. How we can transfer my user widget state into phone model widget? Anyway thank you!
@ahmadruslanovich739
@ahmadruslanovich739 10 ай бұрын
Nvm, figured out
@SharinganDeeOfficial
@SharinganDeeOfficial 4 ай бұрын
What do I do if I want my door to require more then one key
@shinykyogre7197
@shinykyogre7197 21 күн бұрын
the key wont be picked up, so odd
@JasperDoggo
@JasperDoggo 2 ай бұрын
for some reason when I open the door I can't go trough it. Anyone know a way to fix that?
@goldskull4498
@goldskull4498 Ай бұрын
soo confused, i followed step by step and it still doesnt work. i think it might be the timeline thing idk how to use it ugh
@Ihatepe50
@Ihatepe50 3 ай бұрын
everything seems the same however i cant get the pick up key to trigger in the door BP i can pick it up but it doesnt set the locked bool to false
@Ihatepe50
@Ihatepe50 3 ай бұрын
nevermind i figured it out i skipped over the 5 seconds thats showed me i just needed to set the door on the details panel of the key
@m23rco
@m23rco 2 күн бұрын
Bro everything with key work but the door dont move, pls
@Kami-fs2db
@Kami-fs2db Күн бұрын
interact doesnt show at 5:00
@Tamrielforever
@Tamrielforever 4 ай бұрын
The key wont pick up for me. The only difference is I had E already set up. I've set up a door before. Just not with a lock system. Any tips?
@Tamrielforever
@Tamrielforever 4 ай бұрын
UPDATE. The last part where i connect the door to the key isn't working!!
@amarshil2415
@amarshil2415 10 ай бұрын
Hi mate can you make a Vedio on how to make jump attack system
@OnlyViKnows
@OnlyViKnows 4 ай бұрын
So the tutorial worked sort of? Except it made my door does a complete 360 rotation even though i followed everything
@Tamrielforever
@Tamrielforever 4 ай бұрын
I tried this on a new project and the key still wont pick up!!! There might be something you need to update.
@MattC-137
@MattC-137 2 ай бұрын
How can I open multiple different doors with one key?
@MattC-137
@MattC-137 2 ай бұрын
I figured it out: if you right click on the door variable within the key blueprint to then change variable type, it will change it to an array and allow you to assign the same key to multiple doors.
@Salad-Gamer
@Salad-Gamer 6 ай бұрын
8:31
@JoTheMonkey
@JoTheMonkey 2 ай бұрын
last part doesnt work for me
@JoTheMonkey
@JoTheMonkey 2 ай бұрын
for some reason the door wont be accepted as an actor or something
@george_iv_4548
@george_iv_4548 2 ай бұрын
My door opened up and down 😂 I don’t know what I messed up
@NotSnakeRex
@NotSnakeRex Ай бұрын
try rotating it not on the Z Axis, try the X or Y Axis
@itsnotmeitsyou7615
@itsnotmeitsyou7615 7 ай бұрын
Do not suffix bools with question marks, and don't put spaces in variable or function names. These are bad practices.
Creepy Teacher Kidnapped My Girlfriend?!
00:42
Alan Chikin Chow
Рет қаралды 9 МЛН
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 3,4 МЛН
How Do Games Render So Much Grass?
15:52
Acerola
Рет қаралды 315 М.
5 Tricks you (probably) don't know about Unreal Engine 5
10:44
Cinecom.net
Рет қаралды 350 М.
Generate Normal Maps For Any Shot With ComfyUI and Nuke
33:16
Alex Villabon
Рет қаралды 2,7 М.
TRANSFORM To Different CHARACTER In Unreal Engine!
4:32
DevEdge • Abhay
Рет қаралды 6 М.
Creepy Teacher Kidnapped My Girlfriend?!
00:42
Alan Chikin Chow
Рет қаралды 9 МЛН