MI2-Utilities-Java icon indicating copy to clipboard operation
MI2-Utilities-Java copied to clipboard

玩家非空军自动寻路无效

Open FiredGrass opened this issue 1 year ago • 0 comments

玩家非空军自动寻路无效

mi2u中使用ucontrol pathfind逻辑控制玩家进行自动寻路时,对于陆军和海军无效

我确认我写的逻辑没有问题,且目标可达 逻辑1:

jump 20 equal 初始化 1
set 标题 "自动寻路"
set 标题2 "选择目标"
set 标题3 "选择目标后自动启用"
set 标题4 "停止需要一些时间"
set 选择 0
set 停止 0
set 倒计时 ""
print "UI.clear()"
print "UI.info(标题)"
print "UI.row()"
print "UI.info(标题2)"
print "UI.button(选择)"
print "UI.info(倒计时)"
print "UI.row()"
print "UI.info(标题3)"
print "UI.row()"
print "UI.button(停止)"
print "UI.info(标题4)"
set 初始化 1
jump 30 equal 选择 1
jump 26 equal 停止 1
jump 0 equal Ux 0
ucontrol pathfind Ux Uy 0 0 0
effect spawn Ux Uy 2 %ffaaff 
end
set Ux 0
set Uy 0
set 停止 0
end
set 倒计时 "3"
wait 1
set 倒计时 "2"
wait 1
set 倒计时 "1"
wait 1
sensor Ux @unit @shootX
sensor Uy @unit @shootY
set 倒计时 "已设置"
set 选择 0

逻辑2: ucontrol pathfind 5 5 0 0 0

FiredGrass avatar Jan 12 '25 09:01 FiredGrass