---
name: "agent"
type: command
status: ok
groups: ["Teams"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/agent
revid: 318629
updated: 2022-05-13T09:21:13Z
---

# agent

*Command · Teams · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Return a person for a given agent.

## Syntax

```sqf
agent teamMember
```

**Parameters:**

- `teamMember`: [Team Member](../topics/Team_Member.md)

**Returns:** [Object](../topics/Object.md)

## Examples

### Example 1

```sqf
_obj = agent teamMember _unit;
```

## See also

[agents](../commands/agents.md) · [createAgent](../commands/createAgent.md) · [forEachMemberAgent](../commands/forEachMemberAgent.md) · [isAgent](../commands/isAgent.md)

<sub>Source: [BI Community Wiki — agent](https://community.bistudio.com/wiki/agent) (revision 318629).</sub>
