Jump to content

Recommended Posts

Posted (edited)

So I like adding a bit of immersion by adding a message/sound like "Splash one!" or "Good kill!" with one of my custom audio clips I sampled from youtube videos or flight recordings.

 

But, it gets a bit tedious to set a trigger FOR EVERY SINGLE ENEMY:

 

Unit Dead - [uNIT NAME] - PLAY SOUND TO ALL , MESSAGE TO ALL/COALITION

 

Is there a way I can just get a trigger to activate when you kill any enemy? I can pretty much set it up so I can randomize the sounds/messages.

 

Any insight on this would be great, thanks!

Edited by deadlyfishes

"Through The Inferno" - Endless, Dynamic, Open-World Experience for DCS World
Website | Discord | Support TTI on Patreon

 
Posted

Yes, there is. I believe it's connected with the trigger condition "player score more than".

 

I'm not in DCS right now, but if you generate a fast mission and open the generated mission in the mission editor, you will see how they set it up with different messages triggers for different scores.

Posted

Either an event handler via script or with a continuous trigger should do the trick. You can create a continuous trigger with an "On death" event selected. The conditions could be simply "time more than whatever" and then you can either set a flag to true kicking off another trigger to play the audio, so it can pick the sound at random, or just play the sound file right there.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
Yes, there is. I believe it's connected with the trigger condition "player score more than".

 

I'm not in DCS right now, but if you generate a fast mission and open the generated mission in the mission editor, you will see how they set it up with different messages triggers for different scores.

 

The issue with that is that different planes have different values when you kill them.

 

So if an Su-27 is worth 15 points, the whole system can get out of whack if each increment is by +10 points

"Through The Inferno" - Endless, Dynamic, Open-World Experience for DCS World
Website | Discord | Support TTI on Patreon

 
  • 5 months later...
Posted
Either an event handler via script or with a continuous trigger should do the trick. You can create a continuous trigger with an "On death" event selected. The conditions could be simply "time more than whatever" and then you can either set a flag to true kicking off another trigger to play the audio, so it can pick the sound at random, or just play the sound file right there.

 

Thanks for this, it worked in my most recent missions, but it's kind of obnoxious for it to get triggered when even BLUE coalition is killed and you get a kill message...

 

Do you know what lua predicate for condition I could do to get it to only trigger for RED?

"Through The Inferno" - Endless, Dynamic, Open-World Experience for DCS World
Website | Discord | Support TTI on Patreon

 
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...