Artillery & car radio - Printable Version +- Comrades in Arms Discussion Board (http://forum.ciahome.net) +-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3) +--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8) +--- Thread: Artillery & car radio (/showthread.php?tid=1341) |
Artillery & car radio - Peetu - 04-11-2008 Hello everybody! I am working on new missions, and I will publish about 5-10missions (FDF coop) in a pack (someday..). There is some problems, I need artillery fire inside a trigger or an area in FDF1.4 and I really dont know how to begin. So if you have a god script or idea, i have use for it. Next problem: I know how to put music in a mission, triger and everybody hear it...  But I need the music/sound to come from a radio, or inside a car. Re: Artillery & car radio - Zwobot - 04-11-2008 For the artillery, you could use the following script (I used it myself in one of my missions; I only edited it in 3 lines or so to make it work in multiplayer): It's originally from Fishion and modified by General Barron as you can see. The parameters are well explained so there is not much more to say about it. Code: ;// Generic Artilly Script Re: Artillery & car radio - Pulverizer - 04-15-2008 I don't know how this line is supposed to create a circular impact area: Code: _tmp = _ord createVehicle [(_coords select 0) + (random _radius) - (_radius / 2), (_coords select 1) Should be something like this: Code: _rdir = random 360 For the music from a radio or object, you define it as cfgSounds and it has to be mono. Put the files in sound/ subfolder in the mission directory. description.ext: Code: class CfgSounds To play from an object: jeep1 say mymusic1 Re: Artillery & car radio - Zwobot - 04-15-2008 (04-15-2008, 08:16 AM)Pulverizer link Wrote:I don't know how this line is supposed to create a circular impact area:As I said before it is not my script and it's been ages since I have used trigonometry myself... But the script seemed to work okay and who cares or even notices that the shells don't fall in a circle but in a rectangle or triangle  Re: Artillery & car radio - TonyMarony - 06-21-2010 Hola, although you give good advice here, im still too lousy missioeditor to get it to work. My piece of description looks like: class CfgSounds { sounds[] = {amb1,amb2}; class amb1 { name = "amb1"; sound[] = {"amb1.ogg",db+20,1}; titles[] = { }; }; class amb2 { name = "amb2"; sound[] = {"amb2.ogg",db+20,1}; titles[] = { }; }; }; But i get always an error "Sound amb1 not found". Does anyone see my fault here? Thx  Tony Re: Artillery & car radio - Overlord - 06-22-2010 Where do you put the sounds Tony? I believe they need to be inside a folder named sounds inside mission folder. You could also try to change name sligthly to avoid confusion Quote:{to Quote:{because (if I read correctly) it's amb1 which isn't found, not amb1.ogg Re: Artillery & car radio - TonyMarony - 06-22-2010 Hola, no, wont work. Now it says "Amb_1" not found. I guess my description is nor recognized at all? The Text above is all thats in there. Something more needed? And yes, i put it in the "Sound" folder in my mission. description looks like this now: Re: Artillery & car radio - TonyMarony - 06-22-2010 ... or alternatively (or even better): How would the sound included as a ambient sound activated via the trigger/effects? Like the frogs and birds and so on. In this way it will become audible from a unique location what would surely be more realistic. Thx  Tony Re: Artillery & car radio - Osku - 06-22-2010 You need to use the correct path, if you have them in a folder called "sound", then write: sound[] = {"sound/amb1.ogg",db+20,1}; and so on. I recommend using lowercase letters for everything Re: Artillery & car radio - Zwobot - 06-23-2010 By the way: do not - I repeat: do not use WordPad or even MS Word or Open Office Writer or whatever for creating scripts, stringtables, descriptions.ext or any other Ofp/Arma related files (those programs' formatting functions might break your files). Use at least the normal Windows text editor or better download Notepad++ Re: Artillery & car radio - Overlord - 06-23-2010 Didn't notice that in Tony's pic but you're right Zwobot. Could even bet the whole reason why Tony got problem. Re: Artillery & car radio - TonyMarony - 06-25-2010 ok, that was the Problem, zwobot! Used Notepad ++ and it works fine :-). Thx so far! |