thx for the reply, i tried it, but still no sound
_unit = _this select 0
#check
~0.1
?(alive _unit):goto"check"
_rnd = (random 10)
?(_rnd < 10):_soundname = "s1"
?(_rnd < 9):_soundname = "s2"
?(_rnd < 8):_soundname = "s3"
?(_rnd < 7):_soundname = "s4"
?(_rnd < 6):_soundname = "s5"
?(_rnd < 5):_soundname = "s6"
?(_rnd < 4):_soundname = "s7"
?(_rnd < 3):_soundname = "s8"
?(_rnd < 2):_soundname = "s9"
?(_rnd < 1):_soundname = "s10"
_unit say _soundname
hint "done"
exit
it goes through to the hint, but no sound, they are all defined in the config
onLoadMission = "Loading";
class CfgSounds
{
sounds[] =
{
s1, s2, s3, s4, s5, s6, s7, s8, s9, s10
};
class s1
{
name = "s1";
sound[] = {"s1.ogg", 1, 1.0};
titles[] = { };
};
class s2
{
name = "s2";
sound[] = {"s2.ogg", 1, 1.0};
titles[] = { };
};
class s3
{
name = "s3";
sound[] = {"s3.ogg", 1, 1.0};
titles[] = { };
};
class s4
{
name = "s4";
sound[] = {"s4.ogg", 1, 1.0};
titles[] = { };
};
class s5
{
name = "s5";
sound[] = {"s5.ogg", 1, 1.0};
titles[] = { };
};
class s6
{
name = "s6";
sound[] = {"s6.ogg", 1, 1.0};
titles[] = { };
};
class s7
{
name = "s7";
sound[] = {"s7.ogg", 1, 1.0};
titles[] = { };
};
class s8
{
name = "s8";
sound[] = {"s8.ogg", 1, 1.0};
titles[] = { };
};
class s9
{
name = "s9";
sound[] = {"s9.ogg", 1, 1.0};
titles[] = { };
};
class s10
{
name = "s10";
sound[] = {"s10.ogg", 1, 1.0};
titles[] = { };
};
};
any ideas?