Jump to content

RANGE = In AI scripts


Recommended Posts

Hi Mike,

Al is correct and just one small addition in that for almost all of the plans it also includes a distance check to the #GOAL_POSITION.

So for example, an OFFENSIVE plan with RANGE= 10, the game engine will check for units within 10 tiles of either the #GOAL_POSITION and/or #FRIENDLY_POSITION.

This ensures that it will take the closest applicable units and not waste time checking all over the map for available units which speeds things up quite a bit.

Hubert

Link to comment
Share on other sites

×
×
  • Create New...