mirror of
https://github.com/opensim/opensim.git
synced 2026-05-26 20:15:35 +08:00
Add the option to link a scene object with a monitoring object
For debugging purposes.
This commit is contained in:
@@ -424,6 +424,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return lease;
|
||||
}
|
||||
|
||||
protected SceneObjectPart MonitoringObject()
|
||||
{
|
||||
UUID m = m_host.ParentGroup.MonitoringObject;
|
||||
if (m == UUID.Zero)
|
||||
return null;
|
||||
|
||||
SceneObjectPart p = m_ScriptEngine.World.GetSceneObjectPart(m);
|
||||
if (p == null)
|
||||
m_host.ParentGroup.MonitoringObject = UUID.Zero;
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
protected virtual void ScriptSleep(int delay)
|
||||
{
|
||||
delay = (int)((float)delay * m_ScriptDelayFactor);
|
||||
|
||||
Reference in New Issue
Block a user