diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 6 |
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 | ||