# Grabbing a pawn and dragging it around?

**URL:** <https://forums.unrealengine.com/t/grabbing-a-pawn-and-dragging-it-around/2437560>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [April 3, 2025, 11:43am UTC](https://forums.unrealengine.com/t/grabbing-a-pawn-and-dragging-it-around/2437560 "2025-04-03T11:43:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveDM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteveDM](https://forums.unrealengine.com/u/SteveDM)\
**Post date:** [April 3, 2025, 11:43am UTC](https://forums.unrealengine.com/t/grabbing-a-pawn-and-dragging-it-around/2437560/1 "2025-04-03T11:43:20Z")

</div>

Want to get some advice on how I might do this before going too far down the rabbit hole and ending up too far away from what might be a simple solution.

Basically, I want to grab hold of an NPC pawn, and be able to drag and drop them elsewhere in the level.

Starting with the top down template, I’m using the Get Hit Result Under Cursor to check if it’s using my custom trace channel. On a left mouse click, I then tell the hit actor it has been grabbed and while it’s grabbed, Convert the mouse location to world space and set the actor location from that. All it does it launch the pawn high in the air. I assume it’s because as soon as I do that, the mouse location changes and so changes the pawn location and this repeats until I release the mouse.

I’ve tried adjusting the Z value of the Convert Mouse Location to both positive and negative values but the same thing happens.

Ultimately, I want the mouse to “grab” the character (by the head which I’m assuming will be attaching so a socket but one step at a time) and stay attached to it until I release the mouse button but can’t figure out how to do this and everything I’ve searched for with “Drag and Drop” only results in doing it with UI so any help on how I might achieve this would be very much appreciated.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 3, 2025, 12:13pm UTC](https://forums.unrealengine.com/t/grabbing-a-pawn-and-dragging-it-around/2437560/2 "2025-04-03T12:13:44Z")

</div>

- as soon as LMB grabs the pawn by the head, store its actor reference from the Hit Results
- for dragging it around, either disable the collision on the pawn or (better) trace on a channel the pawn ignores. Otherwise you’ll be trying to place the pawn on itself - that would explain the way it flies off

Have a look here:

> [@Moving actor using mouse at specific Z at runtime](https://forums.unrealengine.com/t/moving-actor-using-mouse-at-specific-z-at-runtime/666754/3):
>
> You will need it sooner rather than later - I’d dig into it right now if I were you. But you can also do this for something truly simplistic: Just make sure the actor does not block Visiblity:

That’s be quite similar. And here’s a thread with some more advanced way to manage it:

> [@Left Mouse button pressed and released equivalent in enhanced input (or drag and drop)](https://forums.unrealengine.com/t/left-mouse-button-pressed-and-released-equivalent-in-enhanced-input-or-drag-and-drop/1633884/18):
>
> Here’s some script allowing for picking up stuff and moving it in a specific plane only we determine ourselves manually: The green debug plane visualises what’s going on. In short: shoot a beam (trace) from the screen centre towards the projected mouse cursor, when it eventually intersects that plane (which is infinitely large), place the actor at the intersect world coordinate. If I change the normal: You could derive this Normal from the actor itself instead:
