> 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/oncustomwaypointrequested.md).

# OnCustomWaypointRequested

### Description

Triggers when HasExternalWaypointSelectionMethod property of a pedestrian is set to true and the pedestrian needs a new waypoint.

### Delegate

```csharp
public delegate void CustomWaypointRequested(int pedestrianIndex);
```

### Parameters

<table><thead><tr><th width="215">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>pedestrianIndex</strong></td><td>The index of the pedestrian.</td></tr></tbody></table>

### Example

Check RunAwayFromPoin&#x74;**.cs** for a complete implementation example.
