找回密码
 register

QQ登录

只需一步,快速开始

搜索
查看: 337|回复: 0

LuaFnSendImpactAroundPosition 对范围坐标范围给予BUFF 群体伤害 群攻

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:300
  • 打卡月天数:21
  • 打卡总奖励:298
  • 最近打卡:2025-09-22 08:26:41
Waylee 发表于 2022-7-15 12:28 | 显示全部楼层 |阅读模式

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×
给附近6个目标给予20846 号buff,坐标为posX, posZ





--枚举人类
                local nHumanCount = LuaFnGetCopyScene_HumanCount(sceneId);
                for i = 0, nHumanCount - 1 do
                        LuaFnUnitIsEnemy(sceneId, LuaFnGetCopyScene_HumanObjId(sceneId, i), selfId)
                end
                --枚举怪物ID
                local nMonsterNum = GetMonsterCount(sceneId)
                for i=0, nMonsterNum - 1 do
                        LuaFnUnitIsEnemy(sceneId, GetMonsterObjID(sceneId,i), selfId)
                end
                --五米内留个目标
                LuaFnSendImpactAroundPosition(sceneId, selfId, PlayerX, PlayerZ, 5, -1, 1, 6, 613 , 6)
您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 ( 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 ) |网站地图|天天打卡

GMT+8, 2025-9-23 01:48 , Processed in 0.102449 second(s), 7 queries , Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表