> For the complete documentation index, see [llms.txt](https://gley.gitbook.io/mobile-pedestrian-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-pedestrian-system/events/onstopstatechanged.md).

# OnStopStateChanged

### Description

Triggered every time the stop property of a waypoint changed.

### Delegate

```csharp
public delegate void StopStateChanged(int waypointIndex, bool stop);
```

### Parameters

<table><thead><tr><th width="215">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>waypointIndex</strong></td><td>The index of the waypoint that changed.</td></tr><tr><td><strong>stop</strong></td><td>The new stop state.</td></tr></tbody></table>

### Example

Check **StopAtCrossing.cs** for a complete implementation example.
