How do I put an object in my hands in a certain place?

I made it so that I could take the object in my hands ( according to this guide https://www.youtube.com/watch?v=v5D30Xn9GGc ) and I would like to be able to move this object to a certain place. How to do it?

I didn’t watch the tutorial you’ve sent all the way but at some point I saw the “Destroy Actor” node came into play. If the actor that seems to be “picked up” is just virtual and not actually there in reality, you would need to use the “Spawn Actor” node to place it in your scene again. And how you want to handle the placing mechanism is all about you, but if you want some suggestions on that too, you could use line traces that detect where the player is looking at, or use collision boxes to deterime when the player gets inside the dropping area if the actor will go into a slot anyway. And there are many more approaches as well just for this mechanic!

1 Like

The problem is that I do not know how to remove the object from my hands(

By using the “Destroy Component” node :innocent:

1 Like

So if I destroy this component, I won’t be able to pick up other objects.

No of course you can! If you face any additional issues, provide how you handle picking up and resetting mechanism so I can continue helping you in those parts as well

Most likely, I misunderstood you (but here’s how I did it to take the item out of my hands


, and in this case I can’t take another item).

You see this part of the code isn’t very related to the picking up part :sweat_smile: so can you share these in your next reply:

  • The blueprint code of your picking up mechanism
  • All the related parts to that code, for example if there’s a variable included in that logic, also send the screenshots of the parts where it’s declared
  • A video demonstrating the issue

I’m sorry that I’m so stupid, but even now I don’t really know what exactly you need to throw off, so I’ll throw off everything related to this action(
Screenshot_5
Screenshot_6



)

Okay so it seems like you’re destroying the item as a whole once the obtaining event is triggered, and you fix it’s static mesh to the player’s mesh to have the illusion of it being picked up, just like in the tutorial you’ve sent! Now, your initial problem was how to place it back, right? I’ve explained how in my first post, and then explained how you can remove that static mesh after your follow up question. Moving on with your current problem, all those are working and you can place that item back on the ground, but you can’t pick it up again, is that right? If so, it might be because of the lack of the collision sphere for your newly spawned actor.

If your issue doesn’t get resolved with this, or my assumption is wrong, please follow up by sharing these:

  • If you’re now able to remove the item that is attached to the player’s mesh after you’ve picked it up or not
  • If you’ve set the things I’ve suggested about the placement mechanic correctly or not
  • A screen recording of the game as you reproduce the issue you’re having

(I watched the video you’ve sent again, I see it’s just dependent on overlapping so what you’ve sent earlier was indeed all the parts related to picking up :blush: )


I sent this to you to show how I understood your explanations above, but clearly wrong because it only works once(

“I’m not sure if you can continue communicating with me, but since I’m new to Unreal, I don’t always understand what you mean. When I asked how to remove the object from my hands, you answered: ‘Destroy the component’. I sent you a screenshot to show how I understood your answer, but then I noticed that it was not working correctly. I didn’t know how to properly install this ‘destruction component’. That was my problem—I don’t understand how to properly remove an object from my hands.”

Can you expand on that? Does it not remove the item from your hands? Or does it successfully removes the item but this time you can’t pick another item up again?

Also, how do you handle resetting the item from your hands and placing it back on the ground, did you implement my approach from my initial reply? Or do you have multiple items in your scene?

And a screen recording of your game as you play it where you show the issue would be very helpful.

2024-09-14 18-51-02.mkv (13.9 MB)
In this video, I showed how I added the ‘destruction component’ and what a problem I have because of it.

Could you convert that to mp4? I can’t open it unfortunately

Uploading: 2024-09-14 18-51-02.mp4…

Oh I see. I could have understood that from your screenshot you’ve sent earlier :sweat_smile: but watching your video (this one doesn’t play but the private one) made me look for the issue there specifically, and I noticed something after looking a little bit closer. It’s because you’ve plugged the wrong object into the target pin of the “Destroy Component” node. Plug in the output pin of your function that detects the object that needs to be picked up in there instead :innocent:

Do you mean this

Yep

(