Skip to content
lsl.devlsl.devLSL Dev

PRIM_HEALTH

constant
Constant
integer PRIM_HEALTH = 52;

Constant groups

PrimParam · PrimParamGet

Other PrimParam values (42)
Other PrimParamGet values (40)

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

  • Does not make this object scannable as a DAMAGEABLE object. For that you will need to add on_damage or final_damage events to the script on the object which will mark it as being able to process damage.
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from PRIM HEALTH, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.