AIKnownUnitCount
int AIKnownUnitCount (int player, int testPlayerId, string aliasUnitType);
The number of aliasUnitType that player believes another player (identified by testPlayerId) has based on what has been seen by player's units.
Parameters
- int player
The ID of the player checking the number of known units.
- int testPlayerId
The ID of the player who owns the units being counted.
- string aliasUnittyper
The string identifying the type of unit to count. Possible values are any of the Unit or Building strings in Requirements.galaxy
Return value
int -
Number of known units.
Examples
- Example: Counting Zealots
int numZealots = AIKnownUnitCount(player, enemy, c_PU_Zealot);
You must login to post a comment. Don't have an account? Register to get one!
Facts
- Date created
- Mar 25, 2010
- Last updated
- Mar 27, 2010