Simple custom spell problem ( I hope )

Aaronx

New Member
Reaction score
6
Range problem

I made a spell based off of thunder clap, and the idea is that it calls down lightning bolts to strike all enemies within a certain range of the caster.

here's my trigger:

Code:
Bolt Strike
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Bolt Strike
    Actions
        Unit Group - Pick every unit in (Units within 50.00 of (Position of (Casting unit)) matching ((Owner of (Matching unit)) Equal to Player 11 (Dark Green))) and do (Actions)
            Loop - Actions
                Set tempPoint[1] = (Position of (Picked unit))
                Special Effect - Create a special effect at tempPoint[1] using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
                Custom script:   call RemoveLocation(udg_tempPoint[1])

Anybody have ideas how to get this to work? It probably has something to do with the "tempPoint", not sure if that works with multiples. Even then, though, wouldnt I see at least 1 lightning bolt? I dont see anything currently!

Thanks in advance
 
first use triggering unit instead of casting unit and a unit beings casting is wrong use starts effect of instead.
secondly 50 range is nothing. its not even melee attack range (usually 100)...try using something like 400.
and by the way you leak at least 1 special effect....you have to destroy it.
 
General chit-chat
Help Users

      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