aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs b/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs
index 5153ed3..982cd65 100644
--- a/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs
+++ b/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs
@@ -51,7 +51,7 @@ namespace OpenSim.Region.Scripting
51 /// <param name="member">The specific member being 'occupied' by the script</param> 51 /// <param name="member">The specific member being 'occupied' by the script</param>
52 public ScriptInterpretedAPI(Scene world, libsecondlife.LLUUID member) 52 public ScriptInterpretedAPI(Scene world, libsecondlife.LLUUID member)
53 { 53 {
54 m_object = world; 54 m_scene = world;
55 m_object = member; 55 m_object = member;
56 } 56 }
57 57
@@ -76,7 +76,7 @@ namespace OpenSim.Region.Scripting
76 int parcelID = 0; 76 int parcelID = 0;
77 77
78 Vector myPosition = Task.Pos; 78 Vector myPosition = Task.Pos;
79 Land myParcel = World.LandManager.getLandObject(myPosition.X, myPosition.Y, myPosition.Z); 79 Land myParcel = World.LandManager.getLandObject(myPosition.X, myPosition.Y);
80 80
81 OpenSim.Framework.Console.MainLog.Instance.Warn("Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)"); 81 OpenSim.Framework.Console.MainLog.Instance.Warn("Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)");
82 return; 82 return;
@@ -135,6 +135,15 @@ namespace OpenSim.Region.Scripting
135 [Obsolete("Unimplemented")] 135 [Obsolete("Unimplemented")]
136 public Key osAvatarOnSitTarget() 136 public Key osAvatarOnSitTarget()
137 { 137 {
138 //TODO: Follow this as Children is chanced to be of type entity to support ScenePresences
139 foreach (KeyValuePair<Key, Primitive> Child in Task.Children)
140 {
141 if (Child.Value is ScenePresence)
142 {
143 return Child.Value.uuid;
144 }
145 }
146
138 return Key.Zero; 147 return Key.Zero;
139 } 148 }
140 149