1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Di: 20 Mai 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum

    Loop on PlayMusic

    • Blayfix
    • 28. März 2017 um 17:10
    • Geschlossen
    • Erledigt
    • Blayfix
      Frischling
      Reaktionen
      5
      Trophäen
      9
      Beiträge
      18
      • 28. März 2017 um 17:10
      • #1

      Hello I do not speak very good English, excuse me for my bad writing.

      As said in the title, I try to make a loop of my music on my waiting menu (as long as the player does not press a key, the player remains on the menu). Here are my files:


      Code
      scriptName "fn_startCinematicCam";
      #define __filename "fn_startCinematicCam.sqf"
      
      // Close all dialogs
      closeDialog 0;
      
      // Create cam
      introcam_object = "camera" camCreate (getPos player);
      introcam_object cameraEffect ["Internal", "Back"];
      introcam_object camSetFOV .65;
      introcam_object camSetFocus [2, 1];
      introcam_object camCommit 0;
      
      //[] spawn {sleep 0.1;showCinemaBorder false};
      
      // Let main script init wait until the player continued
      introcam_continue = false;
      
      // Display status bar
      9500 cutRsc["dialog_introcam_status","PLAIN"];
      
      if (getNumber(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Info" >> "music") == 1) then {
          0 fadeMusic (getNumber(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Info" >> "musicVolume"));
          playMusic (getText(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Info" >> "musicName"));
          0 fadeSound 0;
      };
      
      // Load first and start the loop
      introcam_scripthandle = [] spawn {
          _time = getNumber(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Info" >> "secondsPerCam");
          _firstData = (getArray(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Positions" >> "data")) select 0;
      
          
          9501 cutRsc["dialog_introcam_blackin","PLAIN"];
      
          
          while {true} do {
              // Load new position
              _newData = [];
              if ((getNumber(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Info" >> "selectRandom")) == 1) then {
                  _newData = (getArray(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Positions" >> "data")) call BIS_fnc_selectRandom;
              } else {
                  if (isNil "introcam_lastindex") then {
                      introcam_lastindex = -1;
                  };
      
                  introcam_lastindex = introcam_lastindex + 1;
                  if (isNil {(getArray(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Positions" >> "data")) select introcam_lastindex}) then {
                      introcam_lastindex = 0;
                  };
      
                  _newData = (getArray(MissionconfigFile >> (format ["IntroCam_%1", worldName]) >> "Positions" >> "data")) select introcam_lastindex;
              };
      
              introcam_object camSetPos (_newData select 0);
              introcam_object camSetTarget (_newData select 1);
              introcam_object camPreparePos (_newData select 2);
              introcam_object camPrepareTarget (_newData select 3);
              introcam_object camsetFocus [(_newData select 4),0.7];
              introcam_object camCommit 0;
              //showCinemaBorder false;
              introcam_object camCommitPrepared (_time);
              sleep (_time - 4);
              9501 cutRsc["dialog_introcam_transition","PLAIN"];
              sleep 4;
          };
      };
      Alles anzeigen

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™