Difference between revisions of "PRIM HEALTH"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL Constant |name=PRIM_HEALTH |type=integer |value=52 |desc=Sets the health of the object. |caveats= * Does not make this object scannable as a DAMAGEABLE object. For t...")
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|type=integer
|type=integer
|value=52
|value=52
|desc=Sets the health of the object.
|desc=
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.
|caveats=
|caveats=
* Does not make this object scannable as a [[DAMAGEABLE]] object. For that you will need to give add [[on_damage]] or [[final_damage]] events to the script on the object which will mark it as being able to process damage
* 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.
|constants=
{{LSL DefineRow||[[OBJECT_HEALTH]]|}}
|functions=
|functions=
{{LSL DefineRow||[[llGetHealth]]|}}
{{LSL DefineRow||[[llGetHealth]]|}}

Latest revision as of 02:57, 7 November 2024

Description

Constant: integer PRIM_HEALTH = 52;

The integer constant PRIM_HEALTH has the value 52

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.

Caveats

  • 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.


Related Articles

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_HEALTH = 52;