quick question about unit group - pick units

Sartan

New Member
Reaction score
23
does the action unitgroup - pick units of type
1) pick dead units or dead heroes?
2) pick units that you have hiden by the unit - hide/unhide unit action?
 

Inflicted

Currently inactive
Reaction score
63
While decaying/death animation it is accessible through that function.
However, after that they shall be removed, and unless stored not accessible.

Generally for selecting large groups of units of types, add a condition that checks if the unit is alive.
 

afisakov

You can change this now in User CP.
Reaction score
37
Just one thing I would like to add to the topic, something a dbz map taught me about dead heroes.
The map had a trigger that read, written freehand:
Trigger:
  • timer: periodic, every 1 seconds
    • unit group, pick all units in region 17 and do: add 50 experience, set unit life=unit life-50

Here I discovered dead heroes still gained exp, it dies at lvl 7 and revived at lvl 9, therefore dead heroes stay as part of the unit group.
Naturally once the hero revived it was no longer in region and stopped getting exp.
I believe the extended leveling was due to decay time before it became available to revive in taverns, but showed dead heroes stay in the group.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
dead heroes always stay in the game. They are never removed from the map like any other unit would be after their decay.
 

Inflicted

Currently inactive
Reaction score
63
Answering the OP, its pretty much 1.
It picks all units of that type, dead or alive.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top