Arma 3
type object, expected nothing when trying to play sound
I make a lot of user-made scenarios, but I have never encountered this...
I used the exact same description.ext as my last mission and sound folder yet in-game when I do the same and try to play a sound through a trigger (playSound "cutscenemusic";) it gives me the error: type object, expected nothing.

This is very frustrating and limits my progress when making my story. please help!
< >
Visualizzazione di 1-2 commenti su 2
class CfgSounds
{
sounds[] = {};
class banter1
{
name = "banter1";
sound[] = {"sound\banter1.ogg", 700,1};
titles[] = {};
};
class cutscenemusic
{
name = "cutscenemusic";
sound[] = {"sound\cutscenemusic.ogg", 700,1};
titles[] = {};
};
};
Messaggio originale di Spidy:
  1. Define your sound in your description[community.bistudio.com]
    class CfgSounds { sounds[] = {banter1, cutscenemusic}; class banter1 { // how the sound is referred name = "banter1"; // filename, volume, pitch, distance (optional) sound[] = {"sound\banter1.ogg", 700, 1, 1}; // subtitle delay in seconds, subtitle text titles[] = {1, ""}; }; class cutscenemusic { name = "cutscenemusic"; sound[] = {"sound\cutscenemusic.ogg", 700,1,1}; titles[] = {}; }; };
  2. Copy and paste your sound files as ogg into your mission subfolder named "sound".

  3. If you use the local command playSound[community.bistudio.com] your Trigger onActivation is:
    playSound "cutscenemusic";

By the way:
Your cfgSound volume definition of 700 is a little bit... loud?!

I am still having the same issue. Furthermore, I switched cutscenemusic from cfgsounds to cfgMusic and another weird bug has occurred. inside of triggers the music will play in the drop-down menus at the bottom, but will instantly cut out 30 seconds in. When I try to play it through code: (playMusic "cutscenemusic";). I do not get an error but no sound will play. I am really getting stressed with this ♥♥♥♥. Also when I play it in the Debug Consol it says this: NOID <no shape>

Here is my new desc.:
-----------------------------------------------------------------------------------------------
class CfgMusic
{
sounds[] = {cutscenemusic};
class music
{
name = "cutscenemusic";
sound[] = {"sound\cutscenemusic.ogg", db+1, 1.0};
titles[] = {0, ""};
};
};

class CfgSounds
{
sounds[] = {banter1, cutscenemusic};

class banter1
{ // how the sound is referred
name = "banter1";
// filename, volume, pitch, distance (optional)
sound[] = {"sound\banter1.ogg", 100, 1, 1};
// subtitle delay in seconds, subtitle text
titles[] = {1, ""};
};

class cutscenemusic
{
name = "cutscenemusic";
sound[] = {"sound\cutscenemusic.ogg", 100,1,1};
titles[] = {};
};
};
-----------------------------------------------------------------------------------------------
And here is my Init.sqf:

playMusic "cutscenemusic";

cutText ["", "BLACK FADED", 11];

sleep 11;

disableUserInput true;

nul = [1] execVM "Al_intro\intro.sqf";

[0,0,false] spawn BIS_fnc_cinemaBorder;

sleep 12;

["<t color='#ff0000' size = '1'><br />THE LAST BATTLE</t>",-1,-1,4,1,0,789] spawn BIS_fnc_dynamicText;

sleep 6;

disableUserInput false;

[1,1,false] spawn BIS_fnc_cinemaBorder;
Ultima modifica da Maxim; 21 gen 2021, ore 20:33
< >
Visualizzazione di 1-2 commenti su 2
Per pagina: 1530 50

Data di pubblicazione: 21 gen 2021, ore 16:35
Messaggi: 2