diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 26 |
1 files changed, 24 insertions, 2 deletions
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 | |||
97 | } | 97 | } |
98 | 98 | ||
99 | /// <summary> | 99 | /// <summary> |
100 | /// Start a script in this prim | 100 | /// Start a script which is in this prim's inventory. |
101 | /// </summary> | 101 | /// </summary> |
102 | /// <param name="item"></param> | 102 | /// <param name="item"></param> |
103 | /// <returns>true if script asset was found, false if it wasn't</returns> | 103 | /// <returns>true if script asset was found, false if it wasn't</returns> |
@@ -126,7 +126,29 @@ namespace OpenSim.Region.Environment.Scenes | |||
126 | } | 126 | } |
127 | 127 | ||
128 | return false; | 128 | return false; |
129 | } | 129 | } |
130 | |||
131 | /// <summary> | ||
132 | /// Start a script which is in this prim's inventory. | ||
133 | /// </summary> | ||
134 | /// <param name="itemId"> | ||
135 | /// A <see cref="LLUUID"/> | ||
136 | /// </param> | ||
137 | public void StartScript(LLUUID itemId) | ||
138 | { | ||
139 | if (m_taskInventory.ContainsKey(itemId)) | ||
140 | { | ||
141 | StartScript(m_taskInventory[itemId]); | ||
142 | } | ||
143 | else | ||
144 | { | ||
145 | MainLog.Instance.Error( | ||
146 | "PRIMINVENTORY", | ||
147 | "Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2}", | ||
148 | itemId, Name, UUID); | ||
149 | } | ||
150 | |||
151 | } | ||
130 | 152 | ||
131 | /// <summary> | 153 | /// <summary> |
132 | /// Add an item to this prim's inventory. | 154 | /// Add an item to this prim's inventory. |