# Agent to Player

**URL:** <https://forums.unrealengine.com/t/agent-to-player/883843>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [April 10, 2023, 5:20pm UTC](https://forums.unrealengine.com/t/agent-to-player/883843 "2023-04-10T17:20:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Incredulous\_Hulk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/incredulous_hulk/32/924210_2.png) [@Incredulous\_Hulk](https://forums.unrealengine.com/u/Incredulous_Hulk)\
**Post date:** [April 10, 2023, 5:39pm UTC](https://forums.unrealengine.com/t/agent-to-player/883843/2 "2023-04-10T17:39:50Z")

</div>

`player` inherits from `agent`. So you should be able to attempt to cast to `player` to see if the provided `agent` is in fact a `player` instance.

Example:

```auto
if (Player := player[Agent]):
    # Do something with Player here now that we know this is in fact a Player type

```

---

_[View the full topic](https://forums.unrealengine.com/t/agent-to-player/883843)._
