mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Implements llGetObjectMass()
This commit is contained in:
@@ -3230,7 +3230,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
public double llGetObjectMass(string id)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user