# How do i possess a pawn with playercontroller?

**URL:** <https://forums.unrealengine.com/t/how-do-i-possess-a-pawn-with-playercontroller/317555>\
**Category:** Character & Animation\
**Tags:** playercontroller, possess, how-do-i, unreal-engine, pawn, CPP, question\
**Created:** [May 5, 2015, 7:47pm UTC](https://forums.unrealengine.com/t/how-do-i-possess-a-pawn-with-playercontroller/317555 "2015-05-05T19:47:05Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [May 6, 2015, 4:13pm UTC](https://forums.unrealengine.com/t/how-do-i-possess-a-pawn-with-playercontroller/317555/8 "2015-05-06T16:13:50Z")

</div>

The problem is that you’re not setting the

```
 AMyCustomController *MyPlayerController;
 AMyCustomPawn *MyPawn;

```

variables, i just put them into my code so you know their types.

If you’re new to C++ i recommend to try this first:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Then step by step learn the language

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-i-possess-a-pawn-with-playercontroller/317555)._
