Like the SC1 editor, I wanted to create 1 unit when 2 of the same unit enters a region. But I couldn't find anything that would do that in the triggers. Does anyone know how?
2 units enter region
Events
Unit - Any Unit Enters (YourRegionHere)
Local Variables
Conditions
(Number of Living units in ((Unit type of (Triggering unit)) units in (YourRegionHere) owned by player (Owner of (Triggering unit)) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) >= 2
Actions
The Condition is "Number of Units in Unit Group" and for the unit group put in the function "Units in Region Matching Condition" and just copy what i put in
Like the SC1 editor, I wanted to create 1 unit when 2 of the same unit enters a region. But I couldn't find anything that would do that in the triggers. Does anyone know how?
@Vietman: Go
Event: Any Unit Enters Region
Condition: Number of Unit Type in Region >= 2
Action: Create your unit
2 units enter region
Events
Unit - Any Unit Enters (YourRegionHere)
Local Variables
Conditions
(Number of Living units in ((Unit type of (Triggering unit)) units in (YourRegionHere) owned by player (Owner of (Triggering unit)) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) >= 2
Actions
The Condition is "Number of Units in Unit Group" and for the unit group put in the function "Units in Region Matching Condition" and just copy what i put in
@Vietman: Go
You could just make a variable perhaps? And when unit leave mod -1 etc.. Dunno.