On my map players can build a flag called "Territory sign". I want to prevent players from building in places near this flag. Only player who own this flag can build near it.
This trigger will look like this:
This trigger will look like this:
-
BuildTerritoryCheck
-
Events
-
Unit - A unit Begins construction
-
-
Conditions
-
Actions
-
Set TempLoc = (Position of (Triggering unit))
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within TerritoryRange of TempLoc matching ((Unit-type of (Matching unit)) Equal to Territory sign)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Picked unit)) Equal to (Owner of (Triggering unit))
-
-
Then - Actions
-
Else - Actions
-
Unit - Remove (Triggering unit) from the game
-
-
-
-
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-