# AgentCommand record struct

> A raw command for an agent's body, the same a player's input fills, given with Command.

Namespace `EvilEngine.Api.Agents`, assembly `EvilEngine.Api`. Engine commit 4ff877b1.

```csharp
public readonly record struct AgentCommand
```

A raw command for an [agent](/docs/api/iagent)'s body, the same a player's input fills, given with [Command](/docs/api/iagent#command).

## Members

### AgentCommand (constructor)

```csharp
public AgentCommand(double Forward, double Side, double Up, double Pitch, double Yaw, AgentButtons Buttons)
```

Makes a command.

### Forward (property)

```csharp
public double Forward { get; init; }
```

How far forward to move, from -1 back to 1 forward, of the speed its buttons give.

### Side (property)

```csharp
public double Side { get; init; }
```

How far to the right to move, from -1 left to 1 right.

### Up (property)

```csharp
public double Up { get; init; }
```

How far up to move while flying or swimming, from -1 down to 1 up.

### Pitch (property)

```csharp
public double Pitch { get; init; }
```

Where it looks up or down.

### Yaw (property)

```csharp
public double Yaw { get; init; }
```

Which way it moves and faces.

### Buttons (property)

```csharp
public AgentButtons Buttons { get; init; }
```

The [buttons](/docs/api/agentbuttons) it holds.
