reduce frame delay between pathfinds

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-22 20:24:25 -05:00
1 parent 82f1cc5238
commit 640c59be0f
1 file changed
+1 -1
+1 -1
View File
@@ -843,7 +843,7 @@ local function attemptPathfind(entity)
entity:GetData()["EID_Pathfound"] = true
return true
end
if entity.Index == lastPathfindIndex and EID.GameUpdateCount - lastPathfindFrame < 30 then return false end
if entity.Index == lastPathfindIndex and EID.GameUpdateCount - lastPathfindFrame < 10 then return false end
-- Spawn a custom NPC entity to attempt a pathfind to the target pickup, then remove it afterwards
pathCheckerEntity = game:Spawn(17, 3169, EID.player.Position, nullVector, EID.player, 0, 4354)