我想要问这是不是就是boss的群攻高伤害代码
if ents and dodamage then
for k2,v2 in pairs(ents) do
if v2 and v2.components.health and not v2.components.health:IsDead() and
self.inst.components.combat:CanTarget(v2) then
self.inst.components.combat:DoAttack(v2, nil, nil, nil, self.groundpounddamagemult)
end
end
end
在components里
if ents and dodamage then
for k2,v2 in pairs(ents) do
if v2 and v2.components.health and not v2.components.health:IsDead() and
self.inst.components.combat:CanTarget(v2) then
self.inst.components.combat:DoAttack(v2, nil, nil, nil, self.groundpounddamagemult)
end
end
end
在components里