OsGetHealRate
From OpenSimulator
(Difference between revisions)
Line 19: | Line 19: | ||
} | } | ||
</source> | </source> | ||
− | |description=Gets | + | |description=Gets the current automatic healing rate in % per second. |
Default heal rate is now around 0.5% per second.<br /> | Default heal rate is now around 0.5% per second.<br /> |
Revision as of 05:49, 15 April 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 | No permissions specified |
Extra Delay | No function delay specified |
Example(s) | |
// // osGetHealth Script Exemple // 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."); } } |