aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authoralondria2008-02-10 17:41:57 +0000
committeralondria2008-02-10 17:41:57 +0000
commit04a5a57b3d6e1760ec18516ea4692c5312d8ff20 (patch)
treefa542721da16486148a0e028203fc916936a7d6f /OpenSim/Region
parentThank you very much, Hashbox for : (diff)
downloadopensim-SC-04a5a57b3d6e1760ec18516ea4692c5312d8ff20.zip
opensim-SC-04a5a57b3d6e1760ec18516ea4692c5312d8ff20.tar.gz
opensim-SC-04a5a57b3d6e1760ec18516ea4692c5312d8ff20.tar.bz2
opensim-SC-04a5a57b3d6e1760ec18516ea4692c5312d8ff20.tar.xz
Implements llGetObjectMass()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 36aae31..e59978a 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -3230,7 +3230,11 @@ namespace OpenSim.Region.ScriptEngine.Common
3230 public double llGetObjectMass(string id) 3230 public double llGetObjectMass(string id)
3231 { 3231 {
3232 m_host.AddScriptLPS(1); 3232 m_host.AddScriptLPS(1);
3233 NotImplemented("llGetObjectMass"); 3233 LLUUID key = new LLUUID();
3234 if (LLUUID.TryParse(id,out key))
3235 {
3236 return (double)World.GetSceneObjectPart(World.Entities[key].LocalId).GetMass();
3237 }
3234 return 0; 3238 return 0;
3235 } 3239 }
3236 3240