Verse Library verse

23 Moving The Heal Volume With The Medic

Defines a suspendable function that acquires the AI agent and casts it to a character interface.

extracted-snippets/documentation/en-us/fortnite/create-your-own-npc-medic-in-unreal-editor-for-fortnite/23-moving-the-heal-volume-with-the-medic.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/create-your-own-npc-medic-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/create-your-own-npc-medic-in-unreal-editor-for-fortnite.md
# Section:    Moving the Heal Volume with the Medic
DeviceFollowCharacter()<suspends>:void=
if:
# Get the agent (AI Character) this behavior is associated with.
Agent := GetAgent[]
# Get the fort_character interface of the agent to access Fortnite character-specific behaviors, events, functions, and interfaces.
Character := Agent.GetFortCharacter[]

Comments

    Sign in to vote, comment, or suggest an edit. Sign in