Jump to content

MaximF_

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Posts posted by MaximF_


  1. 3 hours ago, major-stiffy said:

     

    Remove the \ in front of sound.

    Ex.

    
    class CfgSounds {
    	sounds[] = {};
    	class serverambient {
    		name="serverambient";
    		sound[]={sounds\serverambient.ogg, 20, 1, 20}; // filename, volume, pitch, distance
    		titles[] = {};
    	};	

    This works for me:

    [serverambient, ["serverambient", 500, 1]] remoteExec ["say3D"];

    I use it without the \ I was just seing if it worked liked that and both versions still don't. Same error. Type Object, expected nothing.


  2. Recently the same scripts I use for all of my normal user-made missions cfg sound script have suddenly stopped working to a bug. Every time I use playSound or say3D I get this error: Type Object, expected nothing. Yet I can play the same sound with no problems when using the effects section in a trigger. This makes absolutely no sense as this exact script works on other missions I have made but for some reason not any of my recent ones. I seriously want to get a gun and shoot my computer 35 times this shit is so frustrating. Here is my desc.ext:
     

    class CfgMusic
    {
        sounds[] = {cutscenemusic};
        class music
        {
            name = "cutscenemusic";
            sound[] = {"sound\cutscenemusic.ogg", db+1, 1.0};
            titles[] = {0, ""};
        };
    };

    class CfgSounds
    {
     sounds[] = {};
     class banter1
     {
      name = "banter1";
      sound[] = {"\sound\banter1.ogg", 100,1};
      titles[] = {};
     };
     class scline1
     {
      name = "scline1";
      sound[] = {"\sound\scline1.ogg", 100,1};
      titles[] = {};
     };
     class line3
     {
      name = "line3";
      sound[] = {"\sound\line3.ogg", 100,1};
      titles[] = {};
     };
     class banter4
     {
      name = "banter4";
      sound[] = {"\sound\banter4.ogg", 700,1};
      titles[] = {};
     };
     class banter5
     {
      name = "banter5";
      sound[] = {"\sound\banter5.ogg", 1,1};
      titles[] = {};
     };
    };

    author="Maxim";
    OnLoadName = "The Last War";
    OnLoadMission = "This will be the end...";
    loadScreen = "images\splash1.jpg"


    And beleive me, all of my aspects are correct like my sound folder is not spelt wrong and so on.

×