> 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/complete-api/disableareawaypoints.md).

# DisableAreaWaypoints

### Description

Disable all waypoints in the specified area to stop pedestrians from going in a certain area for a limited time.

### Declaration

```csharp
public static void DisableAreaWaypoints(Vector3 center, float radius)
```

### Parameters

<table><thead><tr><th width="261">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>center</strong></td><td>The center of the circle to disable waypoints from.</td></tr><tr><td><strong>radius</strong></td><td>The radius in meters of the circle to disable waypoints from.</td></tr></tbody></table>

### Example

```csharp
using Gley.PedestrianSystem;
using UnityEngine;

public class Test : MonoBehaviour
{
    // References to the pedestrian pool and player assigned in the inspector.
    public PedestrianPool pedestrianPool;
    public Transform player;

    // A reference to some camera.
    public Transform someCamera;

    void Start()
    {
        API.Initialize(player, 20, pedestrianPool);
    }

    public void DisableWaypoints()
    {
        // Disable all waypoints 20m around the player. 
        API.DisableAreaWaypoints(GameObject.Find("Player").transform.position, 20);
    }
}
```
