• 注册
  • Mod教程 Mod教程 关注:1212 内容:57

    自动锁敌

  • 查看作者
  • 打赏作者
  • Lv7
    2025

    在不使用禁止接收指令的情况之下,你可以用以下代码,让单位自动寻路并击毁敌对势力,并且玩家无法干预控制

     

    [hiddenAction_路径目标]

    autoTrigger:if self.globalTeamTags(includes=’抵抗虫王’)

    addWaypoint_target_nearestUnit_tagged:目标

    addWaypoint_type:attackMove

    addWaypoint_target_nearestUnit_team:enemy

    addWaypoint_triggerActionIfFailed:路径目标1

    addWaypoint_maxTime:5s

    addWaypoint_target_mapMustBeReachable:true

     

    [hiddenAction_路径目标1]

    autoTrigger:if self.globalTeamTags(includes=’抵抗虫王’)

    addWaypoint_target_nearestUnit_tagged:基地

    addWaypoint_type:attackMove

    addWaypoint_target_nearestUnit_team:enemy

    addWaypoint_triggerActionIfFailed:路径目标2

    addWaypoint_maxTime:5s

    addWaypoint_target_mapMustBeReachable:true

     

    [hiddenAction_路径目标2]

    autoTrigger:if self.globalTeamTags(includes=’抵抗虫王’)

    addWaypoint_target_nearestUnit_tagged:单位

    addWaypoint_type:attackMove

    addWaypoint_target_nearestUnit_team:enemy

    addWaypoint_maxTime:5s

    addWaypoint_target_mapMustBeReachable:true

    [hiddenAction_强判定]

    autoTriggerOnEvent:newWaypointGivenByPlayer

    clearActiveWaypoint:true

     

    requireConditional:if self.globalTeamTags(includes=’抵抗虫王’)


    “点赞是美意,打赏是鼓励”


    漂亮 可惜我不会宾语(悲)
    这个似乎挺常见 生存闯关地图里都有它
  • Losnplant这个是作用于特殊模式,玩法是单位会自动攻击敌对势力的单位,但是玩家无法操控,类似于米拉奇传记那种
    拉黑 1年前 手机端回复
  • Losnplant而且不能影响主模式的情况之下是用不了禁止接收指令💀
    拉黑 1年前 手机端回复
  • Losnplant所以这就是我搞出的屎山代码
    拉黑 1年前 手机端回复
  • 心如止水ᅟᅟᅟᅟᅟᅟ[Internal ERROR : Due to capacity constraints, Unable to process the information you submitted.]
    拉黑 1年前 手机端回复
  • 回复

    请登录之后再进行评论

    登录
    教程分享
  • 今日 0
  • 内容 244
  • 关注 1212
    • 大版主
    • 小版主
  • 安逸
    安逸
    我的名字叫陈xx,今年10岁了。
  • 暂没有数据

  • 任务
  • 动态
  • 底部
  • 帖子间隔 侧栏位置: