Jump to content
Sign in to follow this  
Roe-31stMEU-

Adding a sound + a lil more - Help

Recommended Posts

Ok, so what I was thinking, was making it so that when an enemy anti-aircraft vehicle is able to see... or (even better) locked up an aircraft that you and your group are in, it will play like a locked up tone (preferably looped) until you are unlocked or unseen. I am a complete newb to scripting, so where do I start? I have the tone sound I need, i can convert that to .ogg, I am just lost as to what kind of scripting I need. Any help will be appreciated. Thanks

Share this post


Link to post
Share on other sites

within your description.ext

respawn = GROUP;
respawnDelay = 3;
disableAI = True;
class Header
{
gameType = Coop;
minPlayers = 1;
maxPlayers = 5;
};
class CfgMusic
{
tracks[]= { [color="Red"]Track1,Track2[/color] };
class [color="Red"]Track1[/color]
{
name = "[color="Red"][color="Red"]Track1[/color][/color]";
sound[] = {\music\[color="Red"]track1[/color].ogg, db+0, 1.0};
titles[] = { }; };
};

within your mission create a folder and call it music

convert your sound to .ogg and give it a name : track1

place the .ogg into the music folder.

create a trigger and on activation

playMusic "track1";

noob as well, probably a better way.

as far as what the activation should be for the trigger(s) regarding your AA, gotta think about that.

Share this post


Link to post
Share on other sites

Thanks, I had actually already gotten it able to play in-game and it all works fine, I just need to figure out the crazy scripting part where (and this will totally NOT be in any scripting language.... unless I created it myself lol)

If Opfor Anti Aircraft Vehicle

Locks/Fires on Blufor Air Vehicle

Play track1

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  

×