How do you exclude the casting unit from a triggered AOE spell???

J3LADE

New Member
Reaction score
7
I need to know how to exclude a casting unit from an AOE DoT war stomp triggered type spell... I set a variable to being the units within range of the casting unit and then used that variable to damage them... but i need to know how to exclude the casting unit from this group so he doesn't get damaged from his own spell. :S
 

Tinki3

Special Member
Reaction score
418
Code:
Actions
   Set TempPoint = (Position of (Casting unit))
    Custom script:   set bj_wantDestroyGroup=true
    Unit Group - Pick every unit in (Units within 400.00 of (TempPoint) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))) and do (Actions)
        Loop - Actions
            Unit - Cause (Casting unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
    Custom Script: call RemoveLocation(udg_TempPoint)

Don't use Unit - Cause (Triggering unit) to damage circular area.., as their is no way to exclude the caster from the group.

You can also use (Triggering unit) to refer to the (Casting unit) of your spell, as (Triggering unit) works faster, and will work.
 
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