llGetHealth

From Second Life Wiki
Revision as of 14:08, 4 March 2024 by Rider Linden (talk | contribs)
Jump to navigation Jump to search

Summary

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

Returns the current health of an avatar.
Returns a float

• key agent_id The ID of an agent in the region.

Specification

KBwarning.png Warning: This function or parameter is part of the Combat2 project and is only available on parts of the beta grid.

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

Caveats

  • If agent_id does not specify an avatar in the region, this script returns 0.0

Examples

Deep Notes

Signature

function float llGetHealth( key agent_id );