45killa 10 Posted June 23, 2010 Hey guys, Iam an absolutetly beginner but I want to create a mission, in which the enemys are bombarding the village or town which my soldiers have got to defend. I want enemy fighter jets are dropping bombs over the town and that enemy artillery is bombarding the town too. So that the town at the end is totally destroyed. What have I got to do that this is going to happen? I hope somebody can help me. But do not forget, Iam a beginner. So please try to explain it in a really easy way and step by step.. Thanks for reading. Share this post Link to post Share on other sites
CarlGustaffa 4 Posted June 23, 2010 Search, it has been done many times before, but the command you're looking for to experiment with is createVehicle. One thing though, enemy plane and arty in the same airspace at the same time will not "look good". Think about it - would you like to be the pilot when shells rains around you? :) If you want "arty for show", you want to make sure the rounds doesn't hit near the player, or at least lower the possibility considerably. HE Arty Shells are extremely damaging, you might want to consider something less devastating, like mortars. Share this post Link to post Share on other sites
45killa 10 Posted June 23, 2010 I searched in the forum, but I did not find anything. Would you, or somebody else, explain me what I have got to do? Share this post Link to post Share on other sites
jakerod 254 Posted June 23, 2010 su25 action ["useWeapon",vehicle su25,driver vehicle su25,1]; Name an aircraft su25 and set its status to flying. That name is used 3 times in the above example. If you need more than one plane you can change that name to almost anything you want to make it work. You want to put the command line above into the line in the ON ACTIVATION field of a trigger. Group the plane with the trigger by using the GROUP button on the side and dragging a line from the plane to the trigger (or vice versa I think). Now give the plane a waypoint to fly through the trigger area. You may need to make the trigger area bigger or smaller. You may also need to move the trigger around. The pilots will drop the bombs blindly without any target. So you will have to adjust the zone depending on where you want them to land. Share this post Link to post Share on other sites
45killa 10 Posted June 23, 2010 Hey dude thanks a lot, you are awesome!!! But the problem is: The plane just uses the machine gun and it does not drop bombs (I used su25). And what have I got to do, if I want the enemy destroying the town with artillery? Share this post Link to post Share on other sites
pele93 10 Posted June 24, 2010 I'm trying to achieve a smilar effect and I believe it has something to do with the "weapon index" as specified here unitOne ["USEWEAPON", <target vehicle>, <target unit>, <weapon index>] I've also tried using this selectWeapon BombLauncher; Then using the trigger as before, I've changed number values in the weapon index and cannot get it to work :banghead: I just want it to drop GBU12's from where it's flying and idealy multiple planes at the same time, if I can get one to work I know I can get multiple ones to do it.... I assume this would be the easiest way to do it? Share this post Link to post Share on other sites
jakerod 254 Posted June 24, 2010 Hey dude thanks a lot, you are awesome!!!But the problem is: The plane just uses the machine gun and it does not drop bombs (I used su25). And what have I got to do, if I want the enemy destroying the town with artillery? I guess try 0 instead of 1. Or try 2, 3, 4, etc. I think most Su-25s have 4 weapons or so. 0 = weapon #1, 1 = weapon #2, etc. I had that in a mission I made a while back and it worked fine. So maybe the Su-25 you are using is from a different side than the one I used. Share this post Link to post Share on other sites
wickedstigma 10 Posted June 24, 2010 i tried the same thing without any luck. I just made a code where the GBU spawns below the aircraft... I even attached another GBU to an A10 and it didnt work since the deattach didn't appear to do anything. Ill keep trying to see if I have any luck. Share this post Link to post Share on other sites
45killa 10 Posted June 24, 2010 Okay it works now but the prob is that they only have got 2 bombs to drop.... But now want i want to know is how can I make enemy artillery canons bombing the town????????? Share this post Link to post Share on other sites
jakerod 254 Posted June 24, 2010 Okay it works now but the prob is that they only have got 2 bombs to drop.... But now want i want to know is how can I make enemy artillery canons bombing the town????????? I know for sure that that is somewhere on this forum. I am not too familiar with the solution though. You could createvehicle shells into the town though. I suppose that is one option. Share this post Link to post Share on other sites
wickedstigma 10 Posted June 24, 2010 Okay it works now but the prob is that they only have got 2 bombs to drop.... But now want i want to know is how can I make enemy artillery canons bombing the town????????? First, real artillery or simulated artillery? and Second, what did you do to make it drop the GBUs? Share this post Link to post Share on other sites
45killa 10 Posted June 24, 2010 First, real artillery or simulated artillery? and Second, what did you do to make it drop the GBUs? Where is the difference between real and simulated artillery?? :confused: I mean this is a game, I thought there is everything simulated :D :confused: I wrote 5 instead 1 su25 action ["useWeapon",vehicle su25,driver vehicle su25,1]; ---------- Post added at 10:18 PM ---------- Previous post was at 10:05 PM ---------- But the problem is if planes drop bombs they do not really destroy much .. and they do not have enough bombs to do really big damages Share this post Link to post Share on other sites
wickedstigma 10 Posted June 24, 2010 I tried it with the A10 and it didnt work. Ill try it again and post back Share this post Link to post Share on other sites
45killa 10 Posted June 24, 2010 Would you please explain me than how I can let enemy artillery destroy a town? Share this post Link to post Share on other sites
wickedstigma 10 Posted June 25, 2010 whell you could spawn artillery shells @ any height you want above the town and set the placement radius as big as you want. Get that inside a for loop for the number of shells you want and that's it. I'm working on a script called Simple Artillery Strike so Ill copy part of my code later. Share this post Link to post Share on other sites
pele93 10 Posted June 25, 2010 But the problem is if planes drop bombs they do not really destroy much .. and they do not have enough bombs to do really big damages To fix this I used this code here bomb = "Bo_GBU12_LGB" createVehicle getPos su25; buildings = nearestObjects [targ1,["building"], 50];{_x setDamage 1;bomb = "Bo_GBU12_LGB" createVehicle [(getPosASL _x select 0),( getPosASL _x select 1),1]; } foreach buildings; on the init line of a trigger activated by blufor as my jets are bluefor where targ1 is gamelogic over a building and su-25 was the name of the plane, you can also increase the damage, I didn't come up with this but got it somewhere off this forum can't find thread atm.... Only problem is you can't see bomb dropping so not as realistic, but certaintly does the damage :) Share this post Link to post Share on other sites
raserisk 12 Posted June 25, 2010 Here's a simple artillery run through. Spawn a MRLS which should be listed underneath USMC -> Armored Create an Artillery Module Double click on that module and name it my_battery Create a trigger and in the ON ACT box copy-paste this code in [my_battery, (getPosASL target_vehicle), ["IMMEDIATE", "HE", 0, 15]] call BIS_ARTY_F_ExecuteTemplateMission; Make sure you choose your form of activation, I like to just do a radio command, so Radio Alpha in this case. Finally, go to your Units spawn box (F1) go to Side, then scroll down to Empty, go to Targets then pick Armored Target. Once it's spawned, name it target_vehicle. To conclude, make sure your MRLS is pretty far away because apparently it has an "minimum range" so for example set this up in Chenarus, put your MRLS at the north-western airport, put the armored tank in Chernagorsk, spawn yourself a unit in the city, and call it in. Tell me if it works, if push comes to shove I can upload the mission for you. Share this post Link to post Share on other sites
45killa 10 Posted June 25, 2010 whell you could spawn artillery shells @ any height you want above the town and set the placement radius as big as you want. Get that inside a for loop for the number of shells you want and that's it. I'm working on a script called Simple Artillery Strike so Ill copy part of my code later. I did not understand that, could you please explain that easier? And thanks for the other script, it did work.. @Raserisk: I want the enemy to destroy the town not myself and my crew Share this post Link to post Share on other sites
wickedstigma 10 Posted June 25, 2010 I did not understand that, could you please explain that easier?And thanks for the other script, it did work.. @Raserisk: I want the enemy to destroy the town not myself and my crew Ok do the following steps: 1) Create a marker called target an place it on top of the town you want destroyed 2) Open notepad and write the following code and save it in your mission folder as artillery.sqf: [color="Orange"]//Set initial values for the artillery strike[/color] _ammo = "ARTY_Sh_122_HE"; [color="Orange"]//Sets the type of ordinance[/color] _initialDelay = 50; [color="Orange"]//Sets the delay before the artillery strike in seconds[/color] _amount = 10; [color="Orange"]//Sets the amount of shells to be delivered at target[/color] _roundDelay = 5; [color="Orange"]//Sets the delay between rounds[/color] _spread = 150; [color="Orange"]//Sets the spread of the strike in meters[/color] _height = 500; [color="Orange"]//Sets the spawn height of the shells [/color] _target = "target"; [color="Orange"]//Sets the name of the target [/color] [color="Orange"]//Set the position of our target[/color] _strikePos = [_target [color="Blue"]select[/color] 0, _target [color="Blue"]select[/color] 1, _height]; [color="Orange"]//Makes code wait for the value of _initialDelay[/color] [color="Blue"]sleep[/color] _initialDelay; [color="Orange"]//Begins the artillery strike [/color] [color="Blue"]for[/color] "_x" [color="Blue"]from[/color] 1 [color="Blue"]to[/color] _amount [color="Blue"]do[/color] { [color="Orange"] //Creates the slected ARTY_Sh_122_HE at 300 meters[/color] _artilleryStrike = [color="Blue"]createVehicle[/color] [_ammo, _strikePos, [], _spread, "NONE"]; [color="Orange"] //Sets artillery looking forward[/color] _artilleryStrike [color="Blue"]setVectorUp[/color] [0.001, 0.001, -1]; [color="Orange"] //Delays the code for the selected amount of time[/color] [color="Blue"]sleep[/color] _roundDelay; }; 3) Create a trigger activated by whatever you desire and put this into On Act box: nul = [] execVM "artillery.sqf"; 4) Enjoy! You can add more things or change the setting of the artillery strike. If you want to change the name of the target you can do it, just remember to change the name of the target inside the code too. If you want I can post to the way I found to simulating the GBU drops too and if you have any more questions just let me know. Share this post Link to post Share on other sites
45killa 10 Posted June 25, 2010 Hey dude, thanks a lot you are a very big help! But the problem is: Where is the folder "mission", which you mean? I saved artillery.sqf in some mission folders, but in the game there is written "artillery.sqf can not be found... If you want I can post to the way I found to simulating the GBU drops too Please do that bro :) Share this post Link to post Share on other sites
wickedstigma 10 Posted June 25, 2010 Hey dude, thanks a lot you are a very big help!But the problem is: Where is the folder "mission", which you mean? I saved artillery.sqf in some mission folders, but in the game there is written "artillery.sqf can not be found... Please do that bro :) you are welcome! my pleasure to help! :D Ok, mission folder are, at least in my computer and I'm using vista, in Doucments > Arma 2 > missions You have to save the game first, lets say with the name destroytown or whatever name you want. Than it is going to appear inside the mission folder. Then you take the artillery.sqf and place it inside the destroytown folder that's inside the mission folder. If you are using the multiplayer editor the mission are in the MPMissions instead of the missions folder. Im in kind of a hurry now but Ill be back in a couple of hours and will post the code for the GBUs. Share this post Link to post Share on other sites
45killa 10 Posted June 25, 2010 Its still not working dude ... The game cant find the script :confused: Share this post Link to post Share on other sites
CarlGustaffa 4 Posted June 25, 2010 On my XP system, the path is something like: C:\Documents and Settings\YourName\My Documents\ArmA 2 Other Profiles\YourProfile\missions\MissionName.Island. I suggest you read a couple of tutorials on basic mission editing. Share this post Link to post Share on other sites
45killa 10 Posted June 26, 2010 I did it exactly as you explained, nevertheless it does not work dude :confused: Share this post Link to post Share on other sites
f2k sel 164 Posted June 26, 2010 I think you need to go to Tools Folder Options/View and untick Hide Extensions For Known File Types On my OS XP Tools is at the top of any open folder. Share this post Link to post Share on other sites