# OBJECT_HEALTH

*LSL constant*

```lsl
integer OBJECT_HEALTH = 50;
```

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

Gets the health of the object.

This property can only be changed by a call to [llSetPrimitiveParams](https://wiki.secondlife.com/wiki/LlSetPrimitiveParams) or [llSetLinkPrimitiveParams](https://wiki.secondlife.com/wiki/LlSetLinkPrimitiveParams) with [PRIM_HEALTH](/constants/PRIM_HEALTH/). Damaging an object (with [llDamage](/functions/llDamage/) or collision by damage-enabled object) will not directly affect its health.

## See also

### Constants

- [PRIM_HEALTH](/constants/PRIM_HEALTH/)

### Functions

- [llGetObjectDetails](/functions/llGetObjectDetails/)
- [llGetHealth](/functions/llGetHealth/)

### Articles

- [Combat2](https://wiki.secondlife.com/wiki/Category:LSL_Combat2)

---

*Source: [OBJECT HEALTH](https://wiki.secondlife.com/wiki/OBJECT_HEALTH) on the Second Life Wiki. Content from the Second Life Wiki article OBJECT HEALTH (revision 1217601, 2024-11-06), CC BY-SA 3.0.*

---

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