|
楼主 |
发表于 2008-8-6 19:51:13
|
显示全部楼层
[jass]function Trig_duocong_Actions takes nothing returns nothing
local unit u
local location x
local location xx
local integer i = 1
local location xa = GetUnitLoc(GetTriggerUnit())
set x = GetSpellTargetLoc()
loop
set u = CreateUnitAtLoc(GetTriggerPlayer(),'e000',xa , 0.00)
call UnitAddAbility( u, 'A029' )
call UnitApplyTimedLife( u , 'Bhwe', 1.00)
set xx = PolarProjectionBJ(x, 256, ( ( GetUnitFacing(GetTriggerUnit()) - 60.00 ) + ( i * 20.00 ) ))
call IssuePointOrderLoc( u, "carrionswarm", xx )
set i = i + 1
exitwhen i > 5
endloop
set x = null
set xx = null
set xa = null
call RemoveLocation(x)
call RemoveLocation(xx)
call RemoveLocation(xa)
set u = null
endfunction
[/jass] |
|