Need help with targeting units

Megika

New Member
Reaction score
4
Well, I'm making a spell which, when cast, shoots chain lightning at nearby units. I have a dummycaster, the spells, etc. But in the trigger editor, when telling the last created units to use chain lightning on (Unit), I can't find an appropriate target. What I'm looking for is the nearest unit; but a random unit would be fine.
 

Fluffball

Well-Known Member
Reaction score
35
Code:
Set Unit Group = (Units in 750 Radius of Point)
Set Unit = (Random unit from (Unit Group))
 

Megika

New Member
Reaction score
4
Alright, that's working fine. Thanks very much. I would rep, but I dunno how :p

However, I've hit another roadblock: I want to make it so that when an enemy is struck by the chain lightnings, it creates another caster who does a similar thing to the first one. Could I get some advice on how to do this?
 
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