diff options
author | alondria | 2008-02-10 17:41:57 +0000 |
---|---|---|
committer | alondria | 2008-02-10 17:41:57 +0000 |
commit | 04a5a57b3d6e1760ec18516ea4692c5312d8ff20 (patch) | |
tree | fa542721da16486148a0e028203fc916936a7d6f /OpenSim/Region/ScriptEngine | |
parent | Thank you very much, Hashbox for : (diff) | |
download | opensim-SC_OLD-04a5a57b3d6e1760ec18516ea4692c5312d8ff20.zip opensim-SC_OLD-04a5a57b3d6e1760ec18516ea4692c5312d8ff20.tar.gz opensim-SC_OLD-04a5a57b3d6e1760ec18516ea4692c5312d8ff20.tar.bz2 opensim-SC_OLD-04a5a57b3d6e1760ec18516ea4692c5312d8ff20.tar.xz |
Implements llGetObjectMass()
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 | ||