From 9fc72755ce137814d27edeb55e8c82c0124815ca Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Tue, 17 Jul 2007 23:14:19 +0000
Subject: * More LSL related fun
---
.../Environment/Scenes/scripting/ScriptInterpretedAPI.cs | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs')
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
/// The specific member being 'occupied' by the script
public ScriptInterpretedAPI(Scene world, libsecondlife.LLUUID member)
{
- m_object = world;
+ m_scene = world;
m_object = member;
}
@@ -76,7 +76,7 @@ namespace OpenSim.Region.Scripting
int parcelID = 0;
Vector myPosition = Task.Pos;
- Land myParcel = World.LandManager.getLandObject(myPosition.X, myPosition.Y, myPosition.Z);
+ Land myParcel = World.LandManager.getLandObject(myPosition.X, myPosition.Y);
OpenSim.Framework.Console.MainLog.Instance.Warn("Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)");
return;
@@ -135,6 +135,15 @@ namespace OpenSim.Region.Scripting
[Obsolete("Unimplemented")]
public Key osAvatarOnSitTarget()
{
+ //TODO: Follow this as Children is chanced to be of type entity to support ScenePresences
+ foreach (KeyValuePair Child in Task.Children)
+ {
+ if (Child.Value is ScenePresence)
+ {
+ return Child.Value.uuid;
+ }
+ }
+
return Key.Zero;
}
--
cgit v1.1