OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
/// <summary>
/// Stop and remove a script which is in this prim's inventory.
/// </summary>
/// <param name="itemId"></param>
/// <param name="sceneObjectBeingDeleted">
/// Should be true if this script is being removed because the scene
/// object is being deleted.  This will prevent spurious updates to the client.
/// </param>
Stop and remove a script which is in this prim's inventory.
Stop and remove a script which is in this prim ' s inventory .
public void RemoveScriptInstance(UUID itemId, bool sceneObjectBeingDeleted)
        {
            bool scriptPresent = false;
            lock (m_items)
            {
                if (m_items.ContainsKey(itemId))
                    scriptPresent = true;
            }
            if (scriptPresent)
            {
                if (!sceneObjectBeingDeleted)
                    m_part.RemoveScriptEvents(itemId);
                m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemId);
                m_part.ParentGroup.AddActiveScriptCount(-1);
            }
            else
            {
                m_log.WarnFormat(
                    "[PRIM INVENTORY]: " +
                    "Couldn't stop script with ID {0} since it couldn't be found for prim {1}, {2} at {3} in {4}",
                    itemId, m_part.Name, m_part.UUID, 
                    m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName);
            }
        }
public void RemoveScriptInstance ( UUID itemId , bool sceneObjectBeingDeleted ) { bool scriptPresent = false ; lock ( m_items ) { if ( m_items . ContainsKey ( itemId ) ) scriptPresent = true ; } if ( scriptPresent ) { if ( ! sceneObjectBeingDeleted ) m_part . RemoveScriptEvents ( itemId ) ; m_part . ParentGroup . Scene . EventManager . TriggerRemoveScript ( m_part . LocalId , itemId ) ; m_part . ParentGroup . AddActiveScriptCount ( - 1 ) ; } else { m_log . WarnFormat ( " " + " " , itemId , m_part . Name , m_part . UUID , m_part . AbsolutePosition , m_part . ParentGroup . Scene . RegionInfo . RegionName ) ; } }
Stop and remove a script which is in this prim's inventory.
Stop and remove a script which is in this prim ' s inventory .
itemId
UUID
None
sceneObjectBeingDeleted
bool
Should be true if this script is being removed because the scene
object is being deleted.  This will prevent spurious updates to the client.
Should be true if this script is being removed because the scene object is being deleted . This will prevent spurious updates to the client .