Jump to content

Recommended Posts

Hello there.

Im looking for help to provide good soundtrack for soldiers on my MP mission. I mean, on my mission there is a 3 groups. For each there is a different music provided by trigger, but as I tried, every trigger get music for everyone at server, not for just group that got in, so by that, it ruining my idea for soundtrack. Can it be changed ? Thanks for any help 🙂

Share this post


Link to post
Share on other sites

As a not that good mision maker I kinda dont know what are you asking for. Im just gonna type, what I put in description.

 

Quote

code

class CfgMusic
{
tracks[]={};

class Music1
{
name = "Music1";
sound[] = {"\sound\HP.ogg", db+0, 1.0};
};

class Music2
{
name = "Music2";
sound[] = {"\sound\DK.ogg", db+0, 1.0};
};

class Music3
{
name = "Music3";
sound[] = {"\sound\IQ.ogg", db+0, 1.0};
};


class Music4
{
name = "Music4";
sound[] = {"\sound\CK.ogg", db+0, 1.0};
};


};

 

 

 

 

 

And in trigger I put playmusic"track";

Share this post


Link to post
Share on other sites

You have to name the leaders of the groups with variable names like leader1, leader2 ...

 

In your trigger you write:

 

_grp = group player;

If (_grp isEqualTo group leader1) then {playMusic "track1";};

If (_grp isEqualTo group leader2) then {playMusic "track2";};

If (_grp isEqualTo group leader3) then {playMusic "track3";};

Share this post


Link to post
Share on other sites

Im gonna check this out. My friend also gave me this one,

 Condition:
p1 in thislist or p2 in thislist or p3 in thislist or p3 in thislist;
Activation
playmusic "Rockandroll"

 

 

Will it work, if your idea would not ?

Share this post


Link to post
Share on other sites

Do you want all three groups to hear the same music (music depending on which group triggers it) or each group to hear their own music when triggered?

 

 

 

Share this post


Link to post
Share on other sites

I want to every group have their own music. For example, one team is supposed to be typical Raid, so I would like to get in some atmospheric, by adding suitable music, while other team is supposed to get stealth, so that team need to get another type of background music.

Share this post


Link to post
Share on other sites

I will check this on server today. I hope it works, but it looks like its gonna work. Im gonna reply later, after check with your idea. Thanks ;D

Share this post


Link to post
Share on other sites

I think its working. If leader is kinda "trigger" for his own team I think its goin good. Thanks mate. I really appreciate. Without you, my soundtrack would not work, as I wished to.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×