ReferenceVerse

Heal Agent

heal agent

Updated
Watch the Knot — heal-agent in ~90 seconds.

A battered pirate limps onto a glowing coral pad on the sunken ship deck, and their health bar instantly surges back to full.

The trigger device catches that footstep, and we use the agent's fort character to pump 50 points of healing straight into their health pool.

We wire the trigger's TriggeredEvent to a handler, unwrap the agent, grab their fort character, and call Heal.

Reach for this when you want custom health pickups, medic zones, or safe-room checkpoints on your island.

heal_pad := class(creative_device):
    @editable
    Pad : trigger_device = trigger_device{}
    OnStepped(Agent : ?agent) : void =
        if (A := Agent?):
            if (Char := A.GetFortCharacter[]):
                Char.Heal(50.0)
    OnBegin<override>()<suspends>:void =
        Pad.TriggeredEvent.Subscribe(OnStepped)

Build your own lesson with heal-agent

Generate a personalized, compile-checked lesson grounded in this exact reference.

Build a lesson →