- Joined
- Sep 29, 2011
- Messages
- 20
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 
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set IB_ang_add = 36
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)
Set tmppoint2 = (tmppoint offset by 100.00 towards (ang + (360.00 / ang_add)) degrees)
thunderbarrier

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to thunderbarrier

Actions


Set IB_ang_add = 36


Set tmppoint = (Target point 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 DUMMY1 for (Owner of (Triggering unit)) at tmppoint2 facing Default building facing degrees




Set IB_ang = (360.00 / (Real(IB_ang_add)))




Unit - Add a 5.00 second Generic expiration timer to (Last created unit)




Custom script: call RemoveLocation(udg_tmppoint2)


Set IB_ang = 0.00


Unit - Create 1 DUMMY2 for (Owner of (Triggering unit)) at tmppoint facing tmppoint


Unit - Add a 5.00 second Generic expiration timer to (Last created unit)


Custom script: call RemoveLocation(udg_tmppoint)
