Brute 11 Posted July 4, 2009 (edited) At the beginning of a mission when troops are being inserted via MH-60Ss i want an AV-8B to bomb a radio tower and then fly away and delete itself. I dont want the bomb run to be in any way dynamic, it should require no user input what so ever. Could anyone help please? Edited July 4, 2009 by Brute Share this post Link to post Share on other sites
kylania 568 Posted July 4, 2009 Here's a quick and dirty way to do it with a bomber and two waypoints. You can download the test mission to see how it works as well. Place the Radar object where you want it, named radar. Place the bomber pointing at it, flying. Name it bomber. Place a MOVE waypoint just past the Radar (you'll want to play around with the distance past to make it look good.) then another MOVE waypoint where you want it to disappear. In the On Act. of the first waypoint put: pos = getPos radar; b2 = "Bomb" createVehicle pos; b2 setPos pos; b1 = "Bo_GBU12_LGB" createVehicle pos; sleep 0.5; deleteVehicle b2; In the On Act. of the second waypoint put: {deleteVehicle _x} forEach crew bomber; deleteVehicle bomber; Note that if you don't delete the crew first, they poor pilot will be left hanging in the air where you deleted the plane! :) Share this post Link to post Share on other sites
Brute 11 Posted July 5, 2009 That works perfectly however when i attempt to trigger the spawn of the AV-8B the plane simply will not spawn, I place a trigger that activated in the presence of BLUFOR and name it test and then set the condition of presence of the AV-8B to "test" however when i activate the trigger the AV-8B will not spawn :( Share this post Link to post Share on other sites
Inkompetent 0 Posted July 5, 2009 The 'condition of presence' is only for the very start of the mission afaik. Useful for randomly creating patrols (have a random chance of presence for the leader, and set the rest of the squad's condition of presence to that the group leader has to exist). You'll have to createVehicle the airplane as well and manually set it to the correct altitude, speed and path. If you search either this forum, the mission editing and scripting for ArmA1 forum, or the www.ofpec.com forum I'm sure you'll get dozens of examples on how to do that :) Share this post Link to post Share on other sites
Brute 11 Posted July 5, 2009 Thats stupidly over complicated for something as simple as, if this trigger is activated then spawn this. Share this post Link to post Share on other sites
TurokGMT 0 Posted July 5, 2009 not really, because you're not just spawning the plane, you're spawning a FLYING plane with roll, pitch, yaw and velocity as well as 2 waypoints to move to. welcome to the wonderful world of the code monkeys =] persevere though, because there can never be too many good coders for ARMA2... Share this post Link to post Share on other sites
Brute 11 Posted July 5, 2009 Damn coding :p Is there a greater yeild bomb that the AV-8B carries that I could use? Share this post Link to post Share on other sites
TurokGMT 0 Posted July 5, 2009 You could spawn any explosion you like underneath the plane. The biggest one I'm aware of though is the LGB blast. look into the camcreate function - lots of folks have used it to spawn things like smoke grenades or explosions at specific locations. You do lose out on the immersion factor of seeing the bomb drop, but it might be easier for you to script. Share this post Link to post Share on other sites