Jump to content

CloseEnough

From ModEnc²
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: CloseEnough
File(s): Rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: General


If a unit is ordered to move to a location which is inaccessible or blocked by other objects, it will abort movement when it gets this close (in cells) to that destination, satisfying the move order.

One example would be a transport scripted to move to a Waypoint that is located within the foundations of a building, being close enough next to it, the script will continue to the unload action.

This stops the AI hanging up and trying to move units into blocked cells.