OsGetHealth
From OpenSimulator
(Difference between revisions)
TBGRenfold (Talk | contribs) m |
TBGRenfold (Talk | contribs) m |
||
Line 13: | Line 13: | ||
} | } | ||
</source> | </source> | ||
− | |description=Gets an avatars health by key and returns the value as a float. | + | |description=Gets an avatars health by key and returns the value as a float. (currently availiable in master dev only not in 0.7.4) |
See also [[OsCauseDamage]], [[OsCauseHealing]]. | See also [[OsCauseDamage]], [[OsCauseHealing]]. | ||
| | | | ||
}} | }} |
Revision as of 12:43, 2 September 2012
float osGetHealth(string avatar)
| |
Gets an avatars health by key and returns the value as a float. (currently availiable in master dev only not in 0.7.4)
See also OsCauseDamage, OsCauseHealing. | |
Threat Level | None |
Permissions | No permissions specified |
Extra Delay | No function delay specified |
Example(s) | |
default { touch(integer t) { key agentID = llDetectedKey(0); osCauseDamage(agentID, 50); llSay(0, llKey2Name(agentID) + " has " + (string)osGetHealth(agentID) + "% health left."); } } |