I.AnimationController.addPlayBlendedAnimationHandler(function (groupname, options)
--print(groupname)
if groupname == "handtohand" then --or groupname == "idlehh" then -- if for specifig group
local acts = nearby.actors
for a,_ in pairs(acts) do
if (self.position - acts[a].position):length() < 200 and acts[a].id ~= self.id then
local attack = {
attacker = self,
--weapon = types.Weapon.records["6th bell hammer"].id,
strength = 0.4,
--type = self.ATTACK_TYPE.Chop,
damage = {
--health = types.Weapon.records["6th bell hammer"].chopMaxDamage,
fatigue = 10,
},
successful = true,
}
acts[a]:sendEvent('Hit', attack)
end
end
end
end)