OsCauseHealing

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
|threat_level=High
|- valign="top"
+
|permissions=${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|'''Threat Level''' || High
+
|delay=0
|- valign="top"
+
|function_syntax= osCauseHealing(key avatar, float healing)
|'''Function Syntax''' || <source lang="lsl">
+
|description=This does the opposite of osCauseDamage. It gives health to the avatar.
osCauseHealing(string avatar, double damage);
+
|ossl_example=<source lang="lsl">
</source>
+
//
|- valign="top"
+
// osCauseHealing Script Example
|'''Example(s)||<source lang="lsl">
+
//
 +
 
 
default
 
default
 
{
 
{
  state_entry()
+
    state_entry()
  {
+
    {
    osCauseHealing(llGetOwner(), 50);
+
        // Cause healing to the owner of the object where the script is located
  }
+
        // The second parameter '50' specifies the amount of healing, in this case, 50 points
 +
        osCauseHealing(llGetOwner(), 50);
 +
    }
 
}
 
}
 +
 
</source>
 
</source>
 
+
|additional_info=Implemented December 30,2009 by Revolution in GIT# 87959464c9db8948bed89909913400bc2eb7524d - Rev 11850
|}
+
}}
'''Implemented December 30,2009 by Revolution in GIT# 87959464c9db8948bed89909913400bc2eb7524d - Rev 11850'''
+
== See Also ==
 
+
* [[osGetHealth]]
This does the opposite of osCauseDamage. It gives health to the avatar.
+
* [[osSetHealth]]
 
+
* [[osGetHealRate]]
See also [[OsCauseDamage]].
+
* [[osSetHealRate]]
 
+
* [[OsCauseDamage]]
 
+
* [[OsCauseHealing]]
[[Category:OSSL Functions]]
+

Latest revision as of 01:10, 7 March 2024

osCauseHealing(key avatar, float healing)
This does the opposite of osCauseDamage. It gives health to the avatar.
Threat Level High
Permissions ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osCauseHealing Script Example
//
 
default
{
    state_entry()
    {
        // Cause healing to the owner of the object where the script is located
        // The second parameter '50' specifies the amount of healing, in this case, 50 points
        osCauseHealing(llGetOwner(), 50);
    }
}
Notes
Implemented December 30,2009 by Revolution in GIT# 87959464c9db8948bed89909913400bc2eb7524d - Rev 11850


[edit] See Also

Personal tools
General
About This Wiki