# AGENT

*LSL constant*

```lsl
integer AGENT = 0x1;
```

Agents (avatars). In llDetectedType, it indicates an avatar. In llSensor or llSensorRepeat, it searches for avatars by legacy name (functionally identical to AGENT_BY_LEGACY_NAME, though using AGENT_BY_LEGACY_NAME is recommended instead).

Constant groups: [DetectType](/constants/groups/DetectType/)

---

*Source: [Agent](https://wiki.secondlife.com/wiki/Agent) on the Second Life Wiki. Content from the Second Life Wiki article Agent (revision 1213266, 2023-02-04), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/AGENT/
