From 6b4b041902627d9d16f28847b1db7f369b931006 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 7 Jan 2008 03:02:13 +0000
Subject: Refactor Scene.Inventory.RezScript to use newer script starting code
---
.../Scenes/SceneObjectPart.Inventory.cs | 26 ++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index 5f93986..98cd3af 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -97,7 +97,7 @@ namespace OpenSim.Region.Environment.Scenes
}
///
- /// Start a script in this prim
+ /// Start a script which is in this prim's inventory.
///
///
/// true if script asset was found, false if it wasn't
@@ -126,7 +126,29 @@ namespace OpenSim.Region.Environment.Scenes
}
return false;
- }
+ }
+
+ ///
+ /// Start a script which is in this prim's inventory.
+ ///
+ ///
+ /// A
+ ///
+ public void StartScript(LLUUID itemId)
+ {
+ if (m_taskInventory.ContainsKey(itemId))
+ {
+ StartScript(m_taskInventory[itemId]);
+ }
+ else
+ {
+ MainLog.Instance.Error(
+ "PRIMINVENTORY",
+ "Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2}",
+ itemId, Name, UUID);
+ }
+
+ }
///
/// Add an item to this prim's inventory.
--
cgit v1.1