From: PopGamer46 Date: Tue, 20 Aug 2024 11:57:39 +0000 (+0200) Subject: Makes NPCs wait out the idleTime instead of finding a new spot every time they go... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=193dcb4b4505dc95ae24d8b182877388d1b19b52;p=space-station-14.git 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 --- 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