I have got a sound called 'battleambience' in my sound folder of my mission, i want it to play looping constatly everywhere on the map.i have found a script but dont know how to use it.
-this is my description
class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {battleambience, battleabience2, Allah, fire, wind};
// Definition for each sound
class battleambience
{
name = "battleambience"; // Name for mission editor
sound[] = {\sound\battleambience.ogg, db + 0, 1.0};
titles[] = {0, ""};
};
class battleabience2
{
name = "battleabience2"; // Name for mission editor
sound[] = {\sound\battleabience2.ogg, db + 0, 1.0};
titles[] = {0, ""};
};
class Allah
{
name = "Allah"; // Name for mission editor
sound[] = {\sound\Allah.ogg, db + 0, 1.0};
titles[] = {0, ""};
};
class fire
{
name = "fire"; // Name for mission editor
sound[] = {\sound\fire.ogg, db + 0, 1.0};
titles[] = {0, ""};
};
class wind
{
name = "wind"; // Name for mission editor
sound[] = {\sound\wind.ogg, db + 0, 1.0};
titles[] = {0, ""};
};
};
-this is the script
_i = 0
#loop
_i = _i + 1
playmusic "battleambience"
~15 - the length of the song
? (_i <= 5): goto "end"
goto "loop"
#end
ForceEnd
what do i do? ty