# PRIM_HEALTH

*LSL constant*

```lsl
integer PRIM_HEALTH = 52;
```

Constant groups: [PrimParam](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

Used to get or set the health of the object. Objects start with 0 health by default.

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). Damaging an object (with [llDamage](/functions/llDamage/) or collision by damage-enabled object) will not directly affect its health.

## Caveats

- Does not make this object scannable as a [DAMAGEABLE](/constants/DAMAGEABLE/) object. For that you will need to add [on_damage](/events/on_damage/) or [final_damage](/events/final_damage/) events to the script on the object which will mark it as being able to process damage.

## See also

### Constants

- [OBJECT_HEALTH](/constants/OBJECT_HEALTH/)

### Functions

- [llGetHealth](/functions/llGetHealth/)
- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [llGetLinkPrimitiveParams](/functions/llGetLinkPrimitiveParams/)

### Articles

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

---

*Source: [PRIM HEALTH](https://wiki.secondlife.com/wiki/PRIM_HEALTH) on the Second Life Wiki. Content from the Second Life Wiki article PRIM HEALTH (revision 1217612, 2024-11-07), CC BY-SA 3.0.*

---

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