npc going for the player making a small ZigZag

hello, i would like to know if it’s posible to make an npc that goes for the player, but dont going in a totally straight path, but doing a small zigzag to do more difficult for the player to shoot him. thanks.


Can you tell us a bit more about the game, the problem and what your current AI implementation does? This would help us tremendously to find a good solution. :wink:


of course, sorry. my current AI is very simple, the only thing it does is search the location of the player, set a variable of “targetActor” with this player and if this variable is set it moves to this actor.
This implementation is for a dog, and i would like to change the path of this dog to totally straight to a litle “zigzag”.
thanks so much.