> For the complete documentation index, see [llms.txt](https://pellix-1.gitbook.io/pellix-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pellix-1.gitbook.io/pellix-docs/types/entity/cbaseplayercontroller.md). Agents can also search and read this documentation through its [MCP server](https://pellix-1.gitbook.io/pellix-docs/~gitbook/mcp).

# CBasePlayerController

```lua
controller:get_pawn(): entity | nil
```

Returns a new entity or cached one from the controller. If new was created, whole class memory is cached immediately.

```lua
controller:get_player_name(): string
```

Returns name of the player.
