aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-17 23:14:19 +0000
committerAdam Frisby2007-07-17 23:14:19 +0000
commit9fc72755ce137814d27edeb55e8c82c0124815ca (patch)
tree4edc564d3efc0335019646a0ab50034cef384be5 /OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs
parent* Working more on the Interpreted Script API (for use in scripts which have t... (diff)
downloadopensim-SC_OLD-9fc72755ce137814d27edeb55e8c82c0124815ca.zip
opensim-SC_OLD-9fc72755ce137814d27edeb55e8c82c0124815ca.tar.gz
opensim-SC_OLD-9fc72755ce137814d27edeb55e8c82c0124815ca.tar.bz2
opensim-SC_OLD-9fc72755ce137814d27edeb55e8c82c0124815ca.tar.xz
* More LSL related fun
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