aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorHomer Horwitz2008-10-01 21:30:48 +0000
committerHomer Horwitz2008-10-01 21:30:48 +0000
commitb1c1de2fbeeaba34f2daa96a34a14cc9cb4effa8 (patch)
treebf69f8cbf479207758b384f2ccc371996f4ea1c3 /OpenSim/Region/ScriptEngine/Shared/Api
parentstick a TODO in here about land tests, which really can't be done in (diff)
downloadopensim-SC_OLD-b1c1de2fbeeaba34f2daa96a34a14cc9cb4effa8.zip
opensim-SC_OLD-b1c1de2fbeeaba34f2daa96a34a14cc9cb4effa8.tar.gz
opensim-SC_OLD-b1c1de2fbeeaba34f2daa96a34a14cc9cb4effa8.tar.bz2
opensim-SC_OLD-b1c1de2fbeeaba34f2daa96a34a14cc9cb4effa8.tar.xz
- Added SendScriptTeleportRequest to IClientView and classes implementing it.
- Implemented llMapDestination.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index c2b16cf..39e24b4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7624,10 +7624,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7624 } 7624 }
7625 } 7625 }
7626 7626
7627 public void llMapDestination(string simname, LSL_Vector pos, LSL_Vector look_at) 7627 public void llMapDestination(string simname, LSL_Vector pos, LSL_Vector lookAt)
7628 { 7628 {
7629 m_host.AddScriptLPS(1); 7629 m_host.AddScriptLPS(1);
7630 NotImplemented("llMapDestination"); 7630 DetectParams d = m_ScriptEngine.GetDetectParams(m_itemID, 0);
7631 if (d == null) return; // only works on the first detected avatar
7632
7633 ScenePresence avatar = World.GetScenePresence(d.Key);
7634 if (avatar != null)
7635 {
7636 avatar.ControllingClient.SendScriptTeleportRequest(m_host.Name, simname,
7637 new Vector3((float)pos.x, (float)pos.y, (float)pos.z),
7638 new Vector3((float)lookAt.x, (float)lookAt.y, (float)lookAt.z));
7639 }
7631 // ScriptSleep(1000); 7640 // ScriptSleep(1000);
7632 } 7641 }
7633 7642