Hi,
is it possible to give my agents some sort of ‘error’ which would be random every time so they dont pick the closest path? Since I have 10 enemies chasing the player and they walk very closely now, I want to spread them apart a little bit.
Hi,
is it possible to give my agents some sort of ‘error’ which would be random every time so they dont pick the closest path? Since I have 10 enemies chasing the player and they walk very closely now, I want to spread them apart a little bit.
This is how I set the destination, where should I put this code from the docs? Before that or should I replace the agent.destination ?
protected override bool SetDestination(Vector3 target)
{
agent.canSearch = true;
agent.canMove = true;
agent.destination = target;
agent.SearchPath();
return true;
}