How do I add sound to an animation?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

How do I add sound to an animation?

Post by SkinnyODST »

I made a take off animation for the rep LAAT Gunship and I am really happy with it, but it`s kind of boring as there`s no sound. I want it to have 2 sounds, one for when it takes off and one for when it fly's away. If you could help me out with it that would be AWESOME.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: How do I add sound to an animation?

Post by Anakin »

take a look at the odf file. i'm sure there will be something like takeoffsound
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How do I add sound to an animation?

Post by AQT »

Flyer-related sound parameters aren't going to work with ZE-animated props. The best way to go about doing this is to play the sound via lua using the function ScriptCB_SndPlaySound. You might want to synchronize a timer with your animation so that the sound plays at the right moment.
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Re: How do I add sound to an animation?

Post by SkinnyODST »

AQT wrote:Flyer-related sound parameters aren't going to work with ZE-animated props. The best way to go about doing this is to play the sound via lua using the function ScriptCB_SndPlaySound. You might want to synchronize a timer with your animation so that the sound plays at the right moment.
Ok, I hope i`m not being annoying but how would I go about doing that? I`ve never dealt with this kind of stuff
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How do I add sound to an animation?

Post by AQT »

You learn new things by starting out with the basics and gradually combining the different concepts so that they achieve the effect you want. In this case, you want to create a timer that, once elapses, plays a custom takeoff sound at the same exact moment your ship prop takes off in your custom animation.
When looking over the FAQ topic (which I recommend you bookmark or something), use the Ctrl + F key combination to search for the key words to the topics with which you need help.
Post Reply