Why the game is not using my Pawns camera?

Hi guys, I am super noob for UE. I want to create a simple game with a plank as the Pawn that flaps up on key press and returns to normal postion on release. I created a BP_Pawn class and added cube mesh to it. Then added a camera component and cliked play. the game runs in default camera. I have also created a game mode class and choosen my pawn as the default pawn. Please help me to understand the problem here. Thanks in Advance.

Hi Kaldosal,

After creating the game mode, you’d need to set it in Edit → Project Settings → Maps & Modes. Once that’s set pawns should spawn at player start locations.

ALTERNATIVELY

Drop the pawn in your level and change ‘Auto Possess Player’ to “Player 0”

Let us know if you’re still having troubles!

1 Like

Thank you that worked well!!

1 Like

Did not work for me. Done anything.

Did u follow as mentioned above?

Try this

1 Like

in the BeginPlay Event of your Pawn add a “SetViewTargetWithBlend” Node.
you may need to deactivate the Context Sensitive search to find that node…

as player controller, put in a GetPlayerController Node and leave the New Target as “Self”.

the Node automatically grabs the first camera of your Pawn Actor and sets it as new Viewport Cam.