Verse Library verse

24 Moving The Heal Volume With The Medic

Retrieves the AI agent, casts it to a Fortnite character, and enters its main execution loop.

extracted-snippets/documentation/en-us/fortnite/create-your-own-npc-medic-in-unreal-editor-for-fortnite/24-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
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[]
then:
loop:
CharacterTransform := Character.GetTransform()

Comments

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