reduce frame delay between pathfinds
This commit is contained in:
1 parent
82f1cc5238
commit
640c59be0f
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user