From 193dcb4b4505dc95ae24d8b182877388d1b19b52 Mon Sep 17 00:00:00 2001 From: PopGamer46 Date: Tue, 20 Aug 2024 13:57:39 +0200 Subject: [PATCH] Makes NPCs wait out the idleTime instead of finding a new spot every time they go idle (#31234) continue idling when there is idle time --- Resources/Prototypes/NPCs/idle.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Resources/Prototypes/NPCs/idle.yml b/Resources/Prototypes/NPCs/idle.yml index 6ddded67f7..0eb57baee3 100644 --- a/Resources/Prototypes/NPCs/idle.yml +++ b/Resources/Prototypes/NPCs/idle.yml @@ -2,6 +2,14 @@ - type: htnCompound id: IdleCompound branches: + - tasks: + - !type:HTNPrimitiveTask + operator: !type:WaitOperator + key: IdleTime + preconditions: + - !type:KeyExistsPrecondition + key: IdleTime + # Pick a new spot and wait there. - preconditions: - !type:BuckledPrecondition -- 2.51.2