Skip to content

PathDelay

How long a ground object waits before searching for a route again after a search that failed.

Specification
Applies to
global rules
File
rules.ini
Section
[AI]
Value
floating point
When omitted
.016

The value is given in minutes and turned into a whole number of frames, so the default is 14 frames at 900 frames to the game minute. Each object carries its own countdown, and every ground locomotor — wheeled and tracked, walking, mechanical and hovering — consults it before spending a search: while the countdown is running the object simply stands where it is and tries again on a later frame.

A search that finds a route clears the countdown at once, so the wait falls only on objects that could not be routed: something walled in by terrain, or ordered to a place it cannot reach, retries on this interval instead of every frame. The countdown is also cleared outright when the object is given a new destination, so a fresh order is never held up by a wait left over from the last one.

Retrying around a blocking object is throttled by the same countdown, and there the wait is set whether or not the retry found anything.

See alsoBlockagePathDelay