山坡上的流氓 发表于 2023-1-30 09:33:05

一个焦点跟随 为什么判断不了距离呢

local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
local fc = BeeUnitBuffList("focus")
if BeeCastSpellFast() then return;end
if UnitName("focus") and ((BeeRange("focus")<=40 and BeeRange("focus")>=15) or not BeeUnitIsFollow()) then
    FollowUnit("focus");
end
是哪里出了问题呢

山坡上的流氓 发表于 2023-1-30 09:54:59

好了 找到问题了 语法用错了

蜡笔小新 发表于 2023-1-30 13:58:25

请问跟随目标输出怎么调节距离和自动面对怪物输出?{:5_243:}

marang178 发表于 2023-2-17 14:57:32

山坡上的流氓 发表于 2023-1-30 09:54 AM
好了 找到问题了 语法用错了

哪里语法错了,我也想用这个功能。

山坡上的流氓 发表于 2023-2-22 17:28:35

marang178 发表于 2023-2-17 02:57 PM
哪里语法错了,我也想用这个功能。

if UnitName("focus") and ((BeeRange("focus")<=40 and BeeRange("focus")>=15) or not BeeUnitIsFollow()) then
    FollowUnit("focus");
end

最后这里 哪个or换成and

leonokok 发表于 2023-3-2 13:05:57

{:5_248:}{:5_238:}{:5_255:}{:5_256:}{:5_250:}
页: [1]
查看完整版本: 一个焦点跟随 为什么判断不了距离呢