aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorDahlia Trimble2008-10-15 04:42:28 +0000
committerDahlia Trimble2008-10-15 04:42:28 +0000
commit901acddbdd38c441426f43cbfa78c422a19cec17 (patch)
tree32303dcebf039c840ebae0430bc57e0aa895f5ef /OpenSim/Region/ScriptEngine/Shared/Api
parent* Send an avatar update to other clients when an avatar rotates, as well as w... (diff)
downloadopensim-SC_OLD-901acddbdd38c441426f43cbfa78c422a19cec17.zip
opensim-SC_OLD-901acddbdd38c441426f43cbfa78c422a19cec17.tar.gz
opensim-SC_OLD-901acddbdd38c441426f43cbfa78c422a19cec17.tar.bz2
opensim-SC_OLD-901acddbdd38c441426f43cbfa78c422a19cec17.tar.xz
Thanks to M. Igarashi and nlin for a patch that implements llGetCameraRot().
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 7993d95..826324f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7531,7 +7531,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7531 public LSL_Rotation llGetCameraRot() 7531 public LSL_Rotation llGetCameraRot()
7532 { 7532 {
7533 m_host.AddScriptLPS(1); 7533 m_host.AddScriptLPS(1);
7534 NotImplemented("llGetCameraRot"); 7534 UUID invItemID=InventorySelf();
7535 if (invItemID == UUID.Zero)
7536 return new LSL_Rotation();
7537 if (m_host.TaskInventory[invItemID].PermsGranter == UUID.Zero)
7538 return new LSL_Rotation();
7539 if ((m_host.TaskInventory[invItemID].PermsMask & ScriptBaseClass.PERMISSION_TRACK_CAMERA) == 0)
7540 {
7541 ShoutError("No permissions to track the camera");
7542 return new LSL_Rotation();
7543 }
7544 ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
7545 if (presence != null)
7546 {
7547 return new LSL_Rotation(presence.CameraRotation.X, presence.CameraRotation.Y, presence.CameraRotation.Z, presence.CameraRotation.W);
7548 }
7535 return new LSL_Rotation(); 7549 return new LSL_Rotation();
7536 } 7550 }
7537 7551