NPCScheduleActivityBehavior.V2 turns a selected schedule block into concrete
activity steps. It sits above schedule execution and pathfinding: the NPC must
be at the scheduled location before work, eat, sleep, social, idle, travel, or
custom activity steps are issued.
Runtime Surface#
FV2NPCScheduleActivityBehaviorRequestcarries the authored schedule, current time, current location id, and command issuing flag.FV2NPCScheduleActivityStepcarries a stable step id, action type, interaction tag, animation tag, duration, reservation requirement, and blocking flag.FV2NPCScheduleActivityCommandcarries the active schedule block and the concrete steps issued to the activity/AI layer.FV2NPCScheduleActivityBehaviorResultreports readiness, navigation gating, active block metadata, execution/pathfinding evidence, activity steps, command payload, and validation issues.
Activity Rules#
- The active schedule block is resolved through the schedule execution engine.
- The current location is checked through schedule pathfinding. If the NPC is not at the active block's location, activity behavior blocks until navigation completes.
- Activity blocks require an
InteractionTagso seats, beds, counters, and workstations remain explicit. - Work blocks reserve the workstation, perform
WorkAtStation, and playAnimation.Schedule.WorkLoop. - Eat blocks reserve a seat, sit, and play
Animation.Schedule.Eat. - Sleep blocks move to the bed, perform
SleepInBed, and playAnimation.Schedule.SleepLoop. - Visit/social, idle, travel, and custom activities also produce deterministic fallback steps for later behavior-tree integration.
Validation Commands#
Run these targeted checks when touching schedule activity behavior:
bash
python3 V2/ue/Tools/check-v2-npc-schedule-activity-behavior.py
python3 V2/ue/Tools/check-v2-npc-schedule-pathfinding.py
python3 V2/ue/Tools/check-v2-npc-schedule-execution-engine.py
python3 V2/ue/Tools/check-v2-npc-schedule-data-format.py
python3 V2/ue/Tools/check-v2-ci-workflow.py
python3 -m json.tool V2/ue/Content/V2/Gameplay/NPC/NPCScheduleActivityBehavior_V2_Contract.json
python3 -m py_compile V2/ue/Tools/check-v2-npc-schedule-activity-behavior.py