|
发表于 2009-1-11 19:35:47
|
显示全部楼层
[jass]function AEfk_C takes nothing returns nothing
local unit u = GetTriggerUnit()
local unit uz = GetFilterUnit()
local unit ua
if IsUnitEnemy(uz,GetOwningPlayer(u)) then
set ua = CreateUnit(GetOwningPlayer(u),'n00E',GetUnitX(u),GetUnitY(u),0.00)
call UnitApplyTimedLife(ua,'BHwe',1)
call ShowUnit(ua,false)
call IssueTargetOrderById(ua,852230,uz)
endif
set u = null
set uz = null
set ua = null
endfunction
function AEfk_B takes nothing returns nothing
local unit u = GetTriggerUnit()
call GroupEnumUnitsInRange(udg_TempGroup,GetUnitX(u),GetUnitY(u),700,Condition(function AEfk_C))
set u = null
endfunction[/jass]
http://www.islga.org/bbs/read.php?tid=13256
辅助单位的移动不要为0. |
|