konyo 14 Posted May 13, 2010 Hi all, How would i get a A-10 to fly over head, and just drop a bomb on truck load of enemy people and tanks and never return to the battle again? Because when i try, it just fires bullets and keeps returning? So dose anyone know how to get it to drop a bomb only? Thanks :) Share this post Link to post Share on other sites
andromedagalaxe 10 Posted May 13, 2010 (edited) did you set waypoints for it? also look into removeAllWeapons, addWeapon, for the bomb you want. lookup script LandAt: (name of your plane) landAt (airport ID), to get it to not come back. set up a condition and setDamage 1 for your trucks and tanks. Edited May 13, 2010 by andromedagalaxe Share this post Link to post Share on other sites
Joshii 10 Posted May 13, 2010 selectWeapon / delete all weapons but the bombs and then waitUntil !alive target and then http://community.bistudio.com/wiki/deleteVehicle should work I guess. Share this post Link to post Share on other sites
konyo 14 Posted May 14, 2010 did you set waypoints for it?also look into removeAllWeapons, addWeapon, for the bomb you want. lookup script LandAt: (name of your plane) landAt (airport ID), to get it to not come back. set up a condition and setDamage 1 for your trucks and tanks. Thanks, Yeh i did set a waypoint for it, but im not understanding the removeAllWeapons, So i type that in too the A-10's init box, and addWeapon GBU-12? Would that work? Then would i just stick to its normal waypoint, will he fly over and drop a bomb on the group of people? selectWeapon / delete all weapons but the bombs and then waitUntil !alive target and then http://community.bistudio.com/wiki/deleteVehicle should work I guess. waitUntill !alive target? Would i have to target that then? :confused: Share this post Link to post Share on other sites
Joshii 10 Posted May 14, 2010 The waitUntil !alive target was a way to delete the a-10 after the attack. Basically you could waitUntil the target is dead and then until the a-10 is out of a specific range and then just deleteVehicle it. Just to make sure it doesn't come back. Share this post Link to post Share on other sites
andromedagalaxe 10 Posted May 14, 2010 (edited) Thanks, Yeh i did set a waypoint for it, but im not understanding the removeAllWeapons, So i type that in too the A-10's init box, and addWeapon GBU-12? Would that work? Then would i just stick to its normal waypoint, will he fly over and drop a bomb on the group of people? yes, in the init field. make sure to name your units (i've called them plane_name and tank_name) removeAllWeapons plane_name; plane_name addWeapon "GBU-12"; plane_name doTarget tank_name; (i haven't tested this, but I think it would work) you can even add a doFire command. if you want to make sure the target is destroyed, you can add a trigger that ensures the target is destroyed with setDamage command (may look funny if the bomb misses by a mile)!. As for the waypoint, you should be able to make it not come back in a variety of ways. I've already mentioned doLand, but you should be able to set waypoints for it and delete it once it gets far away as the others have shown. I believe "waitUntil !alive target" will delete the plane right when the tank is killed, so you might want to go another route or set a time condition for that. poke around here for more options: http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA2 Edited May 14, 2010 by andromedagalaxe Share this post Link to post Share on other sites
Funkman 10 Posted May 15, 2010 (edited) I was trying to do this when making my movie :War GVUtxTYx2PI See at 3:05 It would not use the weapon I selected, so in the end I just manually told it to drop them using the "fire" (http://www.arma2.com/comref/full.html#ObjectfireString) command. Edited May 15, 2010 by Funkman Share this post Link to post Share on other sites
konyo 14 Posted May 15, 2010 The waitUntil !alive target was a way to delete the a-10 after the attack. Basically you could waitUntil the target is dead and then until the a-10 is out of a specific range and then just deleteVehicle it. Just to make sure it doesn't come back. yes, in the init field. make sure to name your units (i've called them plane_name and tank_name) removeAllWeapons plane_name; plane_name addWeapon "GBU-12"; plane_name doTarget tank_name; (i haven't tested this, but I think it would work) you can even add a doFire command. if you want to make sure the target is destroyed, you can add a trigger that ensures the target is destroyed with setDamage command (may look funny if the bomb misses by a mile)!. As for the waypoint, you should be able to make it not come back in a variety of ways. I've already mentioned doLand, but you should be able to set waypoints for it and delete it once it gets far away as the others have shown. I believe "waitUntil !alive target" will delete the plane right when the tank is killed, so you might want to go another route or set a time condition for that. poke around here for more options: http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA2 Ok thanks, ill give them a go when i get back from work, and let you know how it went :) Share this post Link to post Share on other sites
andromedagalaxe 10 Posted May 15, 2010 I was playing around in the editor this morning and decided to test my own advice. had trouble with my method due to vehicles behaving differently than men. this will work to give your plane the correct weapon (set name as a10) a10 setVehicleAmmo 0; a10 addMagazine "4Rnd_GBU12"; I couldn't get it to engage its target though. Share this post Link to post Share on other sites
konyo 14 Posted May 15, 2010 (edited) I was playing around in the editor this morning and decided to test my own advice. had trouble with my method due to vehicles behaving differently than men.this will work to give your plane the correct weapon (set name as a10) a10 setVehicleAmmo 0; a10 addMagazine "4Rnd_GBU12"; I couldn't get it to engage its target though. Ok, ill have to set a trigger for it, get it to play exploading sound, and setdamage to the tanks and jeeps. Edit - Just tryed it and its works fine! Check out the video i just done of it ;) Click for youtube video Thanks for all the help guys by the way, could not of done it without you all :) Edited May 15, 2010 by konyo Share this post Link to post Share on other sites
Joshii 10 Posted May 15, 2010 Tried to spawn bombs over the cars instead? Makes it cooler than just setDamage on it. Share this post Link to post Share on other sites
konyo 14 Posted May 15, 2010 Tried to spawn bombs over the cars instead? Makes it cooler than just setDamage on it. How can you spawn bombs over the helicopters tho? :confused: Share this post Link to post Share on other sites
andromedagalaxe 10 Posted May 15, 2010 can you post your trigger code so I know how you solved it? thanks Share this post Link to post Share on other sites
konyo 14 Posted May 16, 2010 Put trigger, activated by blufor, and in the triggers activate box i added hind1 setDamage 1; hind2 setDamage 1; Thats what i added. Share this post Link to post Share on other sites
Joshii 10 Posted May 17, 2010 How can you spawn bombs over the helicopters tho? :confused: Touché I thought we were talking about ground targets only. Share this post Link to post Share on other sites
ViV 10 Posted May 21, 2010 How will you do that Joshii? Share this post Link to post Share on other sites