yair1221 Posted September 5, 2010 Share Posted September 5, 2010 is there a way to code sirens into sa? i ran a search and found topics for gta3 and iv but is there a way just to make sounds of sirens and making cars clear your path etc...? Link to comment https://gtaforums.com/topic/458624-coding-sirens/ Share on other sites More sharing options...
TheSiggi Posted September 5, 2010 Share Posted September 5, 2010 create a copcar at 0.0 0.0 0.0 and turn its siren on BUT: - people on street won't care about you - you can't use the horn of the copcar and I think it should be possible to extract the siren sounds and play them with your script. Should work but people still won't care cheers Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114679 Share on other sites More sharing options...
yair1221 Posted September 5, 2010 Author Share Posted September 5, 2010 thanks and say, how do i turn on the copcar's siren? edit : never mind cheers Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114683 Share on other sites More sharing options...
james227uk Posted September 5, 2010 Share Posted September 5, 2010 (edited) - Redacted: No useless images - Oh whatever Sorry, joke aside. This should be simple enough for the most part. Get a siren sound, then use the MP3/audiostream opcodes to load and play it. As for making the cars move aside, well I apologise for these opcodes, they are CLEO4 (most modders still use CLEO3 for some reason) 0AAC: $hMP3 = load_audiostream "CLEO\playlist\01.mp3" //IF and SET Load a siren sound, then check it with the same opcode. Edited September 5, 2010 by james227uk Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114706 Share on other sites More sharing options...
yair1221 Posted September 5, 2010 Author Share Posted September 5, 2010 joke: point taken problem: yes i understood but cant i just create a car in the exact same place? like SilentPL offered and activate the siren then create a light like that repeatwait 00407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset -0.337 1.566 0.657 09E5: create_flash_light_at 1@ 2@ 3@ RGB_mask 255 0 0 radius 5.0 wait 5000407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.337 1.566 0.657 09E5: create_flash_light_at 1@ 2@ 3@ RGB_mask 0 0 255 radius 5.0 until 0ab0: 13 Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114714 Share on other sites More sharing options...
BnB Posted September 5, 2010 Share Posted September 5, 2010 No don't create a car. Just attach a object and put flash lights and play a sound! Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114872 Share on other sites More sharing options...
Silent Posted September 5, 2010 Share Posted September 5, 2010 like SilentPL offered Hmm, what? @james227uk How did you got that list? Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114900 Share on other sites More sharing options...
james227uk Posted September 5, 2010 Share Posted September 5, 2010 like SilentPL offered Hmm, what? @james227uk How did you got that list? About 10 minutes in photoshop using the Snipping Tooll Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114968 Share on other sites More sharing options...
yair1221 Posted September 6, 2010 Author Share Posted September 6, 2010 Hmm, what? like SilentPL offered create a copcar at 0.0 0.0 0.0 and turn its siren on Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060115839 Share on other sites More sharing options...
TheSiggi Posted September 6, 2010 Share Posted September 6, 2010 Hmm, what? like SilentPL offered create a copcar at 0.0 0.0 0.0 and turn its siren on I beg your pardon?!!? excuse me, but actually ....that was me Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060115854 Share on other sites More sharing options...
yair1221 Posted September 6, 2010 Author Share Posted September 6, 2010 oh im sorry got mixed with the names(sorry again, for me it was much later than for you :S) thanks anyway but i dont know why it didnt work couldnt hear the siren only the lights work Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060115949 Share on other sites More sharing options...
SAESandy Posted October 8, 2010 Share Posted October 8, 2010 here is some full code to load an mp3 file and loop it in CLEO4 which may help you: Audiostream.Load($siren, "CLEO\siren.mp3")Audiostream.PerformAction($siren, PLAY)Audiostream.Loop($siren, 1) to stop: Audiostream.PerformAction($siren, STOP)Audiostream.Loop($siren, 0) to unload: Audiostream.Release($siren) the problem i find is it if you switch on the standard siren you still hear the default siren sounds as well. anyone know a way of muting that without putting a blank wave file through SAAT? Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060154979 Share on other sites More sharing options...
yair1221 Posted October 8, 2010 Author Share Posted October 8, 2010 er..not using a police car? lol or just replace the sound YOU want with the default siren in SAAT it will no longer require a code... BTW: you are late... , this thread was off for a LONG time ago... or did you just found it in the search? Link to comment https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060155003 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now