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.