creating a ring of doodads as a jail, that units cant pass through...

X-maul

AKA: Demtrod
Reaction score
201
i want an ability that creates a ring of Lightning Bolt doodads in a ring that will capture all units inside it...
how to create it?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
You could try using the destructibles that block off areas, pathing blockers, and change their art. Or, simply create the effects after the pathing blockers are created.
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
first base it of some destructible or doodad with pathing map and give it the lighting bolt model (or do like Grundy said)

then do this:

Code:
e: unit starts the effect of an ability

c: ability being cast equal to "your ability"

a: set cast_point = target point of ability being cast
   set angle = 0.00 (or facing of triggering unit to make it look better, never tried it though)
   For each (Integer A) from 1 to 12
     Loop actions
       create 1 "your doodad" at cast_point offset by 300 towards angle degrees
       set angle = angle + 30
       set lighting_bolt[Integer A] = last created doodad [I]or[/I] destructible
   Custom script: call RemoveLocation(udg_cast_point)
   Wait x seconds
   For each (Integer A) from 1 to 12
       Loop actions
          kill/remove lighting_bolt[Integer A]

offset and angle depends on number of lighting bolts you wanna have
 

Zhirgoyt

New Member
Reaction score
9
Hope it helps :p

I fiddled around abit with this and made a testmap:

It's quite easy but u need to correct it abit depending on the size of the doodad. Hope it helps,

DoodadSpellTrigger


EDIT: Change the "finishes casting an ability" to "starts the effect of an ability"
 

Grundy

Ultra Cool Member
Reaction score
35
I think doodads can't block units unless you set their pathing image or whatever but when you do that then they can only be placed grid style so if you try to make a circle out of them it won't really be a curved line. You might want to make them. It would be more work but I think it would work better if you made a circle of pathing blockers + a circle of lightning bolts with no path image so it will look like the bolts are in a circle and people cant walk through them
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top