Skip to main content

Escort Objective

Type: escort_objective An objective where the player must protect an NPC as it travels along a defined path.

Configuration

FieldTypeDefaultDescription
idString""Unique identifier.
npcRef<Entity>EmptyThe visual entity to escort.
maxHealthVar<Double>20.0Max health of the escort.
regenPerSecVar<Double>0.0Health regen per second.
damageReductionPctVar<Double>0.0Damage reduction (0-100).
guardRadiusVar<Double>10.0Max distance player can be from NPC.
spawnRadiusVar<Double>40.0Radius around start node to spawn NPC.
startRadiusVar<Double>5.0Distance to approach to start moving.
globalTimeLimitSecVar<Int>0Time limit (0 = unlimited).

Triggers

FieldDescription
onEscortStartTriggered when the escort begins moving.
onCheckpointTriggered when reaching a path node.
onEscortLostTriggered when player leaves guard radius.
onEscortRecoveredTriggered when returning to radius.
onEscortCompleteTriggered when reaching the end.
onEscortFailTriggered if NPC dies or time runs out.

Visuals & UI

FieldTypeDefaultDescription
enableScoreboardVar<Boolean>falseShow tracking scoreboard.
enableBossBarVar<Boolean>falseShow health bossbar.