Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llGetCameraRot C# (CSharp) Метод

llGetCameraRot() публичный Метод

public llGetCameraRot ( ) : Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Quaternion
Результат Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Quaternion
        public LSL_Rotation llGetCameraRot()
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return new LSL_Rotation();

            UUID invItemID = InventorySelf();
            if (invItemID == UUID.Zero)
                return new LSL_Rotation();

            lock (m_host.TaskInventory)
            {
                if (m_host.TaskInventory[invItemID].PermsGranter == UUID.Zero)
                    return new LSL_Rotation();

                if ((m_host.TaskInventory[invItemID].PermsMask & ScriptBaseClass.PERMISSION_TRACK_CAMERA) == 0)
                {
                    ShoutError("No permissions to track the camera");
                    return new LSL_Rotation();
                }
            }

            IScenePresence presence = World.GetScenePresence(m_host.OwnerID);
            if (presence != null)
            {
                return new LSL_Rotation(presence.CameraRotation.X, presence.CameraRotation.Y, presence.CameraRotation.Z, presence.CameraRotation.W);
            }

            return new LSL_Rotation();
        }
LSL_Api