Jump to content
Sign in to follow this  
Ranwer135

How to link a sound file to an addAction script for a car?

Recommended Posts

Hello all. I'm working on a Seattle Life Mission (based on the Chernarus Life setting) and was wondering how to link a sound file (EXAMPLE: siren.ogg) to an addAction script for a car? I have seen some cars in the Chernarus Life that has an action to turn the siren on and off and was wondering how to do this. It would be fantastic if theres a script or link to do this. :)

Ranwer

Share this post


Link to post
Share on other sites

First you must add to description.ext all needed lines for class cfgmusic or class cfgsound. Then for example you place siren.ogg in music folder. And in addaction you add script that will play that sound. For example playmusic "siren" (if this is the name of sound). You also should addaction to turn off the siren, its only basic idea. This is how i would do this in SP mission, i don't know if this will work in MP. Prabobly there are better ways to do this. Maybe you will can find a working script for that.

Ps: i think such a question should be in mission editing part of forum.

Edited by tom3kb

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  

×