AttachTo and you -AC130 Gunship Simulation and More!
I just came across this relatively rad little gem to show you guys:
Using the AttachTo command it is possible to have static guns (ie. M119, TOW Launcher) firing from a flying C130 at ground targets. Very cool
-With skill set to max and positioned where they have clear aim, most static weapons will engage the targets while flying while at a relatively high altitude (700~m), with the m119 gun performing this task best (followed by the TOW launcher, M2 machine gun at lower altitudes). Thusly, the main issue of the system for me thus far is I can't remember how to keep an aircraft flying at this sort of altitude while circling an area
-So far I've only got it working with the guns on top of the plane; looks naff up close, but you can't see it when it's circling above
-Improper placement will cause fratricide for the plane and anyone on it
-I can't see how to change the rotation/bearing of the gun beyond straight on; I originally came up with this trying to put a marksman in a heli, but realised he couldn't turn around to face outside
How to do it:
Really simple, far less than you'd expect:
1. Create plane, name it
2. Create gun, in init field:
this attachTo [planes name, [offset array -xyz, fiddle with this]]
I also group together the plane and the gun and set the guns skill to max.
And that's it! Anyone that would feel like developing this further would probably do a better job than I, and this could really help with developing an AC130 addon (just cut out some holes in the c130 body, mod the static guns so you can limit their 'swng', and then incorporate these commands into the addon)
I'm toying with an idea that seems like someone has done already (it's almost too easy), if so then good job all round!
Test mission (call in the plane using Higher Command):
Last edited by DaveP; Jun 3 2009 at 19:58.