aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-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