08-17-2016, 09:34 AM
The barrels sometimes make problems..
The zombie always tries to get the nearest entity.
So for example he walks to a player and on its way, there is a barrel closer than the player. So the zombie walks to the barrel.
But then on the way to the barrel a player is closer and the zombie walks back to the player. And so on...
Maybe I hvae to make a priority list.. first kill barells and then kill players.. Something like that..
The zombie always tries to get the nearest entity.
So for example he walks to a player and on its way, there is a barrel closer than the player. So the zombie walks to the barrel.
But then on the way to the barrel a player is closer and the zombie walks back to the player. And so on...
Maybe I hvae to make a priority list.. first kill barells and then kill players.. Something like that..