OsGetHealRate
From OpenSimulator
(Difference between revisions)
m (Change See Also) |
|||
(2 intermediate revisions by one user not shown) | |||
Line 4: | Line 4: | ||
|delay=0 | |delay=0 | ||
|function_syntax=float osGetHealRate(key avatar) | |function_syntax=float osGetHealRate(key avatar) | ||
+ | |description=Gets the current automatic healing rate in % per second. | ||
+ | Default heal rate is now around 0.5% per second.<br> | ||
+ | A value of zero can disable automatic heal, current maximum value is 100 % per second.<br> | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
// | // | ||
Line 21: | Line 24: | ||
} | } | ||
</source> | </source> | ||
− | + | |additional_info=This function was added in 0.9.0.1 | |
− | + | }} | |
− | + | == See Also == | |
− | + | * [[osGetHealth]] | |
− | + | * [[osSetHealth]] | |
− | + | * [[osGetHealRate]] | |
− | |additional_info=This function was added in 0.9.0.1}} | + | * [[osSetHealRate]] |
+ | * [[OsCauseDamage]] | ||
+ | * [[OsCauseHealing]] |
Latest revision as of 18:47, 5 December 2020
float osGetHealRate(key avatar)
| |
Gets the current automatic healing rate in % per second.
Default heal rate is now around 0.5% per second. | |
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."); } } | |
Notes | |
This function was added in 0.9.0.1 |
[edit] See Also
- osGetHealth
- osSetHealth
- osGetHealRate
- osSetHealRate
- OsCauseDamage
- OsCauseHealing