# Player pawn is none after open Level

**URL:** <https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764>\
**Category:** Blueprint\
**Tags:** default-pawn, open-level, unreal-engine, pawn, Blueprint, question\
**Created:** [January 4, 2021, 12:42pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764 "2021-01-04T12:42:23Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![daMichl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daMichl](https://forums.unrealengine.com/u/daMichl)\
**Post date:** [January 4, 2021, 12:42pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/1 "2021-01-04T12:42:23Z")

</div>

I made a Level called MainMenu that also loads a Widget Called MainMenu. In this MainMenu Widget, if you press “Start Game”, it loads the FlatGrass Map. The Map loading itself works. Also the correct Player Pawn Controller “RtsPawnController” is loaded.

Just the RtsPawn which was set inside the GameMode used for the FlatGrass Level seems not to be loaded correctly by the Engine… it is “None” if I try to get its Reference inside the RtsPawnController.

Have I introduced some flaw I am not recognizing?

 ![326252-uequestion.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/c/02c7a2136ad678f8fa219d9ba4f1b500ad3716f8.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:** [January 4, 2021, 1:29pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/2 "2021-01-04T13:29:21Z")

</div>

You need to look at the node after the cast to find out if it worked.

I just constructed this whole arrangement and it works fine.

---

<div class="post-metadata">

**Author:** ![daMichl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daMichl](https://forums.unrealengine.com/u/daMichl)\
**Post date:** [January 4, 2021, 2:15pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/3 "2021-01-04T14:15:26Z")

</div>

Thanks for your fast Reply :-).

What I can say is: the return of the Cast also gives None.

If I load the FlatGrass Map directly in the Editor and press Play, it works like a charm…

Here’s a Breakpoint with a Watcher at the return of “Cast To RtsPawn”

 ![326255-debug2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/b/bfbc1819d59c58f6c663d2fff27be99ed61f61b4.jpeg)

Here’s A Debug Log of Blueprint activities Afterwards. The “Pawn Ref” is definitely “None”.

 ![326257-debuglog.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/2/6621d9d8ccaf8853a1ab74db2648b7e21a56d2f1.jpeg)

If you think there’s specific information Missing. please tell me. I am fairly new to Unreal, so maybe I missed something.

---

<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:** [January 4, 2021, 2:29pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/4 "2021-01-04T14:29:43Z")

</div>

What I mean is:

 ![326258-screenshot-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/f/72f211ab675e974a9abfd50f640d2f5e6cd28ae9.jpeg)

the break point needs to be on the next node if you want to look at the ref.

I suspect it’s not casting.

If it fails, do this to find out what it really is:

 ![326259-screenshot-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/d/56d5664abed20e7aa57d2605fc46785302df8aef.jpeg)

---

<div class="post-metadata">

**Author:** ![daMichl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daMichl](https://forums.unrealengine.com/u/daMichl)\
**Post date:** [January 4, 2021, 7:32pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/5 "2021-01-04T19:32:06Z")

</div>

Seems the Casting is not the Problem. It is already damned to fail in front of the Casting. GetPlayerPawn gives already “None”.

Could this be a problem with Input Modes?

 ![326283-debuggraph.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/f/bcfd541aa7ea12c96d1258d566275d93777161e0.jpeg)

![326284-debugprintf.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/f/99f068a7bd11e4163f820bcb827bc6ece1173087.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:** [January 4, 2021, 8:03pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/6 "2021-01-04T20:03:14Z")

</div>

Right. What kind of BP did you make? It’s easy to leave out pawn or character if you start making custom types…

---

<div class="post-metadata">

**Author:** ![daMichl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daMichl](https://forums.unrealengine.com/u/daMichl)\
**Post date:** [January 4, 2021, 11:51pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/7 "2021-01-04T23:51:59Z")

</div>

- For the MainMenu Level I made a “GameMenuGameMode” with Parent Class “Game Mode”:

 ![326319-mainmenugamemode.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/f/fdfd0bbcec5184e49c362e360146c38f92904d6c.jpeg)

- For the Game Levels I made a “RtsGameMode” with Parent Class “Game Mode”

 ![326320-rtsgamemode.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/a/4ea65113f6245c3afe1dd25a653000ba93c535fd.jpeg)

- The “RtsPawn” Blueprint has “Pawn” as its Parent Class. It contains A sphere Mesh with SpringArm Mounted Camera.

- The “RtsPawnController” Blueprint has “Player Controller” as its Parent Class. It contains Rts Like Controls.

---

<div class="post-metadata">

**Author:** ![ConradG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ConradG](https://forums.unrealengine.com/u/ConradG)\
**Post date:** [January 5, 2021, 12:04am UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/8 "2021-01-05T00:04:05Z")

</div>

In your Pawn Blueprint, do you have the controller set to Auto Possess on Spawn/Placed in Level?  
(meant to make this a reply)

---

<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:** [January 5, 2021, 8:32am UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/9 "2021-01-05T08:32:25Z")

</div>

Also check what ConradG is saying…

---

<div class="post-metadata">

**Author:** ![daMichl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daMichl](https://forums.unrealengine.com/u/daMichl)\
**Post date:** [January 5, 2021, 1:32pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/10 "2021-01-05T13:32:06Z")

</div>

Yeah, it is a possession Problem. Forgot to put a Pawn inside the “GrassLevel” and did not know I need to either possess the Pawn by AutoPosess at the Pawn Class Settings or some Blueprint scripting etc.

If I directly Play the Map inside the Editor, it seems the Editor injects a Pawn automatically at the actual View position…

Is this all normal behavior?

---

<div class="post-metadata">

**Author:** ![daMichl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daMichl](https://forums.unrealengine.com/u/daMichl)\
**Post date:** [January 5, 2021, 1:43pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/11 "2021-01-05T13:43:25Z")

</div>

Now it seems my Input Events inside the “RtsPawnController” do not trigger anymore.

![326364-pressftopayrespect.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/3/df32cb5b7bf656f16a4a11ab8cea310d7aa65166.jpeg)

If I start the “FlatGrass” Level directly the Inputs are triggered without Problem. Don’t know if this problem has kind of the same Root… Should I open a new Question for this?

---

<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:** [January 5, 2021, 2:27pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/12 "2021-01-05T14:27:43Z")

</div>

It’s the same problem. You’re not getting a pawn for some reason.

If you F8 ( exit during gameplay ), what do you see in the outliner?

Yes to above - normal behaviour…

But: the whole point of having a game mode and changing the game mode for the level is you don’t need to put a pawn in the level…

---

<div class="post-metadata">

**Author:** ![daMichl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daMichl](https://forums.unrealengine.com/u/daMichl)\
**Post date:** [January 5, 2021, 2:43pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/13 "2021-01-05T14:43:08Z")

</div>

After pressing F8 during gameplay:

![326380-outliner.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/2/202d9580a2951c0cce5c7ff6cb35a2bcd41fbda8.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:** [January 5, 2021, 3:47pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/14 "2021-01-05T15:47:36Z")

</div>

Did you enable input in the pawn? Did you toggle ‘consume’ off?

 ![326404-screenshot-5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/3/e73e71c5dfd737056cf008559956ec0f838c827a.jpeg)

![326405-screenshot-6.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/6/db6c2ebdf417df84c7403c5dfce678b63763ecb7.jpeg)

---

<div class="post-metadata">

**Author:** ![daMichl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daMichl](https://forums.unrealengine.com/u/daMichl)\
**Post date:** [January 5, 2021, 9:30pm UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/15 "2021-01-05T21:30:05Z")

</div>

I have no Controls inside the Pawn. my Controls are all set inside the PlayerController. is this the wrong way to go? Did fetch this way to go from a Youtube Tutorial.

here’s my Controller Blueprint (Rts style Camera Movement):

 ![326428-rtspawncontrollerblueprint.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/a/32ae5dc5e816519ff49206a9eaab0c193e62f705.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_70c583191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_70c583191](https://forums.unrealengine.com/u/anonymous_user_70c583191)\
**Post date:** [August 15, 2021, 10:09am UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/16 "2021-08-15T10:09:06Z")

</div>

Hi, I have found a way to solve it, and it is crazily simple.

Just

1.turn your parent class of your game mode to Game Mode Base

2.turn your parent class of your game state to Game State Base  
That is all.

At least, it works for me.

Good luck!

---

<div class="post-metadata">

**Author:** ![ITSaMeDIMA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ITSaMeDIMA](https://forums.unrealengine.com/u/ITSaMeDIMA)\
**Post date:** [December 4, 2022, 12:33am UTC](https://forums.unrealengine.com/t/player-pawn-is-none-after-open-level/476764/17 "2022-12-04T00:33:12Z")

</div>

This reply is really late but if it helps anyone in the future, This is most likely because you have set input mode UI only when displaying the widget to the viewport for the main menu but forgot to set the input mode to Game and UI/ Game only where you are doing the open level node.
