Implements llGetObjectMass()
parent
cf284efcda
commit
04a5a57b3d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue