# llGetHealth

*LSL function*

```lsl
float float llGetHealth(key id);
```

- `key id`: UUID of the agent or object to query.

- Returns: `float`
- Energy: 10

Returns a float representing the current health of the avatar or object specified by id.

Returns the current health of an avatar or object in the region.

```lsl title="How to use" frame="terminal"
float result = llGetHealth(NULL_KEY);
```

## Specification

Returns the current health value for an avatar or object in the region.

## Caveats

- Seems to be able to return current health of avatars in neighbouring regions as well

## See also

### Functions

- [llGetObjectDetails](/functions/llGetObjectDetails/)
- [LlGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [LlGetLinkPrimitiveParams](/functions/llGetLinkPrimitiveParams/)

---

*Source: [LlGetHealth](https://wiki.secondlife.com/wiki/LlGetHealth) on the Second Life Wiki. Content from the Second Life Wiki article LlGetHealth (revision 1218051, 2025-03-12), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetHealth/
