# Way Point

### Description

Represents a Way Point

**To create it**, right-click on free space in AI Tree inspector and select <mark style="color:purple;">Create Node/Tasks/Movement/Way Point.</mark>

This task node has a number of fields, that are highlighted in picture below.

<figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2FyELuXnoWuHldZ6pJyJJn%2FMov2.png?alt=media&#x26;token=4eec821a-48d0-4c8f-90e6-32010fcc2037" alt=""><figcaption></figcaption></figure>

### Fields

| Name              | Description                                                       |
| ----------------- | ----------------------------------------------------------------- |
| Node Name         | Name of node                                                      |
| Ignore About Self | Whether node ignores abort self or not                            |
| Key               | The key that is used as the Way Point to which the AI agent moves |
| Selection Type    | Type of picking waypoints                                         |
| Way Name          | Name of Way gameobject in scene                                   |

### Selection Type

{% tabs %}
{% tab title="Sequential" %}
Iterates through waypoints in ascending order.
{% endtab %}

{% tab title="Ping Pong" %}
Iterates through waypoints in ascending order.

When reaching end, iterates through waypoints in descending order.
{% endtab %}

{% tab title="Random" %}
Picks waypoints randomly.
{% endtab %}
{% endtabs %}

{% hint style="info" %}
To use way point system add "AI Way Point" component to your way points, make them child objects of your way object and add "AI Way" component to your way object
{% endhint %}
