# 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: Tracking when Characters are in the Heal Volume
OnAgentEnters(EnteredAgent:agent):void=
Print("Agent entered the heal volume")
if (EnteredAgent <> GetAgent[]):
set AgentsToHeal = AgentsToHeal.Enqueue(EnteredAgent)
Verse Library
verse
20 Tracking When Characters Are In The Heal Volume
Detects agents entering a trigger volume and queues them for healing while excluding the triggering agent.
extracted-snippets/documentation/en-us/fortnite/create-your-own-npc-medic-in-unreal-editor-for-fortnite/20-tracking-when-characters-are-in-the-heal-volume.verse