No, because the unit would just keep on being told to shoot again and again and loop endlessly.
If for example, I shoot at the location 0,0 it will offset it to say, 0,50 and order the artillery to fire there. Then, it will offset that to something else, like -25,35, and it will continue to offset again and again. The unit would be stuck in an endless loop of orders - this is bad of course.
I can't off the top of my head, think of a way to remove the specific order to allow attack ground.
However, making the unit classified as a "Ward" will remove all the buttons from the unit's interface (Such as move, patrol, attack etc.) but it will still be moveable and orderable by right clicking and it WILL still auto attack enemies as a normal unit.
EDIT:
Do NOT use the method that ikillforyou uses, as there is a Region leak.
Change the line that reads
-
Set TempPoint1 = (Random point in (Region centered at TempPoint with size (400.00, 400.00)))
to instead read:
-
Set TempPoint1 = TempPoint offset by (Random Real number between 0 and X) towards (Random Angle) degrees
Not only that, but using a square region to define an AoE is very poor - it is a square area afterall. Whereas my method defines a circular area, which is what we want.
Also, Turning on and off the trigger in his trigger does absolutely nothing, as it is turned on and off instantly.