pick unit with locus

mirrorman1de

Cool Member
Reaction score
4
yaya locust :)

on a cast, units of type x (mirrors) in range get the spell as well and are ordered to cast it on a legal target. works fine.
(below just pseudo code to give you a rough idea)

Trigger:
  • Copy Spell
    • Event
      • A unit casts a spell
    • Conditions
    • Actions
      • Pick all units of type x and do
        • Add ability being cast to unit
        • Order unit to cast (that ability)
    • wait 1 sec
    • remove ability from all units of type x


but when i add 'locust' to unit type x, this trigger doesnt work anymore. is it possible that also triggers cannot pick units with locust?
 

mirrorman1de

Cool Member
Reaction score
4
since units in range are selected on every cast, i guess i need a 'pick units in range matching condition' action, or?
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
since units in range are selected on every cast, i guess i need a 'pick units in range matching condition' action, or?
You will have to pick every unit owned by player matching unit is a locust, and then have an if-then that the distance between the positions of the units is less than your range. Units in region/range will not see units with Locust.
 
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