# Sandbox.Input.PlayerScope

## Overload 1

```csharp
static System.IDisposable PlayerScope(PlayerIndex player)
```

Push a specific player scope to be active.

### Parameters

- `player` (`PlayerIndex`)

### Returns

`System.IDisposable`

## Overload 2

```csharp
static System.IDisposable PlayerScope(int index)
```

> **Obsolete.** Use PlayerScope( PlayerIndex ) instead

### Parameters

- `index` (`int`)

### Returns

`System.IDisposable`

Declared in [Sandbox.Input](/api/Sandbox.Input).
Assembly: `Sandbox.Engine`.
