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:
 * Prefab Ref - an object that trigger will count. (you can also select non-playable object (ex: tree), but then the trigger won't work at all). If you put nothing, then the trigger will count all playable objects.


 * Trigger Number - number of objects that must be counted to activate the trigger.


 * Operation - a math operation between current number of counted objects and "Trigger Number". There are 5 operations: Less, LessOrEqual, Equal, MoreOrEqual, and More.


 * Fraction - the faction whose units the trigger will count. Set "undefined" to count all the factions.


 * Unit Detector (optional) - a detector that will be used to detect units.


 * allowed

Example:

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

With these settings, the trigger zone should have exactly 5 spearmen of the white faction to activate the trigger

Note: if you have inserted detector, first detector will be activated and then the trigger will check if objects in detector's zone matches trigger's parameters. So, there might be some conflicts (ex: different factions in "ObjectsFilter" in detector and "UnitsNumberTrigger")