aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorPixelTomsen2012-11-05 19:16:46 +0100
committerDiva Canto2012-11-09 14:31:56 -0800
commit64c80aec644b2fede1b08ad360f54a658d4849cb (patch)
treec2ebca2d47c7887b06271951fbd27581846d2f62 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentmarking IRegionModule interface as obsolete via System.ObsoleteAttribute, int... (diff)
downloadopensim-SC_OLD-64c80aec644b2fede1b08ad360f54a658d4849cb.zip
opensim-SC_OLD-64c80aec644b2fede1b08ad360f54a658d4849cb.tar.gz
opensim-SC_OLD-64c80aec644b2fede1b08ad360f54a658d4849cb.tar.bz2
opensim-SC_OLD-64c80aec644b2fede1b08ad360f54a658d4849cb.tar.xz
llSetLinkCamera implementation
wiki: http://wiki.secondlife.com/wiki/LlSetLinkCamera mantis: http://opensimulator.org/mantis/view.php?id=6397
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index be030af..acf4d8c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6637,6 +6637,36 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6637 m_host.SetCameraAtOffset(offset); 6637 m_host.SetCameraAtOffset(offset);
6638 } 6638 }
6639 6639
6640 public void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at)
6641 {
6642 m_host.AddScriptLPS(1);
6643
6644 if (link == ScriptBaseClass.LINK_SET ||
6645 link == ScriptBaseClass.LINK_ALL_CHILDREN ||
6646 link == ScriptBaseClass.LINK_ALL_OTHERS) return;
6647
6648 SceneObjectPart part = null;
6649
6650 switch (link)
6651 {
6652 case ScriptBaseClass.LINK_ROOT:
6653 part = m_host.ParentGroup.RootPart;
6654 break;
6655 case ScriptBaseClass.LINK_THIS:
6656 part = m_host;
6657 break;
6658 default:
6659 part = m_host.ParentGroup.GetLinkNumPart(link);
6660 break;
6661 }
6662
6663 if (null != part)
6664 {
6665 part.SetCameraEyeOffset(eye);
6666 part.SetCameraAtOffset(at);
6667 }
6668 }
6669
6640 public LSL_String llDumpList2String(LSL_List src, string seperator) 6670 public LSL_String llDumpList2String(LSL_List src, string seperator)
6641 { 6671 {
6642 m_host.AddScriptLPS(1); 6672 m_host.AddScriptLPS(1);