UE5 - Open Door with 'F' - Only if We're Looking At It

Поділитися
Вставка
  • Опубліковано 1 січ 2023
  • Learn how to interact with actors 'but only' if you're currently looking at the actor! In this tutorial we'll cover how this is possible as well as go over some extra things like locking, unlocking, and keys!
    My Social Links: linktr.ee/DarkslayerTV
    Help Support Me: / darkslayertv
    My Games: darkslayertv.itch.io/spirit-w...
  • Ігри

КОМЕНТАРІ • 25

  • @GamerDudeBYT
    @GamerDudeBYT 3 місяці тому +1

    This gave me exactly what I was looking for after 3 hours. THANK YOU SO MUCH!

  • @Seem_gDev
    @Seem_gDev Рік тому +7

    Thanks for this video man! There are so many tutorials about this I watched, but none of them explained what we we're doing so I couldn't use the information for other things. This actually taught me a lot more than any tutorial about doors OR about blueprints communicating.

    • @DarkslayerTV
      @DarkslayerTV  Рік тому +4

      That's my goal! Understanding! ^^ I'm glad to hear it worked for you!

  • @happydazegaming
    @happydazegaming Рік тому

    Keep up the great work!

  • @user-cw8pb7do6l
    @user-cw8pb7do6l 9 місяців тому

    Truly Exceptional video. Well explained and thought out. Learnt more than I would normally In a Week in one video!!!!

  • @jensjensen4038
    @jensjensen4038 Рік тому

    This is a very useful video! I liked it

  • @gowtxd
    @gowtxd 8 місяців тому

    Thank you for the video, it really helped me !

  • @dpereirax
    @dpereirax Рік тому

    Nice vid! Thank you. Can i ask for you to make hide in locker by looking at the door?

  • @serizawareda7831
    @serizawareda7831 4 місяці тому

    great tutorial ! but i'm so confused !! How can we add a static mesh to the key system logic ID and pick it up to open our corresponding doors ?? Please help 😢

  • @user-cw8pb7do6l
    @user-cw8pb7do6l 9 місяців тому

    I Imagine/hope it would be fairly simple to add in a door opening sound I already have?

  • @ItzKindu
    @ItzKindu Рік тому +2

    How do I make a key to unlock that door because I’ve been trying to BP an item but just can’t figure out how to code picking it up and then giving me the “Key01”

    • @DarkslayerTV
      @DarkslayerTV  Рік тому +2

      Good question! There's multiple ways to go about it, but for now, I recommend doing something like this.
      In your key bp create a custom event that is called when the player picks up the key. This even will cast to the first person character bp or third person respectively. From the cast you'll be able to adjust variables in the bp it's casting too.
      So now you can get their keychain array and simply add key01. =]
      (Hint: you'll need to use "Get Player Character" for the cast.)

    • @ItzKindu
      @ItzKindu Рік тому +1

      @@DarkslayerTV Thanks and 1 more question. Why is it that i have to add collision to the door each time i open the project even though i save it with collision?

    • @DarkslayerTV
      @DarkslayerTV  Рік тому +2

      @@ItzKindu happens to me too, has something to do with the default engine assets. Try the website sketchfab to find a better door model. =]

  • @koroneinugamii
    @koroneinugamii 11 місяців тому

    I followed your tutorial and added the key function but now the doors won't close even if they're not locked when you open them you can't close them

  • @aaammm8149
    @aaammm8149 Рік тому +2

    ICANT NOT ADD "USE" IN THE INHERITED INTERFACES >>AND TY 4 THE VIDEOS

    • @-delilahlin-1598
      @-delilahlin-1598 Рік тому +1

      Also came across this issue. Though I was able to add under “implemented interfaces”
      We’ll see how much it matters 😅

    • @-delilahlin-1598
      @-delilahlin-1598 Рік тому +2

      It didn’t matter! I made a door open!! 🎉😂🎉

    • @davidquee8728
      @davidquee8728 Рік тому +1

      use "implemented interfaces" instead

  • @keth8947
    @keth8947 7 місяців тому

    I've gone through this 3 times. Checked everything is lined up correctly and the f'n door WILL NOT OPEN. I even turned on the line trace (debug type persistent) to make sure it was actually triggering, and it DOES draw the line. It even turns green when it hits the door. But the door refuses to swing. AUUUUGGGHHH!!!!

    • @keth8947
      @keth8947 7 місяців тому

      I give up. Went from beginning to end and the door still doesn't open. Either this tutorial doesn't actually work OR Unreal 5.3 changed something.... I'm done. I hate programming.

    • @ItsD3vil
      @ItsD3vil 6 місяців тому +1

      I swear to god I was about to break my computer then I realized that the problem is I linked the Get World Location Wrong And Get Forward Location Wrong. You must multiply the Get Forward Location To 225 Then Add The value to Get World Location. Watch the video carefully from here 12:41 look how it's linked

    • @4ndr3wR
      @4ndr3wR 4 місяці тому

      Make sure your ray tracing is correct and change the float to an exaggerated number so you can "open" the door from far. Check everything is connected correctly and use "implemented interfaces" instead of "inherited interfaces". Double check your interface is a blueprint interface and not just a blueprint. Programming is literally one step after the other, if one is wrong, then the next line won't execute. @@keth8947

  • @ahmadjames151
    @ahmadjames151 Рік тому

    Use Java !

  • @LoonasHusband
    @LoonasHusband 6 місяців тому +1

    Tell me this guys is not Pat from PopularMMOS ☠