# Sandbox.AnimGraphDirectPlayback.Play

## Overload 1

```csharp
void Play(string name)
```

Play the given sequence until it ends, then blend back.
Calling this function with a new sequence while another one is playing will immediately start blending from the old one to the new one.

### Parameters

- `name` (`string`)

## Overload 2

```csharp
void Play(string name, Vector3 target, float heading, float interpTime)
```

Same as the other Play function, but also sets a target position and heading for the sequence.
Over interpTime seconds, the entity's root motion will be augmented to move it to target and rotate it to heading.

### Parameters

- `name` (`string`)
- `target` (`Vector3`)
- `heading` (`float`)
- `interpTime` (`float`)

Declared in [Sandbox.AnimGraphDirectPlayback](/api/Sandbox.AnimGraphDirectPlayback).
Assembly: `Sandbox.Engine`.
