aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
diff options
context:
space:
mode:
authorMelanie2012-08-24 01:22:44 +0100
committerMelanie2012-08-24 01:22:44 +0100
commit7cdb564fdd1b75f674a572d5484473cc33145891 (patch)
tree048c59aafd1faf45ce13a2b7ec9bad0024e1d9f6 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
parentMerge branch 'avination' into careminster (diff)
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-7cdb564fdd1b75f674a572d5484473cc33145891.zip
opensim-SC-7cdb564fdd1b75f674a572d5484473cc33145891.tar.gz
opensim-SC-7cdb564fdd1b75f674a572d5484473cc33145891.tar.bz2
opensim-SC-7cdb564fdd1b75f674a572d5484473cc33145891.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 04c3184..a81c39c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2943,6 +2943,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2943 } 2943 }
2944 }); 2944 });
2945 } 2945 }
2946
2947 public LSL_Float osGetHealth(string avatar)
2948 {
2949 CheckThreatLevel(ThreatLevel.None, "osGetHealth");
2950 m_host.AddScriptLPS(1);
2951
2952 LSL_Float health = new LSL_Float(-1);
2953 ScenePresence presence = World.GetScenePresence(new UUID(avatar));
2954 if (presence != null) health = presence.Health;
2955 return health;
2956 }
2946 2957
2947 public void osCauseDamage(string avatar, double damage) 2958 public void osCauseDamage(string avatar, double damage)
2948 { 2959 {