OsGetHealRate

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Added note stating which version of OpenSim introduced this function)
 
Line 27: Line 27:
  
 
See also [[OsSetHealRate]].
 
See also [[OsSetHealRate]].
|additional_info=This function was added in 0.9.0-post-fixes
+
|additional_info=This function was added in 0.9.0.1}}
}}
+

Latest revision as of 08:59, 7 December 2018

float osGetHealRate(key avatar)
Gets the current automatic healing rate in % per second.

Default heal rate is now around 0.5% per second.
A value of zero can disable automatic heal, current maximum value is 100 % per second.

See also OsSetHealRate.

Threat Level None
Permissions Use of this function is always allowed by default
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
Personal tools
General
About This Wiki