Sukkaed Posted March 8, 2014 Author Report Share Posted March 8, 2014 Another thing my player base has told me, you can spam siren on and it'll repeat the siren noise over and over making it sound like multiple sirens. Link to comment Share on other sites More sharing options...
FUNsniper Posted March 9, 2014 Report Share Posted March 9, 2014 Quick and simple togglable police sirens and blinking head lights to black SUV and Police Lada :) Add to description.ext right above "class RscLoadingText : RscText" class CfgSounds { sounds[] = {siren}; class siren { name = "siren"; sound[] = {Scripts\sirens\siren.ogg,0.5,1}; titles[] = {}; }; }; Add to fn_selfActions.sqf right above "//Grab Flare" //Sirens _isCopcar = typeOf _vehicle in ["SUV_TK_CIV_EP1","SUV_TK_CIV_EP1_DZE1","SUV_TK_CIV_EP1_DZE2","SUV_TK_CIV_EP1_DZE3","SUV_TK_CIV_EP1_DZE4","LadaLM","LadaLM_DZE1","LadaLM_DZE2","LadaLM_DZE3","LadaLM_DZE4"]; if (_inVehicle and _isCopcar and (driver _vehicle == player)) then { dayz_addsirens = _vehicle; if (s_player_sirens_on < 0) then { s_player_sirens_on = dayz_addsirens addAction ["Siren on","Scripts\sirens\sirens_on.sqf",dayz_addsirens,2,false,true,"",""]; s_player_sirens_off = dayz_addsirens addAction ["Siren off","Scripts\sirens\sirens_off.sqf",dayz_addsirens,2,false,true,"",""]; }; } else { dayz_addsirens removeAction s_player_sirens_on; dayz_addsirens removeAction s_player_sirens_off; s_player_sirens_on = -1; s_player_sirens_off = -1; }; Make "Scripts" folder to your mission file root if you don't have it yet and place "sirens" folder inside. Link to comment Share on other sites More sharing options...
poet Posted March 10, 2014 Report Share Posted March 10, 2014 yes same download is broken Link to comment Share on other sites More sharing options...
Sukkaed Posted March 10, 2014 Author Report Share Posted March 10, 2014 :blink: Upload doesn't work. "Error This upload failed" Link to comment Share on other sites More sharing options...
WGC GeekGarage Posted March 10, 2014 Report Share Posted March 10, 2014 upload it to dropbox and host it there?? Link to comment Share on other sites More sharing options...
Sukkaed Posted March 10, 2014 Author Report Share Posted March 10, 2014 upload it to dropbox and host it there?? Link to comment Share on other sites More sharing options...
LoadingSA Posted March 10, 2014 Report Share Posted March 10, 2014 so should my description.ext look like this? class CfgSounds { sounds[] = {intromusic,siren}; class intromusic { name = "intromusic"; sound[] = {intromusic.ogg,0.9,1}; titles[] = {}; }; class siren { name = "siren"; sound[] = {custom\sirens\siren.ogg,0.5,1}; titles[] = {}; }; Link to comment Share on other sites More sharing options...
Sukkaed Posted March 11, 2014 Author Report Share Posted March 11, 2014 so should my description.ext look like this? Add one more closing bracket at the end like this class CfgSounds { sounds[] = {intromusic,siren}; class intromusic { name = "intromusic"; sound[] = {intromusic.ogg,0.9,1}; titles[] = {}; }; class siren { name = "siren"; sound[] = {custom\sirens\siren.ogg,0.5,1}; titles[] = {}; }; }; Link to comment Share on other sites More sharing options...
poet Posted March 11, 2014 Report Share Posted March 11, 2014 works perfect its to bad we dont have any cars to put it on with working lightbars so u get the red/blue lights. also i have question the siren playes then cuts off then restarts is there away to make it continuous so there isnt a 1-2 sec delay in it restarting. Link to comment Share on other sites More sharing options...
Sukkaed Posted March 12, 2014 Author Report Share Posted March 12, 2014 works perfect its to bad we dont have any cars to put it on with working lightbars so u get the red/blue lights. also i have question the siren playes then cuts off then restarts is there away to make it continuous so there isnt a 1-2 sec delay in it restarting. I have lightbars but they are too bright and inside a car. Would need some work to get those working correctly. I haven't noticed any pause between loops. You can adjust the loop lenght in sirens_on.sqf for "_i" from 1 to 12 do { player action ["lightOn", _vehicle]; sleep 0.2; player action ["lightOff", _vehicle]; sleep 0.2; }; One loop lenght is 12 x that block, so if you change it to "from 1 to 9 do" it will start the next loop 1,2 seconds earlier. Link to comment Share on other sites More sharing options...
LunatikCH Posted March 12, 2014 Report Share Posted March 12, 2014 This is a realy cool feature, and my player love it. Bad is that the "blue light" just work with the s1203 ambulance i added an the Lada, i like it how its rotating on the ambulance would be nice if there is any chance to add this to the suv not just the noise :D Link to comment Share on other sites More sharing options...
poet Posted March 12, 2014 Report Share Posted March 12, 2014 I have lightbars but they are too bright and inside a car. Would need some work to get those working correctly. I haven't noticed any pause between loops. You can adjust the loop lenght in sirens_on.sqf for "_i" from 1 to 12 do { player action ["lightOn", _vehicle]; sleep 0.2; player action ["lightOff", _vehicle]; sleep 0.2; }; One loop lenght is 12 x that block, so if you change it to "from 1 to 9 do" it will start the next loop 1,2 seconds earlier. Link to comment Share on other sites More sharing options...
Sodom Posted March 13, 2014 Report Share Posted March 13, 2014 nice script! but im a little bit confused ^^ what is now the working description and and the fn_selfAction? can somebody give me the working description and fn_selfaction? Link to comment Share on other sites More sharing options...
Nexarion Posted March 13, 2014 Report Share Posted March 13, 2014 For me this works: //Sirens _isCopcar = typeOf _vehicle in ["policecar","pook_H13_medevac_CIV"]; if (_inVehicle and _isCopcar and (driver _vehicle == player)) then { dayz_addsirens = _vehicle; if (s_player_sirens_on < 0) then { s_player_sirens_on = dayz_addsirens addAction ["Siren on","Scripts\sirens\sirens_on.sqf",dayz_addsirens,2,false,true,"",""]; s_player_sirens_off = dayz_addsirens addAction ["Siren off","Scripts\sirens\sirens_off.sqf",dayz_addsirens,2,false,true,"",""]; }; } else { dayz_addsirens removeAction s_player_sirens_on; dayz_addsirens removeAction s_player_sirens_off; s_player_sirens_on = -1; s_player_sirens_off = -1; }; Link to comment Share on other sites More sharing options...
Nexarion Posted March 13, 2014 Report Share Posted March 13, 2014 For me this works: fn_selfAction: //Sirens _isCopcar = typeOf _vehicle in ["policecar","pook_H13_medevac_CIV"]; if (_inVehicle and _isCopcar and (driver _vehicle == player)) then { dayz_addsirens = _vehicle; if (s_player_sirens_on < 0) then { s_player_sirens_on = dayz_addsirens addAction ["Siren on","Scripts\sirens\sirens_on.sqf",dayz_addsirens,2,false,true,"",""]; s_player_sirens_off = dayz_addsirens addAction ["Siren off","Scripts\sirens\sirens_off.sqf",dayz_addsirens,2,false,true,"",""]; }; } else { dayz_addsirens removeAction s_player_sirens_on; dayz_addsirens removeAction s_player_sirens_off; s_player_sirens_on = -1; s_player_sirens_off = -1; }; description: class CfgSounds { sounds[] = {siren}; class siren { name = "siren"; sound[] = {custom\sirens\siren.ogg,0.5,1}; titles[] = {}; }; }; Sodom 1 Link to comment Share on other sites More sharing options...
Sodom Posted March 13, 2014 Report Share Posted March 13, 2014 THX! working on it now Link to comment Share on other sites More sharing options...
Sodom Posted March 13, 2014 Report Share Posted March 13, 2014 one question^^ did i have to create a custom fn_selfaction or what should i do^^ Link to comment Share on other sites More sharing options...
Nexarion Posted March 14, 2014 Report Share Posted March 14, 2014 If you don´t already have one you´ll have to create a new one. Link to comment Share on other sites More sharing options...
Sukkaed Posted March 14, 2014 Author Report Share Posted March 14, 2014 nice script! but im a little bit confused ^^ what is now the working description and and the fn_selfAction? can somebody give me the working description and fn_selfaction? Original post works fine. Link to comment Share on other sites More sharing options...
Sodom Posted March 18, 2014 Report Share Posted March 18, 2014 ok... can somebody help me? i createt a custom folder, a compile.sqf and a custom fn_selfactions.sqf but where should i place it? sry im a noob in scripting^^ Link to comment Share on other sites More sharing options...
Sukkaed Posted March 19, 2014 Author Report Share Posted March 19, 2014 ok... can somebody help me? i createt a custom folder, a compile.sqf and a custom fn_selfactions.sqf but where should i place it? sry im a noob in scripting^^ Take a look here for example how to use fn_selfactions --> Link to comment Share on other sites More sharing options...
FUNsniper Posted March 21, 2014 Report Share Posted March 21, 2014 Can't figure out how to turn on the sirens, dont think im doing anything wrong, is it left click to turn the siren on? Cuz it says "horn" on the top right. Link to comment Share on other sites More sharing options...
Nexarion Posted March 21, 2014 Report Share Posted March 21, 2014 You should have a new entry in your Scroll-Menu. But only when you´re driver of one of your defined vehicles. Link to comment Share on other sites More sharing options...
FUNsniper Posted March 22, 2014 Report Share Posted March 22, 2014 I put the scripting in how I was supposed to and I am in the vehicle, and I am not getting the action menu selection... Any help? Link to comment Share on other sites More sharing options...
tommy rampage Posted March 26, 2014 Report Share Posted March 26, 2014 i dont have the siren noise just flashing lights any help please guy's im new to scripting thanks alot would like to have this working Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now