i am making some lighting abilities im a map and i got the idea to create a lighting prison that cover 500 AoE and deals dps and that only keep enemies inside.but i dont know how to do that... please help me people
well this isn't what i was searching. its more like that "kinetic field" from DotA
and also some area dps, tecnically.that one you send me is a complete pause on the units...
i think that the way to do that is putting units in the borders with some high collision size but i went to know how to put some lighting effects in the barrier since putting a trigger with expiration timer would only remove ONE unit from the barrier and that destroy last created lighting effect also destroy only ONE lighting effect.that is the great problem. i want a trigger fix do someone knows how to do that?
Set tmppoint = (Position of (Target unit of ability being cast))
Set ang = -30.00
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set tmppoint2 = (tmppoint offset by 100.00 towards (ang + (360.00 / ang_add)) degrees)
Unit - Create 1 DUMMYUNIT for (Owner of (Triggering unit)) at tmppoint2 facing tmppoint
Set IB_ang = (IB_ang + (360.00 / IB_ang_add))
Unit - Add a 5.00 second Standard expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_tmppoint2)
Set IB_ang = 0.00
Unit - Create 1 DUMMYUNIT2 for (Owner of (Triggering unit)) at tmppoint facing tmppoint
Unit - Add a 5.00 second Standard expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_tmppoint)
What it does is create 10 dummyunits each apart by 36° and a dummy unit in the middle.
If you add a certain aura effect to it (I can't remember the name) it'll take away the set hitpoints from every enemy unit inside the AoE.
Make sure your first dummy has collision and the second doesnt.
Using a secondardy, periodic trigger, you can spawn random effects while the dummy is alive, like
Every 1s of the game time,
Set tmpgrp = Every unit of type DUMMYUNIT2
--If number of units in tmpgrp > 0 do:
----Set temppoint = Pos. of picked unit
----Set temppoint2 = temppoint1 offset by (Random number between 0 and 500) towards (Random number between 0 and 360) degrees
----Create sfx on temppoint2
----Destroy (last created sfx)
--Else
----Turn off (This trigger)
Custom script: call DestroyGroup(udg_tmpgrp)
If doing so, make sure you Turn on the second trigger while triggering the first
Both may vary since they're typed by hand and I haven't opened WE in like a year
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.