Add the option to link a scene object with a monitoring object
For debugging purposes.melanie
parent
27fdf3094d
commit
91f142bbd2
|
@ -376,6 +376,8 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
public bool m_dupeInProgress = false;
|
||||
internal Dictionary<UUID, string> m_savedScriptState;
|
||||
|
||||
public UUID MonitoringObject { get; set; }
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue