Solution
The following trigger prevented an SCV from building a building inside a set region and the SCV acted as if the ability was never attempted. No placeholder unit was shown and no move was made by the SCV to attempt to build anything. (Tested and works)
-
No Build In Region
-
Events
-
Unit - Any Unit uses SCV - Build (SCV) at Generic1 - Any stage (Ignore shared abilities)
-
Local Variables
-
Conditions
-
((Triggering ability target point) is in No Build == true
-
Actions
-
Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)
To find the base ability "SCV - BUILD (SCV)" and not just all the buildings inside that ability, in the ability command list when choosing the EVENT, you must UNCHECK the "Show Commands" checkbox that is already checked. It will reduce all abilities to their Parent abilities.
In Example- Instead of the list showing
SCV - Build Missile Turret
SCV - Build Bunker
SCV - Build Command Center
Etc...
it will only show
SCV - Build (SCV)
which will call the trigger when ANY of the buildings in SCV Build attempted to be built.
To create the condition
-
((Triggering ability target point) is in No Build == true
you must first select the condition "point is in region"
then inside that, set the point in question as "Triggering Ability Target Point" and then set the region as the region you want to disallow building.
To have it be allowed to be built at this location later, either disable the trigger via another trigger move, or remove the region.
You could also add a trigger action to this trigger that displays an Error message of
"Can not build there."
and
Player error sound for player.
Etc.
No solution however to make placement indicator show RED instead of green at target to let player know ahead of time they can not build there. but I suppose thats not as important.