Hi, so I wanted to have some melee only enemies that chase the player with a knife. I used the knife that came with the deathmatch kit. It works for the most part, except for when the player is moving, the enemy never tries to attack.
This means that the player can effectively never get hit by melee enemies, so long as they are moving and don't get stuck on anything. I tried making the enemy speed faster than the player's speed, but strangely that did not solve the problem at all.
A friend of mine suggested that I make the attack range increase to a larger amount ONLY while he is moving. So presumably alter the Max Use Distance value:

dynamically when he is moving. Before I go about this though I thought I would ask if this is the right direction, and if it is possible to do this at all through the opsive components. Since this seems like it would be a common problem for melee enemies I thought maybe there already is a solution to this, or some way to dynamically change that value without writing custom code.
Also, smaller note. In that video up above you can see that the enemy chasing you kind of stutters as he does so. Is there any fix for this? I'm not really sure what's causing it.
Thanks for any help
This means that the player can effectively never get hit by melee enemies, so long as they are moving and don't get stuck on anything. I tried making the enemy speed faster than the player's speed, but strangely that did not solve the problem at all.
A friend of mine suggested that I make the attack range increase to a larger amount ONLY while he is moving. So presumably alter the Max Use Distance value:

dynamically when he is moving. Before I go about this though I thought I would ask if this is the right direction, and if it is possible to do this at all through the opsive components. Since this seems like it would be a common problem for melee enemies I thought maybe there already is a solution to this, or some way to dynamically change that value without writing custom code.
Also, smaller note. In that video up above you can see that the enemy chasing you kind of stutters as he does so. Is there any fix for this? I'm not really sure what's causing it.
Thanks for any help