Kill Locust units.

TaCoChris

New Member
Reaction score
1
Hey guys.

I would love to hear a way to kill locust units.

My problem is:
When i use a spell, about 72 locus units should be killed, in a kinda big aoe.
(The spell creates a MYDummy unit in region "Map Right" or "Map Left")

Ive tried with:

Trigger:
  • Car Crash 2
    • Events
      • Unit - A unit enters Map Right <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Equal to MYDummy
    • Actions
      • Set MYGroup = (Units in Map Right <gen> owned by Player 11 (Dark Green))
      • Unit Group - Pick every unit in MYGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to MYUnit
            • Then - Actions
              • Unit - Kill (Picked unit)
            • Else - Actions
      • Custom script: call DestroyGroup(udg_MYGroup)


And yes, i know you cant pick a locust unit, but i've read some other topics inhere, which said if you picked by player, it should work.

How can i select the locust, and kill them?

(My plan Z is to create 72 units at every locust unit point, and kill them)

Help!
-Chris
 

Dirac

22710180
Reaction score
147
Everytime you create the dummy add it to a unit group, then pick every unit in that unit group and remove it
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top