vilas 477 Posted December 26, 2012 i used search forum , but search didnt give result i am looking for way to have sirene sound turned on how to make it ? i made cfg sounds, i made class sirne_sound there and i put in user actions statement = "this animate [""policelight"", 1]; this say ""sirene_sound"" "; Share this post Link to post Share on other sites
ProfTournesol 956 Posted December 26, 2012 And ? Doesn't it work with this statement ? Share this post Link to post Share on other sites
vilas 477 Posted December 27, 2012 no, it doesnt work, i even checked ogg file, it was proper file, police lights i made (finallyyyyyyyy after so many retries) work for me, but no siren sound active, so finally i have animated police lightbar (not by script), but without any sound Share this post Link to post Share on other sites
ProfTournesol 956 Posted December 27, 2012 If you have configed the sound in cfgsounds, can you play it otherwise in the editor (inside a trigger for example) ? Share this post Link to post Share on other sites
vilas 477 Posted January 1, 2013 (edited) it works in meaning it works ONCE but i want loop, a constant sirene sound , repeating is it possible to repeate sound without script, like we have engine sound nevermind, i have done simple script (first time in my life) topic can be closed or deleted, thanx , solved by script while { _this animationphase "kogut_znika" >0} do {_this say "p85_police_siren"; Sleep 0.5;}; shame i was too lazy to read scripting language tutorials before Edited January 1, 2013 by vilas Share this post Link to post Share on other sites
drunken officer 18 Posted January 1, 2013 try cfgsounds { class sirene name = "whoopwhoop" ... }; cfgvehicles { bla bla class UserAction { blabla statement = "this animate [""policelight"", 1]; this say ""whoopwhoop"" "; }; }; Share this post Link to post Share on other sites
vilas 477 Posted January 1, 2013 (edited) so you suggest name instead of class name, i will try it, by the way , heh, i am happy that after so many years finally i have learnt do police lightbars :) and they work :D now testing them on my PC, soon hope to make updates Edited January 1, 2013 by vilas Share this post Link to post Share on other sites
drunken officer 18 Posted January 1, 2013 Yeah, i know your happyness. For me it was a long way too, to understand how it works. but now it working fine. http://www.youtube.com/watch?v=E1I5OuS1nW8 http://www.youtube.com/watch?v=yIWdER3gNlw Share this post Link to post Share on other sites
vilas 477 Posted January 2, 2013 so i will PM you , cause now i would need to add blue light to them :) Share this post Link to post Share on other sites
[aps]gnat 28 Posted January 3, 2013 Nice work DO Any reason the light-bars cant be made as a separate addon that can be ATTACHTO any vehicle ? Share this post Link to post Share on other sites
vilas 477 Posted January 3, 2013 Any reason the light-bars cant be made as a separate addon that can be ATTACHTO any vehicle ? yes, there is a reason, different bars on different cars: http://www.furious.pl/furious2006-2011/img1/kia-ceed-policja03.jpg http://foto.scigacz.pl/cache/imgs/_w750/gallery/aktualnosci/Alfy_Romeo_159_w_Policji_oczy_dookola_glowy/alfa_romeo_159_policja.jpg Share this post Link to post Share on other sites
[aps]gnat 28 Posted January 3, 2013 Thanks Vilas, but no, I didnt mean YOUR light bars / YOUR vehicles ...... I mean some future mod from someone else (like me). The addon could be a CfgVehicle class, just a lightbar (no wheels etc, just some USERACTIONS that could be used by any "nearby vehicle" that its attached to, right ? Share this post Link to post Share on other sites
drunken officer 18 Posted January 7, 2013 Gnat, you can block the useraction. _lb = _this select 0; _no = nearestObjects [_lb,["man"],2]; (check for persons near to your lightbar) _no1 = _no select 0; (getting the nearest one) {.... start the animation script }; Otherway you get the name of object and set, that only the player of object can use the useraction. @Vilas I attach the lightbars with attachTo by the SUV's. The other cars are models with the lightbars. The lightflash are just simple "'#lightpoints". But it'S hard to drive at night^^ I try to find a way to attach the lightbar via script. So it's possbile to paint a VWGolf (config.cpp >> hiddenselection; hiddenselectiontextrue) and set the lightbar via script on top. So every guy can take the addon without any scriptcode in the description.txt. Share this post Link to post Share on other sites