OsGetHealRate
From OpenSimulator
(Difference between revisions)
m (Added permissions and delay information) |
|||
| Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
|threat_level=None | |threat_level=None | ||
| + | |permissions=true | ||
| + | |delay=0 | ||
|function_syntax=float osGetHealRate(key avatar) | |function_syntax=float osGetHealRate(key avatar) | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
Revision as of 08:00, 25 October 2017
float osGetHealRate(key avatar)
| |
| Gets the current automatic healing rate in % per second.
Default heal rate is now around 0.5% per second. See also OsSetHealRate. | |
| Threat Level | None |
| Permissions | Use of this function is always allowed by default |
| Extra Delay | 0 seconds |
| Example(s) | |
// // osGetHealth Script Example // default { state_entry() { key uuid = llGetOwner(); osSetHealRate(uuid, 10.0); osCauseDamage(uuid, 50.0); llOwnerSay("osGetHealRate = " + (string)osGetHealRate(uuid)); llOwnerSay(llKey2Name(uuid) + " has " + (string)osGetHealth(uuid) + "% health left."); } } | |