Jump to content
Sign in to follow this  
michelstreet

Sound stops when ai died? is there a way to get a trigger for that.

Recommended Posts

Hello peoplo

I have make a mission where a dictator talk to his people in Zarghabad. i have make a Playsound trigger from a real karzai speech in Afghanistan. after a while a suicider explode and the dictator died. only i have a trigger play further when he is died. is there a script or something when the dictator died the sounds stops?

thanks, Michel

Share this post


Link to post
Share on other sites

how do i set up the trigger.

i have names the trigger karzai with the playsound script

and then a other trigger with !alive Karzai and deletevehicle karzai;

when i shoot the dictator dead the music play to his ends?

what do i wrong

---------- Post added at 04:54 PM ---------- Previous post was at 04:44 PM ----------

hmmm i see it.

i have make a .ogg file with the speech. and with the trigger Playsound "song" i start the music. when i shoot the dictator dead the music dont stop

if i remove the playsound and place a original music sound from arma the sound stops when i hit the dictator.

how can i set up the trigger that my own .ogg file stops?

Share this post


Link to post
Share on other sites

Here's a quick demo mission showing this.

You can't have the trigger and the unit with the same name, so rename one. The other trigger would be:

Condition = !alive fdr

OnAct = deleteVehicle trg_speech

You delete the trigger that's making the sound, not the unit. :)

Also you probably don't need to use playSound. Check the Effects for the trigger to see your custom sound there.

With this as your description.ext:

class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {speech};

// Definition for each sound
class speech
{
	name = "speech"; // Name for mission editor
	sound[] = {\sound\speech.ogg, db + 0, 1.0};
	titles[] = {0, ""};
};
};

You'll notice you now have a "speech" entry at the bottom of your Voice Effect option of your triggers:

speechv.jpg

Edited by kylania

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  

×