Implements llGetObjectMass()

ThreadPoolClientBranch
alondria 2008-02-10 17:41:57 +00:00
parent cf284efcda
commit 04a5a57b3d
1 changed files with 5 additions and 1 deletions

View File

@ -3230,7 +3230,11 @@ namespace OpenSim.Region.ScriptEngine.Common
public double llGetObjectMass(string id) public double llGetObjectMass(string id)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
NotImplemented("llGetObjectMass"); LLUUID key = new LLUUID();
if (LLUUID.TryParse(id,out key))
{
return (double)World.GetSceneObjectPart(World.Entities[key].LocalId).GetMass();
}
return 0; return 0;
} }