Easy AI C# Enemy Wander-Pursue-Attack

You are here:
Estimated reading time: 2 min

First Bake a nav mesh.

Now add to your enemy a:

Nav Mesh Agent

Can See Object

Set Destination

Wander

Now create a new script with the following code and add it to your enemy.

Set the target of this script.

Was this article helpful?
Dislike 0
Views: 108