UnitsNumberTrigger

This trigger works like a counter of units on the map, from all or one faction, as well as units of a certain type and in the required quantity.

Parameters: list of objects (you can also select an object decor, but then the trigger won't work at all). If you put nothing, then the game will count everything. unit types
 * Prefab Ref - a unit type that gets out of a huge

trigger. number in Trigger Number according to the formula (operation) . There are 5 operations: Less (less), LessOrEqual (less or equal), Equal, MoreOrEqual, More For example: if the operation costs more, and the Trigger Number contains the number 20, then the trigger will fire only when the number is 21 or more. leave Undefined, then the trigger will count all units on the map, counting deer and units of an undefined faction. is activated as soon as units enter it. The work of this zone will be influence the parameters described above, so that you can create more logical circuits. For example, in order for a trigger to fire only when when a spearman of any faction enters his detector, or so that it contains 10 or more units of a specific yellow faction.
 * Trigger Number - the number of units that must be for triggering
 * Operation (operation) - the trigger keeps a count of units and compares this number with
 * Fraction (faction) - The faction in which the trigger will count units. If
 * Unit Detector - A detector is inserted into this line. And now the trigger

One more example:

If you have parameters:
 * Prefab Ref = Spearman,
 * Trigger Number = 5,
 * Fraction = White,
 * Operation = Equal,
 * Unit Detector = Detector

With these settings, the trigger zone should have exactly 5 spearmen of the white faction to activate the trigger. Also, if you need, so that the trigger is activated simply by touching the detector with any unit, then you only need to add a link to the detector without touching other parameters.