Spell Help

sjakie

Cookie Be Awesome!
Reaction score
127
Code:
-Explosion-
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Level of Explosion  for (Triggering unit)) Equal to 1
    (Ability being cast) Equal to Explosion 
Actions
    Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
    Set P1heropoint = (Position of (Triggering unit))
    Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 250.00 at (Position of (Triggering unit)), dealing 200.00 damage of attack type Spells and damage type Normal
    Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 200.00 damage of attack type Spells and damage type Normal
    Trigger - Run Explosionslide <gen> (ignoring conditions)
Code:
-Explosionslide-
Events
    Time - Every 0.04 seconds of game time.
Conditions
Actions
    Unit Group - Pick every unit in (Units within 250.00 of P1heropoint) and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    ((Picked unit) is A Hero) Equal to True
                Then - Actions
                    Do nothing
                Else - Actions
            Unit - Move (Picked unit) instantly to (P1heropoint offset by ((Distance between P1heropoint and (Position of (Picked unit))) + 15.00) towards (Angle from P1heropoint to (Position of (Picked unit))) degrees)
            Wait 2.00 seconds
            Trigger - Turn off (This trigger)

Instead of the units moving away from the caster, the caster himself start vibrating really weird and sliding around a bit. What did I do wrong?
 
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