SLIC-Reference : Functions : Armies & Units at Location : Information
CTP2 Bureau
The Modding
Knowledgebase
Apolyton CTP2 forums
Apolyton CTP2 archives
Source Code Project SVN

SLIC-Reference : Functions : Armies & Units at Location : Information

Entries:

- CTP1 - messages only
- CTP2 - can be triggered (events)
- CTP2 Apolyton Edition  
  - tested
- broken, obsolete - working

AllUnitsCanBeExpelled (location) int   Returns true if all of the units at the location can be expelled
ArmyIsValid (army) int       Returns true if the army is valid
GetArmyByIndex (int-player, int-index, armyvar) int       Returns true if the indexed army of the given player exists and stores it into armyvar
GetArmyFromUnit (unit, armyvar) void       Finds the army which contains the unit and saves it into armyvar
GetUnitFromArmy (army, int-index, unitvar) int       Returns true if the army contains a unit given by index (from 0 up to number of units in the army - 1) and stores it into unitvar
Stacked (location) int   Returns true if all of the units at the given location are in a single group
UnitsInCell (location) int       Returns the number of units in the cell

Latest update: 11.11.2022  ( - recently updated)
  Administration
This site is currently maintained by: BureauBert (Webmaster)  Maquiladora (Manager)  Legal Notice: Legal Notice Statistics: 107657 unique users since 02.05.2004 (» Site Statistics) Hosted by: WebhostOne
Share this page:  VK Facebook Twitter LiveJournal OK MR Google+ LinkedIn tumblr Pinterest Blogger Digg Evernote