Hardrock
Notes from before the conversion:
The countEnemy command seem to count the number of units from the array that are considered to be of the given type by the whole side, not just the specified unit.
Results appear below as you type; use the arrow keys to move through them.
Command · also in Object Detection · Markdown · JSON · original wiki page
Count how many units in the array are considered enemy to the given unit.
unit countEnemy others
Parameters:
Returns: Number
_num = player countEnemy list _triggerOne;
countFriendly · count · countUnknown · countSide · countType
Notes from before the conversion:
The countEnemy command seem to count the number of units from the array that are considered to be of the given type by the whole side, not just the specified unit.
The unit that's checking (left side of the command) needs a certain level of knowledge about the target (about .1) before the enemy units are actually counted. (OFP & ArmA)