Difference between revisions of "LlGetHealth"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function |func_id=|func_sleep=0.0|func_energy=10.0 |func=llGetHealth|return_type=float |func_desc=Returns the current health of an avatar. |return_text |spec={{LSL Warni...")
 
 
Line 2: Line 2:
|func_id=|func_sleep=0.0|func_energy=10.0
|func_id=|func_sleep=0.0|func_energy=10.0
|func=llGetHealth|return_type=float
|func=llGetHealth|return_type=float
|p1_type=key|p1_subtype=handle|p1_name=agent_id|p1_desc=The ID of an agent in the region.
|func_desc=Returns the current health of an avatar.
|func_desc=Returns the current health of an avatar.
|return_text
|return_text
|spec={{LSL Warnings/Combat2}}
|spec={{LSL Warnings/Combat2}}
Returns the current health value for an avatar from a script running in an attachment.  
Returns the current health value for an avatar in the region.  
|caveats=
|caveats=
*If this function is called from a script that is not attached to an avatar it returns 0.0
*If agent_id does not specify an avatar in the region, this script returns 0.0
|examples
|examples
|helpers
|helpers

Latest revision as of 15:08, 4 March 2024

Summary

Function: float llGetHealth( key agent_id );

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
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function float llGetHealth( key agent_id );