Difference between revisions of "LlGetHealth"

From Second Life Wiki
Jump to navigation Jump to search
(Discrepancy noticed, also returns health values of avs in nearby regions)
 
Line 6: Line 6:
|return_text
|return_text
|spec=Returns the current health value for an avatar or object in the region.
|spec=Returns the current health value for an avatar or object in the region.
|caveats=
* Seems to be able to return current health of avatars in neighbouring regions as well
|also_constants=
|also_constants=
{{LSL ConstRow|PRIM_HEALTH}}
{{LSL ConstRow|PRIM_HEALTH}}

Latest revision as of 14:48, 12 March 2025

Summary

Function: float llGetHealth( key id );
0.0 Forced Delay
10.0 Energy

Returns the current health of an avatar or object in the region.
Returns a float

• key id The ID of an agent or object in the region.

Specification

Returns the current health value for an avatar or object in the region.

Caveats

  • Seems to be able to return current health of avatars in neighbouring regions as well

Examples

Deep Notes

Signature

function float llGetHealth( key id );