Path Escort Activity
Moving along a path for escort
Activity that moves along a predefined path but pauses at each node until manually resumed. This is tailored for escort objectives where progress is checkpoint-based.
フィールド
| フィールド | 型 | デフォルト | 説明 |
|---|---|---|---|
roadNetwork | Ref<RoadNetworkEntry> | — | — |
nodes | List<RoadNodeId> | empty | — |
idleActivity | Ref<out EntityActivityEntry> | — | The activity used once the path is completed |
How to use it
Set roadNetwork and list the node ids in nodes in walking order. Assign this activity to the entity instance used as the npc of an Escort Objective. The NPC stays still until an escort starts, walks to the next node when released, then waits at that node until the Escort Next action. idleActivity is what the NPC does after the last node. With an empty nodes list the NPC just idles.
If the road network cannot produce a walkable path, the log shows a warning with the distance left to the node: recalculate the network edges.