How to make a Realistic Door System in Unreal Engine 5 | Complete First Person Horror Tutorial

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025
  • Support Me & Get These Files Here: / codethings
    CodeThings Community Discord: / discord
    Ready to make your game even more realistic? In this tutorial, we remake a Resident Evil 7 staple in its door system. If you missed the previous tutorial, don't worry, I've got you covered with a card link to catch up. Get ready to take your game to a whole new level of immersion. Learn how to add a realistic advanced door system to your game in this tutorial. Subscribe now and let's get started!

Комментарии • 134

  • @Asiamanman
    @Asiamanman 10 месяцев назад +7

    brother u deserve more views man u doing a great job

    • @codethings
      @codethings  10 месяцев назад +3

      Thank you for the kind words!

  • @masongrabster8938
    @masongrabster8938 11 месяцев назад +4

    Thanks for your tutorials
    they taught me a lot
    Hope to see more of your tutorials

    • @codethings
      @codethings  11 месяцев назад

      No problem! I’m happy they helped you :)

  • @Alpha_GameDev-wq5cc
    @Alpha_GameDev-wq5cc 6 месяцев назад +12

    This is the first channel I’ve found which does high quality tutorials, starting from the scratch, explaining every step, explaining logic behind decisions and implementing actually useful production quality mechanics.

  • @bicepsgmg9312
    @bicepsgmg9312 День назад

    hi im no big game dev but i do some stuff my self. a quick tip i use is when casting the player to the door bp I usually make the Cast to BP Player As a Pure cast so it can reduce a lot of space and do the same functions

  • @revanope
    @revanope 11 месяцев назад +4

    Please make againt mechanic in resident evil 7 like tape scene in first gameplay,Subbed!

  • @ItsBarnabyJones
    @ItsBarnabyJones Месяц назад

    If anyone is having issues with the door just not opening or working at all when you first test, make sure you check "is interacting with door" in the door interaction mathmatics section of the logic. I was struggling with the door just not doing anything at first so i was troubleshooting the logic and when i checked that all is working amazing now, on both sides of the door.

  • @HamidCheraghian
    @HamidCheraghian 4 месяца назад +22

    Hello friends, in order to separate the door frame from the door, you must do the following steps:
    1- Import the object.
    2- Place the object in the scene (with drag and drop).
    3- Open the Modeling window with SHIFT+5 keys.
    4- Enter the XForm section.
    5- Select the door object in the scene and then click on Split.
    6- In the Split window, set the Output Type option to Static Mesh and check the Transfer Materials option, and at the end, click the Accept option.
    Now the object in the Outliner has separate components.

    • @skidara
      @skidara 3 месяца назад +1

      You are a genius. Thank you!

    • @easteag3698
      @easteag3698 2 месяца назад +1

      king

    • @HamidCheraghian
      @HamidCheraghian Месяц назад

      @@skidara 😍

    • @HamidCheraghian
      @HamidCheraghian Месяц назад

      @@easteag3698 😘

    • @Bigmanba4
      @Bigmanba4 Месяц назад +1

      You could also just separate by material if your using blender

  • @inlutiontv2561
    @inlutiontv2561 4 дня назад +1

    Hey, so I have had the problem that that door logic at 17:37 did not work for me I dont know why (the door was opening and closing randomly it did not care if I was infront or on the other side of the door it randomly opened towards me or away from me so I changed out the DOT product with the (cross product) then Split struct pin and connect the Z rotation into the > ... I dont know why it works now but it works!

  • @dwain.d
    @dwain.d 6 месяцев назад +1

    Using dot product is such a neat way to handle the door opening direction. That's not a node I ever thought of using and so much easier than how I generally try to do it. That's why it's definitely worth seeing how others solve the same problems. This is a really good series which is why I've subbed and joined the Discord to see what other time saving tricks I might learn. Thanks.

    • @codethings
      @codethings  6 месяцев назад

      Thank you so much for the kind words :)

  • @Ubjustu
    @Ubjustu 3 месяца назад

    HI there, thanks for this fantastic tutorials series

  • @seanmulkerrin7444
    @seanmulkerrin7444 12 дней назад

    Wonderful tutorial, you're clear, concise and constantly explaining things for laymen like me! I do have a question; having reached the point to test, the door will not respond to my interaction. The only difference between your blueprints and mine (as far as I know anyway) is that I am using a Third Person characters that I have altered to make it work with Tank Controls as the original RE games. I don't have an option to hook up the FirstPersonCamera into the Forward Vector and Get World Scale, only Camera Boom and Follow Camera. I tried to use the Capsule Component of the character class instead, but that isn't working (it isn;t under the Tank Controls character). I'm currently looking into how to add a second capsule in the TankControls BP to see if that's the solution, but I just wanted to ask in case there's something obvious I'm missing!
    Love the videos, they're brilliant, thanks for sharing this for free with us!

  • @ClipChaser
    @ClipChaser 11 месяцев назад +3

    Thank you for this tutorial!! This was really well structured and super helpful, subbed!

  • @s.kennedy.s
    @s.kennedy.s 7 месяцев назад +1

    The best tutorial channel i ever seen keep going ❤

    • @codethings
      @codethings  7 месяцев назад

      Thank you so much!

  • @Inlie
    @Inlie 3 месяца назад

    I just deleted one enumerator and all breaked. I just wanted to do closed-open open-closed, and deleted Pratially Open... Can't figured out what i did wrong.

  • @Vlavich
    @Vlavich 25 дней назад

    Thank you!

  • @VM4RT1NV
    @VM4RT1NV 3 месяца назад

    Bro this is so helpfull! thanks! pleqase show us at the begininig how its gonna end up looking.

  • @ItsBarnabyJones
    @ItsBarnabyJones Месяц назад

    I would like to see a full main menu setup in depth tutorial. Thanks

  • @KmPerHr
    @KmPerHr 6 дней назад

    How to do it like if I open door from outside it should be go towards inside and if I open from inside it should be open towards character idk if I explain it correct please help thx

  • @LyriaTempest
    @LyriaTempest 9 месяцев назад +1

    Hi, thank you for this tutorial! I noticed that we were blocked when we wanted to interact a second time with the door when it didn't finish opening. Basically, you partially open the door for the first time, but if you want to open it quickly by pressing the interaction key twice instead of once, it won't work because you have to wait x seconds without interacting. How could we do so that this takes into account the fact that we want to open the door more quickly by interacting twice in a row on the door without waiting x seconds?

  • @hansolo-7625
    @hansolo-7625 8 месяцев назад +1

    Great work!

  • @EyesofDeceitOfficial
    @EyesofDeceitOfficial 18 дней назад

    I have no idea what i did wrong but mine is not working...
    I watched your video twice and did it on 2 projects.. and it just doesnt work?
    I changed up the names but everything else i did like you did.. but not working?
    I have no idea why sadly
    I guess I'll use a regular door then, cuz that seems to work just fine?

  • @SAYRESS
    @SAYRESS 6 месяцев назад +4

    my door just hits my head lol. when im trying to interact it rotates wrong direction...

  • @刘林-p4t
    @刘林-p4t 3 месяца назад

    Special thanks for the tutorial, but I have a question about how to add a sound for this door to open and close?

  • @dynatix2682
    @dynatix2682 3 дня назад

    is it true that this wont work if your playercharater doesn't have a skeletal mesh? because my line tracing doesn't work either.

  • @Stath1320
    @Stath1320 4 дня назад

    Can help me anyone ? I make the door and the code it needs to work but when i play to test the door when i press e the door came to me and not away to me in partially open and then when i press e again the door open logical. Why is this happen ? Can someone help me to solve this ?

  • @HighLammer
    @HighLammer 6 месяцев назад +1

    Good job !!

    • @codethings
      @codethings  6 месяцев назад

      Thank you very much! :D

  • @pamudithkanchana9393
    @pamudithkanchana9393 6 месяцев назад

    can you make that when partially open to close sequence. Maybe from a deferent button to that. Like a peek from the door ..please

  • @oliveoiljunior5148
    @oliveoiljunior5148 5 месяцев назад +1

    Could you please put the door models in the description? The materials are all wrong after I split the same one you used.

  • @thaodang7783
    @thaodang7783 19 дней назад

    The dot Product does not work for me When I print the result it seem to randomly give positive or negative number.
    Any idea why?

  • @stunktheskunk8132
    @stunktheskunk8132 3 месяца назад +1

    at 24:59, my "Is Interacting with Door" node has "floor" instead of "player" and when I drag off it I don't have the option for "Get a reference to self"
    So basically I can't open my door, would anyone happen to know the cause of this?
    Thank you! Great tutorial series, I'm just very good at messing this stuff up haha

  • @Lanzyg
    @Lanzyg Месяц назад

    For me the door just opens in random directions, and doesen't shut completly (but with a 10 degree angle? why please help

  • @lunarwith9
    @lunarwith9 8 месяцев назад +3

    I would suggest using blueprints interfaces rather than casting to the player. Makes the code more efficient. Overall really good tutorial i liked it.

    • @codethings
      @codethings  8 месяцев назад +2

      In my “interact system” video I updated the interact system with a blueprint interface and everything :)

  • @Hash_kw
    @Hash_kw Месяц назад

    my door is not interacting at all, idk because I'm using a third person view, not sure whats the issue

  • @SnapzOfJoy
    @SnapzOfJoy 7 дней назад

    sometimes the door opens in the other direction even though I am looking in a completely different direction

  • @Stefan188x
    @Stefan188x 4 месяца назад

    you should trigger maybe something thaht when the door was half open its goes direct to open with next key was pushed, close it first or doing the next time again only halfopen is kind of not nice

  • @antixelite9355
    @antixelite9355 3 месяца назад

    this is a great tutorial, followed all the way through, but having the problem that when i open and close the door once, i cant do it again, dunno why its happening

  • @yes_azhr
    @yes_azhr 7 месяцев назад

    Thank you for this tutorial! However I have an issue with the LINE TRACE. When I press E the LT goes in a fixed direction and not towards the camera.

  • @PuniieGodx
    @PuniieGodx 9 месяцев назад +2

    mate you for sure deserve more subs and views! also could you maybe try and make a resident evil inventory system ? that would be so cool to make if not all good

    • @codethings
      @codethings  9 месяцев назад +2

      Thank you so much for the kind words. Also, 100% I will in the future so definitely be on the lookout for that :)

    • @OiItsPhantom
      @OiItsPhantom 9 месяцев назад

      @@codethings Would you be able to do the one from 4 specifically with how the size of each item takes up a certain amount of grid spaces? That one seems cooler than other RE games which had an item just take up a single slot or 2 max. RE4 was way more complex for inventory

  • @avdijamuda637
    @avdijamuda637 7 месяцев назад +1

    Great video! You explain everything, how to do it and why are you doing it. But I came across a problem, the door only opens partially when im using normal input, when im using enhanced it wont even open! What can I do to fix this problem? I've been trying to debug it that I learned the code by heart😅

    • @codethings
      @codethings  7 месяцев назад

      Thanks! Join our discord server and people can potentially help you with your answer :)

    • @avdijamuda637
      @avdijamuda637 7 месяцев назад

      @@codethings Thanks for the response! I send the problem at your discord I'm looking forward if anyone knows the solution!

  • @ty1978
    @ty1978 3 месяца назад

    Great tutorial but I am not able to set the reference to self variable, 'Self Object Reference is not compatible with BP Third Person Character Object Reference' - anyone else ran into this?

  • @khaotixy
    @khaotixy 5 месяцев назад +2

    my door opens just fine on one side, but if I go through it I then can't open it from the other side, help me please :(

  • @Jonesus
    @Jonesus 5 месяцев назад +1

    Hi, When going from open to closed, the door stays open about 5 degrees, and cant get it to turn to the original position. Cant figure out what I've done wrong, please can you help?

    • @Jonesus
      @Jonesus 5 месяцев назад

      Nevermind, Watched the second part where you covered this!

  • @charleskelvinamacanin8197
    @charleskelvinamacanin8197 6 месяцев назад

    Tutorial working really great. but sometimes i notice the door will open to the player not in front im really confused. Still subscribed ty for the video.

  • @academictakumi7406
    @academictakumi7406 6 месяцев назад +1

    Thanks for the other great tutorial!!
    How can we add the door sound to it? Is it okay to simply add 2D sound node from set timer by event node?

    • @codethings
      @codethings  6 месяцев назад

      @@academictakumi7406 in my part 2 of the door tutorial I added a functionality to add door sounds :) it’s a bit more complex

    • @academictakumi7406
      @academictakumi7406 6 месяцев назад

      @@codethings Oh thanks!! I am watching your tutorial series so I will get to that soon;)

  • @Dhdowned
    @Dhdowned 8 месяцев назад +1

    the automatic door closing isn't working at all, do you have any idea what i could of done wrong? everything else is working perfectly

    • @codethings
      @codethings  8 месяцев назад

      Hmm, it could be a multitude of things. If I were you, I would start from that point of the video when I start making it and retry from that point on. Since everything else is working, that shouldn’t take too long to remake that functionality and all it takes is a small thing to miss! If that doesn’t work, you are more than welcome to join our discord community and post it under code-help for additional help :) the link to join is in the latest community post

    • @Dhdowned
      @Dhdowned 8 месяцев назад

      @@codethings ok, i'll try that again

    • @nassergreatdeveloper3745
      @nassergreatdeveloper3745 4 месяца назад

      @@Dhdowned ​ I have the same problem. I fixed by just change get actor forward vector Z instead Y 27:34.

  • @NextGenNorway
    @NextGenNorway 7 месяцев назад +1

    Keep it up love your videos🤌🏻

  • @cube9878
    @cube9878 7 месяцев назад +1

    Alright, thanks for the tutorial it's been very helpful.
    But why does your door move so smoothly? I did it step by step, and it skips to the rotation point.

    • @codethings
      @codethings  7 месяцев назад

      Hm, I’m not 100% sure but if you are still confused you can always join the discord community and ask either myself or some of our community and we can try to help you :)

  • @digitalgamers822
    @digitalgamers822 5 месяцев назад

    Is there a way to make this work with the Customizable Interaction Plugin that is free for the month in the epic games marketplace?

  • @Haed1t
    @Haed1t 5 месяцев назад

    He works with my back to the door,how can I fix

  • @personalvict
    @personalvict 5 месяцев назад

    Why I can only open the door from one side? I dont know what to do.
    P.D: Your videos are asome keep going!! Greetings From Spain

  • @joanesunzu3087
    @joanesunzu3087 7 месяцев назад +1

    Would it be possible to make the hand push as shown in the game?

    • @codethings
      @codethings  7 месяцев назад

      Yes, I am working on this system so that I can make a video on it in the future!

  • @GentlemanJay111
    @GentlemanJay111 7 месяцев назад +1

    running into an issue where when i interact with the door to open it partially I have to then look away and look back at it and interact again to open it all the way. any idea why that is? Ideally I'd like to be able to just click twice rapidly to fling the door open if i need to.

    • @codethings
      @codethings  7 месяцев назад +1

      I would recommend joining my discord server so me as well as the community can try to help you further but just so I understand, do you particularly HAVE to look away or is there just a time that you have to wait between? Because, there is a time between partially open and open completely that is there by design. The functionality to click it twice to rapidly open is something I can potentially add in the future! Hope this helps :D

    • @GentlemanJay111
      @GentlemanJay111 7 месяцев назад

      @codethings thanks for the quick reply! Honestly after posting I realized it was kinda random whether or not I had to look away or not, but I did find that setting the speed of the animation higher made it a little smoother. I also added a quick OnComponentHit event that opens the door all the way of its already partially open. Really appreciated this video and I'm def looking forward to more!

    • @GentlemanJay111
      @GentlemanJay111 7 месяцев назад

      ​@codethings also I tried to join the discord but the link in the community tab says it's invalid 😢

    • @codethings
      @codethings  7 месяцев назад +1

      oh shoot ill have to update that but here is an updated link to the server here as well :)
      discord.gg/ngVv7JQJMT

  • @mr.jbusiness6679
    @mr.jbusiness6679 8 месяцев назад +2

    does it matter If I only follow this video for the code or do I have to go to your previous videos in your playlist for this to fully work?

    • @codethings
      @codethings  8 месяцев назад +1

      For the door system, you should be good to just follow this video for it to fully work :)

    • @mr.jbusiness6679
      @mr.jbusiness6679 8 месяцев назад +2

      @@codethings Thanks man, by the way your tutorials are Great! idk how you don't have more views

  • @valezalecki6772
    @valezalecki6772 3 месяца назад

    Alas, it doesn't work... and I suspect it's because I'm using FollowCamera instead of First Person Camera (because I followed the true first person tutorial on your channel). How do I fix this? Thanks so much for your time and all the awesome work you do.

    • @ty1978
      @ty1978 3 месяца назад

      Mine isn't working either and I'm also using the follow cam though I'm not sure that really matters as I think its just naming convention but I hope someone can help us out here :)

  • @mr.jbusiness6679
    @mr.jbusiness6679 8 месяцев назад +1

    Hey I'm pretty I followed each step but when I press E on the door it doesn't move, do have any ideas as to why this might be happening?

    • @codethings
      @codethings  8 месяцев назад +1

      There could be a lot of reasons tbh since this system is a lot of steps sadly. I would first put print statements right after the line trace in the interact and see if you can see the print. If you can, then you know it’s the door and you can rewatch that part of the tutorial. Alternatively, you could put print statements throughout the different door custom events and find out that way as well. You may have just missed one important thing, hope this helps!

    • @mr.jbusiness6679
      @mr.jbusiness6679 8 месяцев назад +1

      @@codethings ok I tried using the string at the line trace and it did appear, but I think I might know what the issue is, I'm using the default door mesh with the default Collison, I'm wondering would the collision affect me opening the door or would it not? - The Event Play worked, Door Interaction Mathematics Works, the Handle Door part doesn't seem to show any string nor does the Handle Rotation, have any ideas?

    • @mr.jbusiness6679
      @mr.jbusiness6679 8 месяцев назад

      @@codethings Im using Unreal version 5.2 does that matter?

  • @thehellini
    @thehellini 6 месяцев назад

    Hey man, been over the tutorial twice and I can't seem to open the door fully, I can only get to "Partially open" and "Closed". It won't open all the way?

    • @mamboroberts
      @mamboroberts 6 месяцев назад

      G'day - I had this and found I had forgotten to put the Door Open Angle variable default to 90 degrees. If not this check you have the enum variable plugged into you switch on enum in the stop interacting with door function and that you're multipliy in Handle Door is plugged it to the Handle Rotation function call. Hope one of these helps...

    • @thehellini
      @thehellini 6 месяцев назад +1

      @@mamboroberts ah thank you for the help, I have managed to change the way it swings now anyway just went more generic lol, appreciate the comment tho man!

  • @aspect1869
    @aspect1869 8 месяцев назад

    hi there, i enjoyed the tutorial but i have an issue where door only opens from 1 side, i watched the tutorial 3 times and i cant figure what is wrong, maybe you missed adding something into the video somewhere around 18 minutes with pivot points?

    • @codethings
      @codethings  8 месяцев назад

      Hi! Sorry to hear that, do you have the door open location scene component in the middle of your door and a child as it is in the video?

    • @khaotixy
      @khaotixy 5 месяцев назад

      Look at the line trace part closely, you might have switched by accident a couple connections

  • @Pasha01881
    @Pasha01881 7 месяцев назад

    I did the same but it didnt work (can you help me please)
    👏

  • @CodesAndGames
    @CodesAndGames 2 месяца назад

    You have incomplete code! Door doesn't work and you skipped that part in the video! Where is the code for the begin play event? it's incomplete

  • @mori5676
    @mori5676 5 месяцев назад +1

    is my door crazy or i have to look at top of the door to open the door ?😅 any idea why ?
    update : im using door from starter content . and i added collision to the door . and now its working 😂
    amazing video

  • @marcofurlan3834
    @marcofurlan3834 9 месяцев назад

    24:25 Why it says ''BP Door Object Reverence is not compatible with BP interact Door Object Reverence''
    :/

    • @codethings
      @codethings  9 месяцев назад

      I’m sorry to hear you’re having a problem at setting up the interaction part :( I just set up a new tutorial today actually that should fix this issue? If not, though, it does sound like you potentially misnamed your door blueprint? I would rewatch the tutorial and make sure the names are identical or match up to what you made yours

  • @MohamedbinSaud
    @MohamedbinSaud 10 месяцев назад +2

    Great ! But we want a new tutorial for door sound like RE7.

    • @codethings
      @codethings  10 месяцев назад

      This would be easy to extend off of my this system, if you wanted you could play a specific sound for the creek or fully open or closed when each of those actions are called in the blueprint

  • @brandonsharp1495
    @brandonsharp1495 4 месяца назад

    I was almost certain you were Bioxide TV lol. But guess not

  • @davidpankov
    @davidpankov 8 месяцев назад

    Friend hint) Made all the same) Everything seems to work) But when the door is open and I close it) It closes as if not completely and a little bit not to close) How to solve it?

    • @codethings
      @codethings  8 месяцев назад

      Hmm, can you show me what you mean when you say it doesn’t close 100% ? A reply with a screenshot would definitely help

    • @brandonsharp1495
      @brandonsharp1495 8 месяцев назад

      @@codethings Im having the same issue, when you manually close it, it leaves a small amount of space between the door and the frame.

    • @brandonsharp1495
      @brandonsharp1495 8 месяцев назад

      Also another issue, depending on the angle at which you hit the trigger, sometimes it doesn't open in the right direction.

    • @hentailover8444
      @hentailover8444 5 месяцев назад

      i know this is 3 months late but did you find a fix i have the same issue i'm thinking it was a problem with the door mesh itsself?

  • @TIXSOCAR
    @TIXSOCAR 8 месяцев назад

    Broo Can you upload the door file in Google Drive and put it on RUclips???? Ineed this door model

    • @codethings
      @codethings  8 месяцев назад

      In the beginning of the video, I showed where I got the door from. I got the door model from sketchfab, there are also many more doors! Hope this helps :)

    • @TIXSOCAR
      @TIXSOCAR 8 месяцев назад

      @@codethings Yes, I know, but the problem is that the doors stick together 🤒

    • @codethings
      @codethings  8 месяцев назад +1

      @@TIXSOCAR ah I see, yes, the mesh comes as a singular mesh which means you should import the mesh to blender and separate the door from the frame so that the door is a mesh by itself! Hopefully this helps :)

    • @makzy_smart
      @makzy_smart 8 месяцев назад +2

      I also grabbed the door and "cut out" the parts in Unreal Engine. The modeling tool in UE5 is really good and there you can, for example, cut out the door with a "Boolean Cut" :)

    • @codethings
      @codethings  8 месяцев назад +2

      @@makzy_smart I’ve never used that before, really good suggestion thanks! :)

  • @garvk-j5k
    @garvk-j5k 2 месяца назад

    doesnt work for me

  • @Saw_Shot
    @Saw_Shot Месяц назад

    bro it dont work for me

  • @nicko_3d_art
    @nicko_3d_art 5 месяцев назад +2

    followed everything in the tutorial and its still not working, dont know whats missing

  • @NotOebyFR
    @NotOebyFR 2 месяца назад

    Hello, I have a collision problem, my player cannot pass through the door .

  • @legendz7273
    @legendz7273 5 месяцев назад

    My door isnt dooring

    • @codethings
      @codethings  5 месяцев назад

      :( I’m not 100% sure why but you can always join the discord and we can try to help you out there!

  • @gizemtv1
    @gizemtv1 20 дней назад

    17.03

  • @QuantumPancake-6334
    @QuantumPancake-6334 3 месяца назад

    it didnt work bruh

  • @darkpaul2576
    @darkpaul2576 4 месяца назад +1

    incomplete tutorial