Difference between revisions of "PRIM HEALTH"
Jump to navigation
Jump to search
m (Health clarification) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
|value=52 | |value=52 | ||
|desc= | |desc= | ||
Used to get or set the health of the object. | 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. | 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 | * 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= | |constants= | ||
{{LSL DefineRow||[[OBJECT_HEALTH]]|}} | {{LSL DefineRow||[[OBJECT_HEALTH]]|}} |
Latest revision as of 02:57, 7 November 2024
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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
Constants
• | OBJECT_HEALTH |
Functions
• | llGetHealth | |||
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams | |||
• | llGetLinkPrimitiveParams |
Articles
• | Combat2 |