# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/38-00-fortnite-ecosystem-updates-and-release-notes
# Local doc: epic-docs/documentation/en-us/fortnite/38-00-fortnite-ecosystem-updates-and-release-notes.md
# Section: Agent and Player are now a subclass of entity
SetTarget(Target:entity):void =
if (Agent := agent[Target]):
# Treat Target as an agent
Else:
# Treat Target as a generic entity
Verse Library
verse
01 Agent And Player Are Now A Subclass Of Entity
Casts an entity to an agent using assignment conditionals to branch target processing.
extracted-snippets/documentation/en-us/fortnite/38-00-fortnite-ecosystem-updates-and-release-notes/01-agent-and-player-are-now-a-subclass-of-entity.verse