Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

* enumGateways(), gives array of objects with x1, y1, x2, y2 properties

3.2+ only


enumGateways()

Return an array containing all the gateways on the current map. The array contains object with the properties x1, y1, x2 and y2.

Gateways are special invisible marks on the map that hint AIs to build hardpoints on them. They are painted by the map maker (of course, some map makers are lazy enough to paint them). Each gateway is a line segment of adjacent map tiles. Nexus AI fills the whole line with best hardpoints available, except two middle tiles (any two middle tiles in case gateway has odd length); i guess any AI should do the same.

http://developer.wz2100.net/wiki/MappingTips#Botsandgateways

  • No labels