Jump to content
Sign in to follow this  
Double Doppler

Trigger to play ogg in mission files?

Recommended Posts

Hello, I have been trying to make a trigger play an ogg from the mission file to no success.

Its for a MP mission, that (preferably runs vanilla files)

The key is, that the ogg has to be in the mission file, as I don't want to use mods.

Can anyone point me in the right direction please?

Share this post


Link to post
Share on other sites

Hi there...

Only thing you need to do is to define the OGG file within your Description.ext.

1. Create a description.ext file (if you dont have one) in the mission folder.

2. Add this to it:

class CfgSounds {
sounds[] = {};

class [color="RoyalBlue"]NameOfTheSound[/color] {
	name="[color="RoyalBlue"]NameOfTheSound[/color]";
	sound[] = {"[color="RoyalBlue"]Sounds\Filename.ogg[/color]", db+1, 1.0};
	titles[]={};
};
};

3. Now reload your mission in the editor... and the sound shows up at triggers. Or use instead the playSound command.

This has nothing to do with mods. You can add audio, images and (since PMC) also videos to your mission.

Search for Mr Murrays Editing Guide. (It's for for sqs mostly, but basics like this are very well described there)

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  

×