Can u make a script that increase your scale by a certain percent over time, so it does a growing like feature to a unit?
DamageUnitOverTime
not ratedDamages a unit over a certain period of time.
function DamageUnitOverTime takes unit caster,unit victim,integer damage,integer dur,string attach,string fxpath returns nothing
local integer dscale=damage/dur
local integer seconds=0
local effect Fx=AddSpecialEffectTargetUnitBJ(attach,victim,fxpath)
loop
exitwhen seconds==dur
if(IsUnitAliveBJ(victim)!=true) then
call DestroyEffect(Fx)
endif
call UnitDamageTargetBJ(caster,victim,dscale,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_ENHANCED)
set seconds=seconds+1
call TriggerSleepAction(1)
endloop
call DestroyEffect(Fx)
set seconds=0
set dscale=0
set victim=null
set caster=null
set attach=""
set fxpath=""
endfunction