|
楼主 |
发表于 2008-12-13 19:35:20
|
显示全部楼层
我又有了个新问题,用Wc3MapMax++优化之后,地图出现了问题,有一些函数没有正常被调用,但是我用MPQ分析器把j代码提取出来,是我的源代码啊,代码如下:[jass]function III0III takes nothing returns nothing
local timer t=GetExpiredTimer()
call SetUnitFlyHeight(I00IOI((I2S(I0OOII((t)))),"unit"),.0,666.67)
call OIIIOI((I2S(I0OOII((t)))))
call DestroyTimer(t)
set t=null
endfunction
function III0IOI takes nothing returns nothing
local timer t=GetExpiredTimer()
local unit u=I00IOI((I2S(I0OOII((t)))),"unit")
local real III0I0I=I00III((I2S(I0OOII((t)))),"facing")
local real III0OII=I00III((I2S(I0OOII((t)))),"distance")-20.
call SetUnitX(u,OIIIII(GetUnitX(u)+CosBJ(III0I0I)*20.))
call SetUnitY(u,OII0OI(GetUnitY(u)+SinBJ(III0I0I)*20.))
call SetUnitFacing(u,III0I0I)
call I0O00I((I2S(I0OOII((t)))),"distance",III0OII)
if III0OII<=0 then
call OIIIOI((I2S(I0OOII((t)))))
call DestroyTimer(t)
call SetUnitPathing(u,true)
call SetUnitAnimation(u,"stand")
endif
set t=null
endfunction
function III0OOI takes nothing returns nothing
local unit u=GetTriggerUnit()
local timer t=CreateTimer()
local timer t2=CreateTimer()
call UnitAddAbility(u,1097691750)
call UnitRemoveAbility(u,1097691750)
call SetUnitFlyHeight(u,200.,666.67)
call IssueImmediateOrder(u,"stop")
call SetUnitAnimationByIndex(u,6)
call I0O00I((I2S(I0OOII((t)))),"facing",GetUnitFacing(u))
call I0O0OI((I2S(I0OOII((t)))),"unit",u)
call I0O0OI((I2S(I0OOII((t2)))),"unit",u)
call I0O00I((I2S(I0OOII((t)))),"distance",600.)
call SetUnitPathing(u,false)
call TimerStart(t,.02,true,function III0IOI)
call TimerStart(t2,.3,false,function III0III)
set t = null
set t2 = null
set u = null
endfunction[/jass]
只能看见单位移动,而call SetUnitFlyHeight(u,200.,666.67)是没有作用的!!!
不仅只有这一句没有用,还有很多,比如 某个给英雄创建物品的语句 也没有被执行。。 |
|