# Waypoints

You can create unique waypoints for each enemy, for this do the following:

* Create a <mark style="color:green;">**Movement Behaviour**</mark> by pressing <mark style="color:orange;">**(GameObject -> USK -> Movement Behaviour)**</mark>.
* Then create a few waypoints and place them as you need.

{% hint style="info" %}
When you click on the "+" button, a point is created; when you click on the "-", it is deleted.
{% endhint %}

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FhTUbd3a73p6foYcSPgPq%2FMovement%20Behavior.png?alt=media\&token=6c8e33d4-72e5-4b8f-9d51-8d4f6c5a28b2)

Each point has 2 parameters:

| Parameter       | Description                                                                                                                                                                                                                                                                                                                                                                                                   |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Next Action** | <ul><li><strong>Next Point</strong> - the enemy will move to the next waypoint after the current point.</li><li><strong>Random Point</strong> - the enemy will find a random waypoint and move to it after current.</li><li><strong>Nearest Point</strong> - the enemy will find the nearest point and move to it after current. </li><li><strong>Stop</strong> - the enemy will finish patrolling.</li></ul> |
| **Wait**        | The enemy will stop near the point and wait for some time. In this state, one of the find animations will be played.                                                                                                                                                                                                                                                                                          |

* After you finish creating the <mark style="color:green;">**Movement Behavior**</mark>, set it in the script <mark style="color:green;">**AI Controller**</mark> script.

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FEj56jnoRyxqKYBNK2IYE%2FMB.png?alt=media\&token=dc76b207-0829-430f-999d-96a030be6ca7)
