|
发表于 2008-8-3 17:36:07
|
显示全部楼层
[jass]function d takes nothing returns nothing
local timer t = GetExpiredTimer()
local string s = H2S(t)
local unit u=I2U(GetStoredInteger(udg_GC,s,"NongFu"))
local location d1 = GetUnitLoc(u)
local location d2 = PolarProjectionBJ(d1, 12.00, GetUnitFacing(u))
call SetUnitPositionLoc( u, d2 )
call CreateNUnitsAtLoc( 1, 'e003', Player(10), d2, bj_UNIT_FACING )
call UnitApplyTimedLife( GetLastCreatedUnit(), 'BHwe', 0.01 )
call RemoveLocation(d1)
call RemoveLocation(d2)
set d1=null
set d2=null
set t = null
endfunction
[/jass]
call CreateNUnitsAtLoc( 1, 'e003', Player(10), d2, bj_UNIT_FACING )
天啊,这是什么??? |
|