> For the complete documentation index, see [llms.txt](https://gley.gitbook.io/mobile-traffic-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gley.gitbook.io/mobile-traffic-system/complete-api/addwaypointevent.md).

# AddWaypointEvent

### Description

Add from code an event on a specific waypoint.

### Declaration&#x20;

```csharp
public static void AddWaypointEvent(int waypointIndex, string data)
```

### Parameters

<table><thead><tr><th width="188">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>waypointIndex</strong></td><td>The index of the waypoint on which to add the event.</td></tr><tr><td><strong>data</strong></td><td>The event data is utilized to recognize and respond to the event.</td></tr></tbody></table>

### Example

```csharp
coming soon
```
