OsSetHealRate
From OpenSimulator
(Difference between revisions)
Line 24: | Line 24: | ||
A value of zero can disable automatic heal, current maximum value is 100 % per second.<br /> | A value of zero can disable automatic heal, current maximum value is 100 % per second.<br /> | ||
− | See also [[OsGetHealRate | + | See also [[OsGetHealRate]]. |
| | | | ||
}} | }} |
Revision as of 05:48, 15 April 2017
float osSetHealRate(key avatar, float healrate)
| |
Sets the automatic healing rate in % per second.
Default heal rate is now around 0.5% per second. See also OsGetHealRate. | |
Threat Level | High |
Permissions | No permissions specified |
Extra Delay | No function delay specified |
Example(s) | |
// // osSetHealth 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."); } } |