Unreal Engine 5.1 | Static Mesh Sockets - Attach a weapon to the hand dynamically

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2023
  • In this video I want to show you how you can put a weapon in your hand using sockets with static meshes during game.
    Sockets are basically attach points you can place on your Static Mesh. Once set up, you can connect objects to the socket.
    In this example I use a simple lamp as weapon, which is included in the Starter Content of Unreal Engine.
    🌟🌟 Places you can find me 🌟🌟
    🤓 LinkedIn: / %f0%9f%8e%b9-rudolf-ci...
    🎥 TH-cam: / @codingwithrudy
    🧠 GitHub: github.com/Cicko
    ✍️ Medium: / rudolfcicko2011
    🤔 StackOverflow: stackoverflow.com/users/90276...
    💡 Twitter: / rudolfcicko2
    👍 Facebook: / codewithrudy

ความคิดเห็น • 13

  • @Guest-pr6vb
    @Guest-pr6vb ปีที่แล้ว +2

    thanks this helped me out for mesh that was deformed in my animation. I didnt want to have to rig it so this was a nice work around

  • @sepp1889
    @sepp1889 ปีที่แล้ว

    Thank you! Helped me a lot!

  • @supremepc6298
    @supremepc6298 12 วันที่ผ่านมา

    the weapon on his back isnt following
    so i need to make another socket for back? but not sure after this

  • @gladiyit6771
    @gladiyit6771 5 หลายเดือนก่อน

    ty

  • @DigitalStaff
    @DigitalStaff ปีที่แล้ว

    Cool video! Thanks for sharing. How would you connect an item between two sockets? Like say a two handed sword that would be held between the left and right hands? Thanks

    • @codingwithrudy
      @codingwithrudy  ปีที่แล้ว

      Thank you Oscar!
      If you want to switch between two sockets, you would have to duplicate the node "Attach Component to Component" used in 5:21 with the same parameters except the Socket Name, where you have use the another socket.
      Then you have to define the conditions which will decide whether you have your sword in one hand or another. for example you use the letter Q for the left hand, and the letter E for the right hand, and connect those events to the corresponding nodes.
      Also you could maybe define a more complex conditions using the Branch node, so under specific conditions of different variable values you decide which hand should hold the sword.
      Let me know if it's not clear, I would be happy to make another video about that :)
      Cheers,
      Rudy

  • @its_soaz
    @its_soaz 5 หลายเดือนก่อน

    thanks.
    ik this videos old but how would u go about clicking E again to put it back on ur back??
    Because with my understanding it might not know wether to go on ur back or ur hand if u have 2 set to the same key.

    • @its_soaz
      @its_soaz 5 หลายเดือนก่อน +1

      I figured it out.
      u would just use a Flipflop blueprint

  • @LightningTrooper
    @LightningTrooper 5 หลายเดือนก่อน +1

    socket on the bones != Static Mesh Socket

  • @brennoluktv4371
    @brennoluktv4371 หลายเดือนก่อน

    Nice vídeo like

  • @chrismills-ps7lt
    @chrismills-ps7lt ปีที่แล้ว

    i will pay you to help me start my own rage server