Jump to content
Sign in to follow this  
Marve_XT

siren sound timing

Recommended Posts

hey guys

i have been using the siren script & it works so far well , lately i wanted to replace it with a 1 minute audio Track , the problem is it overlaps like crazy like playing a 100 tracks at same time ,, i understand that since config & script is designed for a the original 4 secs audio track (the police sirene) but there must be something that i can edit to make it play once at a time ... any one have any idea ? ;);)

here is my script :

if (isServer) then {

private ["_auto"];

_auto = _this select 0;

while {alive _auto} do {

waitUntil {(_auto getvariable ["AUDIO", false])};

_auto say ["USA_siren",1,1];

sleep 3.9;};

}

and here is my config :

class CfgSounds {

sounds[] = {"USA_siren", "USA_horn", "USA_yelp"};

class Usa_siren {

name = "Usa_siren";

sound[] = {"\ir_all\sirena\Usa_siren.ogg", 1, 1.0, 250};

titles[] = {};

};

Edited by marven_2099

Share this post


Link to post
Share on other sites
change sleep to 60? i think it is in seconds.

thx so much , it works great , but the BIG problem now is i Cant turn it OFF :(

i have to wait till it fully finished :(

Share this post


Link to post
Share on other sites

could you turn it off before? if that is so then you need to chop your csound into diferent parts as you can't stop the sound once it is playing i think.

Share this post


Link to post
Share on other sites
could you turn it off before? if that is so then you need to chop your csound into diferent parts as you can't stop the sound once it is playing i think.

yes it was working before , anyway i believe that wont come in handy , what should have been used is a jukebox MOD (only working in arma 2) to run music while u driving, since my track was a long warning message like the ones used by cops in real life :D

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  

×