Illusions ordering

nLike

Member
Reaction score
1
I have a unit that casts wand of illusion on you creating illusion. I want that illusion to go to the attacker (trigger is unit is attacked). Now the only way I found this possible is by grouping units around the hero and then boolean checking if its an illusion then ordering picked unit.

It works fine but I'm afraid what will happen if i have illusions from some other spell/item.

Also can I add locust ability to that spawned illusion? I've tried adding ability to picked unit but i can't seem to find locust anywhere.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Locust is not in the normal ability list, you would need to use custom script.
The Raw code id of locust is 'Aloc'.

The problem with the event response is a little harder.
One possibility would be to save the attacking unit in a hashtable (or a unit-array if you dont need it to be MUI) and use another trigger with the event for summoning a unit. The illusion would be the summoned unit and needs to be ordered to attack the attacker saved in the hashtable or array.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top