|
[jass]function HushUnit takes unit u1,unit u2 returns nothing
local real X=0
local real Y=0
local unit Spellu=null
set X=GetUnitX(u2)
set Y=GetUnitY(u2)
set Spellu=CreateUnit(GetOwningPlayer(u1),h000,X,Y)
//h000是步兵
call UnitAddAbility(Spellu,A000)
//A000是沉默
call UnitAddAbility(Spellu,A001)
//A001是酸性炸弹
call IssueTargetOrderById(Spellu,852662,u2)
call IssuePointOrderById(Spellu,852592,X,Y)
call UnitRemoveAbility(Spellu,A000)
call UnitRemoveAbility(Spellu,A001)
call RemoveUnit(Spellu)
set X=0
set Y=0
set Spellu=0
endfunction[/jass]
这个在运行中完全没效果
似乎是单位还没放完就被Remove了。
是我在单位设置上出错了吗? |
|