|
[jass]function LifeRegetT takes nothing returns nothing
local timer tm=CreateTimer()
call TimerStart(tm,1.00,true,function LifeReget)//未定义的函数??????我是按照教程......
set tm=null
endfunction
function LifeReget takes nothing returns nothing
local integer n=0
loop
call SetUnitState(udg_hero[n],UNIT_STATE_LIFE, ( GetUnitState(udg_hero[n],UNIT_STATE_LIFE) - 1 ) )
set n=n+1
exitwhen n==13
endloop
endfunction
[/jass] |
|