|
代码如下 知道原因的同学来解决一下
function XHXG takes nothing returns nothing
local integer a1 = 0
local integer b1 = 36
local integer a2 = 0
local integer b2 = 50
local real x = GetUnitX(udg_u)
local real y = GetUnitY(udg_u)
local real r = 50
loop
exitwhen a2>b2
set a2 = a2+1
set r = r+50
loop
exitwhen a1>b1
call AddSpecialEffectLocBJ( Location((x+r*Cos(10*a1* bj_DEGTORAD)), (y+r*Sin(10*a1* bj_DEGTORAD))), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction(0.01)
set a1 = a1+1
endloop
endloop
endfunction |
|