Jump to content
Sign in to follow this  
Psychopomp7781

Help with music...

Recommended Posts

Okay, listen, I've read the tutorials, and I swear I've done EVERYTHING correctly... here is what I have in my description.ext file:

class CfgMusic

{

tracks[]={war};

class war

{

name = "";

sound[] = {war.ogg, db+50, 1.0};

};

};

Okay, so that is in my description.ext. Now, in my mission I placed a trigger that states if West is present it should trigger the song...

Condition: This

On Activation: playMusic "war"

Okay... what am I doing wrong, because this isn't working.

Another quick question... I have to Shilka's in which the west is to destroy. To have it click off as an objective would this work?

Trigger 1:

Condition: (not(aliveshilka1))

Trigger 2:

Condition: (not(aliveshilka2))

Now, could I make a third trigger that would somehow have those click off as an objective? Maybe syncronize it? Any help is appreciated! Thanks to everyone who takes time to help us all!! biggrin.gif

Pomp

Share this post


Link to post
Share on other sites

The first one I cant answer, the second one I can point an an error on:

(not(aliveshilka1)) is wrong, it needs spaces like (not(alive shilka1)). Or you could just use "!alive unit".

Though I dont know much about the objectives, so Im not really helpfull biggrin.gif

Share this post


Link to post
Share on other sites

Try to put this in your .ext file:

class CfgMusic

{

tracks[]=

{

War

};

class War

{

name = "War";

sound[] = {\music\War.ogg, db+0, 1.0};

};

}

Share this post


Link to post
Share on other sites

For the shilka dead triggers, in the activation field of the trigger 1 type:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

"0" ObjStatus "DONE"

<span id='postcolor'>

for trigger2 type:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

"1" ObjStatus "DONE"

<span id='postcolor'>

An the objectives will be checked off.

As for the condition fields of the triggers, make sure it's typed like this:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

!(alive shilka1)

<span id='postcolor'>

! is the same as NOT. Same for shilka2, make sure theres a space between alive and shilka1.

You can also use

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

!(canmove shilka)

<span id='postcolor'>

That way, the crew will not have to be killed as well to activate the trigger (If there is a crew).

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
Sign in to follow this  

×