- Joined
- Aug 21, 2008
- Messages
- 533
Do you think this is possible in wc3 as a spell?
SLow time(D3)
I started to make it but im not sure if it was a good idea to try
SLow time(D3)
I started to make it but im not sure if it was a good idea to try
if you use dummies for missiles then yes
function Slowing takes nothing returns nothing
local unit u = GetEnumUnit()
local group g = CreateGroup()
local real x = GetUnitX(u)
local real y = GetUnitY(u)
call GroupEnumUnitsInRange(g, x,y,350,null)
set u = null
set g = null
endfunction
function LocustSux takes nothing returns nothing
local unit u = GetEnumUnit()
call UnitRemoveAbility(u,'Aloc')
set u = null
endfunction
function LocustSuxNot takes nothing returns nothing
local unit u = GetEnumUnit()
call UnitAddAbility(u,'Aloc')
set u = null
endfunction
function Slowing takes nothing returns nothing
local unit u = GetEnumUnit()
local group g = CreateGroup()
local real x = GetUnitX(u)
local real y = GetUnitY(u)
call GroupEnumUnitsInRange(g, x,y,350,null)//Filter(function MissleFilter
call ForGroup(g, function Slow )
call DestroyGroup(g)
set u = null
set g = null
endfunction
function Trig_Slowing_Actions takes nothing returns nothing
call ForGroup(udg_misslegroup,function LocustSux)
call ForGroup(udg_Slowgroup, function Slowing )
call ForGroup(udg_misslegroup,function LocustSuxNot)
endfunction
//===========================================================================
function InitTrig_Slowing takes nothing returns nothing
set gg_trg_Slowing = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Slowing, 0.03 )
call TriggerAddAction( gg_trg_Slowing, function Trig_Slowing_Actions )
endfunction