]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Makes NPCs wait out the idleTime instead of finding a new spot every time they go...
authorPopGamer46 <yt1popgamer@gmail.com>
Tue, 20 Aug 2024 11:57:39 +0000 (13:57 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2024 11:57:39 +0000 (21:57 +1000)
continue idling when there is idle time

Resources/Prototypes/NPCs/idle.yml

index 6ddded67f76a59abe3860c6ef48b1c4555f77818..0eb57baee3b4e394a8ba8a96a67ccbdd0e3d30e1 100644 (file)
@@ -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