Siege Tanks entering siege mode when in range of enemies

Hello,

I’m trying to make a wave style arcade map. I have no problem spawning the waves and making them attack a point (figured that all out).

I want to:

  • Make Siege Tanks enter Siege Mode when an enemy unit enters their Siege Mode range (13).
  • Make the Siege Tanks go back in to Tank Mode when there are no enemies within range.
  • All the while, they continue to move/attack towards the attack point from their initial Order (unless they’re shooting something in Siege Mode).
    *They should never be shooting something when in Tank mode…

Anyone able to assist please?

Just need to know what Event(s), Local Variables, Conditions and Actions to use (an example would be great!).

Thanks in advance!

Step 1: Flag the morph abilities of Siege/Unsiege as auto-cast and auto-cast initially on

Step 2: Make a validator for Siege and Unsiege. Enumerate area. Specify your target filters for what must be present or not present “(Basic) Search: Search Areas”.

Then specify the range in the “(Basic) Search: Areas”

It’s easier with data. Just the Morph abilities have minimum and max count for units, and filters. Use the validator array on the ability to prevent morph if in combat (ex: Unit Compare Damage Dealt >> Greater than 4 sec. for example).