Page 1 of 1

Disabled Tool attack animation

Posted: Thu Aug 29, 2019 3:23 am
by L0771
Hi, I'm making a mod to add a lot of melee weapons, for this, i've disabled the melee attack:

Code: Select all

data.raw["character"]["character"].tool_attack_result = nil
It don't disable the attack animation, but don't run the event on entity damage on attack, the problem is the animation and the stop of movement.

Like the gif, the character stop when i have melee enemies
Image

I want to remove all the slow movement, I think it's a bug, because the tool attack is nil and damage event doesn't exists.

Re: Disabled Tool attack animation

Posted: Thu Aug 29, 2019 6:32 am
by posila
Setting tool_attack_distance to 0 should disable it

Code: Select all

data.raw["character"]["character"].tool_attack_distance = 0 

Re: Disabled Tool attack animation

Posted: Thu Aug 29, 2019 10:10 am
by L0771
Thanks you a lot!