# Erase residual movement from pawn possession

**URL:** <https://forums.unrealengine.com/t/erase-residual-movement-from-pawn-possession/1807397>\
**Category:** Blueprint\
**Tags:** movement-component, possessing-pawns, unreal-engine, question, Blueprint\
**Created:** [April 17, 2024, 3:24am UTC](https://forums.unrealengine.com/t/erase-residual-movement-from-pawn-possession/1807397 "2024-04-17T03:24:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaucyStewve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaucyStewve](https://forums.unrealengine.com/u/SaucyStewve)\
**Post date:** [April 17, 2024, 3:24am UTC](https://forums.unrealengine.com/t/erase-residual-movement-from-pawn-possession/1807397/1 "2024-04-17T03:24:06Z")

</div>

I have Ship\_BP and PlayerCharacter\_BP blueprints. I am not trying to simulate any sort of buoy physics or anything with my naval ship, but I am running into a funny bug where my playercharacter continues to receive the movement input of the ship even after I re-possess my PlayerCharacter\_BP pawn.

I set up a movement system similar to Assassin’s Creed: Black Flag where there are four movement indices, each with a different max speed. When the user clicks forward/backward, the speed index increments/decrements, and I set the max speed of the floating pawn movement. The ship then moves along every tick at the max speed of the corresponding speed index.

I ran into a problem where the ship would stop moving if I repossessed my playercharacter pawn, and I figured it was because the ship pawn needed a controller to receive movement input. I now store the initial controller in a variable and when the player controller repossesses the playercharacter pawn, I possess the ship with the aicontroller.

Now when I repossess my player character pawn, the ship continues to move along as expected, but the playercharacter pawn also receives a movement input in the same forward vector as the ship. I have tried to clear the movement input, disable and then re-enable movement on the charactermovement component, but it hasn’t worked.

Can anyone help explain why my playercharacter pawn would still be receiving these residual movement inputs?

 ![Screenshot 2024-04-16 212221](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/7/43797547458b082a5cc638fe173bdd79df865049.png)  
 ![Screenshot 2024-04-16 212205](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/2/5a2c9492edabbc19623ccd7e10e3318416aa7553.png)

---

<div class="post-metadata">

**Author:** ![SaucyStewve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaucyStewve](https://forums.unrealengine.com/u/SaucyStewve)\
**Post date:** [April 17, 2024, 4:26pm UTC](https://forums.unrealengine.com/t/erase-residual-movement-from-pawn-possession/1807397/2 "2024-04-17T16:26:11Z")

</div>

Update: I tried to use the disablemovement node in my playercharacter\_bp on possession, but I’m still able to move around. I wonder if the floatingpawnmovement component has overridden the charactermovement component or something? I can still move around with the charactermovement component, but the displacement from the aicontroller/floatingpawnmovement is also being applied to my playercharacter pawn.

---

<div class="post-metadata">

**Author:** ![SaucyStewve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaucyStewve](https://forums.unrealengine.com/u/SaucyStewve)\
**Post date:** [April 17, 2024, 5:47pm UTC](https://forums.unrealengine.com/t/erase-residual-movement-from-pawn-possession/1807397/3 "2024-04-17T17:47:44Z")

</div>

I’m a silly guy. I never detachfromactor when I repossess my playercharacter pawn, so it is still attached as the ship moves. When I detach it all works great.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 17, 2024, 5:48pm UTC](https://forums.unrealengine.com/t/erase-residual-movement-from-pawn-possession/1807397/4 "2024-05-17T17:48:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
