# Disable player movement but allow camera control

**URL:** <https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428>\
**Category:** Cinematics & Media\
**Tags:** disable, unreal-engine, Blueprint, question\
**Created:** [July 17, 2014, 8:50am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428 "2014-07-17T08:50:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlowDE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlowDE\_1](https://forums.unrealengine.com/u/FlowDE_1)\
**Post date:** [July 17, 2014, 8:50am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/1 "2014-07-17T08:50:05Z")

</div>

Hey,

is it possible to disable the character movement but allow the player to control the camera in Blueprint?  
I want to freeze the character in place until the player looks at a certain area, then unfreeze the movement.

Thanks in advance,  
Florian

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [July 17, 2014, 9:15am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/2 "2014-07-17T09:15:36Z")

</div>

You can. Create a boolean variable named ‘Movement Locked’. Set it to true when you want to lock the controls. Within the event handlers for charcter movement (Move forward, Move right…), use a Branch node to test for this boolean variable and apply movement inputs only if it is FALSE.

When you want to let the charcter move, set this variable to False.

---

<div class="post-metadata">

**Author:** ![FlowDE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlowDE\_1](https://forums.unrealengine.com/u/FlowDE_1)\
**Post date:** [July 17, 2014, 10:03am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/3 "2014-07-17T10:03:42Z")

</div>

Thanks, but I am working with a C++ Third person project, so there are no BP Events for movement. Is there a way to do this with Blueprints in my case?

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [July 17, 2014, 10:37am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/4 "2014-07-17T10:37:09Z")

</div>

Events for movements = The Axis and Action bindings for your charcter.

Look below and see the answer from @rjvm . That is what I meant.

You should follow that blueprint and it will work.  
One thing you might want to change is when you change ‘Can Move’ to TRUE or FALSE. In your case it must be based on charcter rotation

---

<div class="post-metadata">

**Author:** ![FlowDE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlowDE\_1](https://forums.unrealengine.com/u/FlowDE_1)\
**Post date:** [July 17, 2014, 10:56am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/5 "2014-07-17T10:56:29Z")

</div>

I know what you meant but I don’t have those events implemented already, since my Project is based off of C++ Third Person. My Character Blueprint looks like this:

 ![10503-characterbp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/0/e60488285381ba8f792735f2da15bf04f6713ea8.jpeg)

The events in there are the ones I wrote for my purposes, otherwise it is empty. When I try to implement the method below by adding the axis events, I just can’t move at all. I’m guessing the Blueprint and the C++ code conflict with each other and an error occurs.

Thanks for your efforts, but I’ll solve it using code.

---

<div class="post-metadata">

**Author:** ![FlowDE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlowDE\_1](https://forums.unrealengine.com/u/FlowDE_1)\
**Post date:** [July 17, 2014, 10:58am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/6 "2014-07-17T10:58:06Z")

</div>

This method definitely works if you’re using the BP template, for anyone else looking for something like this!

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [July 17, 2014, 11:06am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/7 "2014-07-17T11:06:13Z")

</div>

Couldn’t you do the same logic in your C++ code?  
I mean you already have functions bound to events. Just add this additional logic in there. Its only a single If-else statement.

---

<div class="post-metadata">

**Author:** ![FlowDE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlowDE\_1](https://forums.unrealengine.com/u/FlowDE_1)\
**Post date:** [July 17, 2014, 11:50am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/8 "2014-07-17T11:50:42Z")

</div>

Yea it’ll be the same logic 🙂

---

<div class="post-metadata">

**Author:** ![rjvm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rjvm/32/1145273_2.png) [@rjvm](https://forums.unrealengine.com/u/rjvm)\
**Post date:** [July 17, 2014, 11:55am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/9 "2014-07-17T11:55:58Z")

</div>

I thought I had answered

---

<div class="post-metadata">

**Author:** ![FlowDE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlowDE\_1](https://forums.unrealengine.com/u/FlowDE_1)\
**Post date:** [July 17, 2014, 12:12pm UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/10 "2014-07-17T12:12:00Z")

</div>

You took what mindfane said and gave an example of it, and I appreciate that, but he gave the answer.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4030fea0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4030fea0](https://forums.unrealengine.com/u/anonymous_user_4030fea0)\
**Post date:** [October 9, 2016, 4:01am UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/11 "2016-10-09T04:01:52Z")

</div>

Up voting this. Came across the same problem, and the same solution before I stumbled on this thread. This is probably the best way to do it. Tried using Disable Character Movement but it was producing odd results when Character was placed on other moving objects (e.g. platform or a moving ship)

---

<div class="post-metadata">

**Author:** ![BIOBOOSTERPIXEL](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bioboosterpixel/32/1124954_2.png) [@BIOBOOSTERPIXEL](https://forums.unrealengine.com/u/BIOBOOSTERPIXEL)\
**Post date:** [February 14, 2024, 9:04pm UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/12 "2024-02-14T21:04:12Z")

</div>

Works as it supposed to. I thought there might be a seperate blueprint function for this already, but a bool is a straigt forward solution. 👍

---

<div class="post-metadata">

**Author:** ![Lazy-X](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lazy-X](https://forums.unrealengine.com/u/Lazy-X)\
**Post date:** [April 23, 2025, 8:58pm UTC](https://forums.unrealengine.com/t/disable-player-movement-but-allow-camera-control/288428/13 "2025-04-23T20:58:55Z")

</div>

Solution that halped me: do “Deactivate” from your character movement:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/0/520d6a3fc0abdc3a7ade9b22a5aad5d04fd4f37a.png)
