# how to

**URL:** <https://forums.unrealengine.com/t/how-to/1893507>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [June 7, 2024, 7:39am UTC](https://forums.unrealengine.com/t/how-to/1893507 "2024-06-07T07:39:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hundredcaws](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hundredcaws](https://forums.unrealengine.com/u/hundredcaws)\
**Post date:** [June 7, 2024, 7:39am UTC](https://forums.unrealengine.com/t/how-to/1893507/1 "2024-06-07T07:39:40Z")

</div>

i am creating simple interior visualisation project for mobile. i started with default mobile project with starter content (see those yellow chairs and a table). it works fine but i need player to walk instead of flying. i dont need to put a rigged character into this. i just want your eyes to remain the same level above the floor without diving into floor or hitting the ceiling. is there a way to just constrain z coord? or some other way to have player Z constant? thank you in advance for any help.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 7, 2024, 7:52am UTC](https://forums.unrealengine.com/t/how-to/1893507/2 "2024-06-07T07:52:06Z")

</div>

Just change the player type in the game mode

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/e/ede644132bea91b55e06fbaee4f848806c4afea1.png)

---

<div class="post-metadata">

**Author:** ![hundredcaws](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hundredcaws](https://forums.unrealengine.com/u/hundredcaws)\
**Post date:** [June 7, 2024, 8:11am UTC](https://forums.unrealengine.com/t/how-to/1893507/3 "2024-06-07T08:11:14Z")

</div>

I forgot to mention i am using UE4.21. It looks a bit different. not sure what to click?

 ![ue4.21.gamemode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/1/911ff64c2f1700b41d85fc0e094f520700951cdb.jpeg)

---

<div class="post-metadata">

**Author:** ![hundredcaws](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hundredcaws](https://forums.unrealengine.com/u/hundredcaws)\
**Post date:** [June 7, 2024, 8:15am UTC](https://forums.unrealengine.com/t/how-to/1893507/4 "2024-06-07T08:15:20Z")

</div>

or like here in project settings. why are options greyed out?

 ![ue4.21.settings.gamemode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/b/79beb45eefb337206fa8697a7f7e47669314a450.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 7, 2024, 11:07am UTC](https://forums.unrealengine.com/t/how-to/1893507/5 "2024-06-07T11:07:20Z")

</div>

You only need it in the level, unless you want to override all levels.

Here’s a vid, it’s the same concept in 4 and 5

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/3/df30fbc8da73b53d602c1d12ce46f1f8a4ad70ea.jpeg "UE5 GameMode vs GameInstance Explained") ](https://www.youtube.com/watch?v=0pAhqA2Sgto)

---

<div class="post-metadata">

**Author:** ![hundredcaws](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hundredcaws](https://forums.unrealengine.com/u/hundredcaws)\
**Post date:** [June 7, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/how-to/1893507/6 "2024-06-07T16:13:57Z")

</div>

I guess what i should do is to create new gamemode blueprint, switch it on in settings and change default pawn (flying) to character (walking). When i did that my character would not move or rotate. Why?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [June 8, 2024, 5:00am UTC](https://forums.unrealengine.com/t/how-to/1893507/7 "2024-06-08T05:00:15Z")

</div>

Hey there @hundredcaws! If you changed the gamemode you’ll also likely have to set your the default pawn to your character and make sure your PlayerController is chose as well. Without both of these your character may not spawn, or your player controller could be empty and wouldn’t retain inputs.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 8, 2024, 6:51am UTC](https://forums.unrealengine.com/t/how-to/1893507/8 "2024-06-08T06:51:30Z")

</div>

I’m just checking, you have the first person assets as part of this project, right?

Then you could just use the first person gamemode.

If you don’t have those assets, you can add them. In the content browser, right-click

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/5/9f58d1215b77aaa49f4d89fc49ead79c850dc2b1.png)

and

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/b/edbee90735d9d9836dc7e2e5970049b750171e5a.jpeg)

---

<div class="post-metadata">

**Author:** ![hundredcaws](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hundredcaws](https://forums.unrealengine.com/u/hundredcaws)\
**Post date:** [June 9, 2024, 7:04pm UTC](https://forums.unrealengine.com/t/how-to/1893507/9 "2024-06-09T19:04:52Z")

</div>

I guess i got no first person assets in my project. But i found another solution. I built a blueprint to constrain z axis of my pawn. Get location vector, break vector, copy x y, set constant z, make vector, set location.

---

<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:** [July 9, 2024, 7:05pm UTC](https://forums.unrealengine.com/t/how-to/1893507/10 "2024-07-09T19:05:10Z")

</div>

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