- Joined
- Jul 28, 2013
- Messages
- 768
Hello guys,
I'm trying to prevent units from getting lured. I don't want to decrease the acquisition range.
So, i tried making triggers that pause units in a specific region and if a unit in that region gets attacked or an enemy unit enters that region, the units will be unpaused.
Here i pause the units in the region 171.
If an enemy unit enters that region:
And the Even Units receives damage requires a specific unit so i can't use that.
Any suggestions?
Thank you.
I'm trying to prevent units from getting lured. I don't want to decrease the acquisition range.
So, i tried making triggers that pause units in a specific region and if a unit in that region gets attacked or an enemy unit enters that region, the units will be unpaused.
Here i pause the units in the region 171.
-
Pause Units
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in Region 171 <gen>) and do (Unit - Pause (Picked unit))
-
-
If an enemy unit enters that region:
-
Unpause attack 1
-
Events
-
Unit - A unit enters Region 171 <gen>
-
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 1 (Red)
-
-
Actions
-
Trigger - Turn off (This trigger)
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in Region 171 <gen>) and do (Unit - Unpause (Picked unit))
-
-
-
Unpause attack 2
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Region 171 <gen> contains (Triggering unit)) Equal to True
-
-
Actions
-
Trigger - Turn off (This trigger)
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in Region 171 <gen>) and do (Unit - Unpause (Picked unit))
-
-
And the Even Units receives damage requires a specific unit so i can't use that.
Any suggestions?
Thank you.