Page 1 of 4 1234 LastLast
Results 1 to 10 of 38

Thread: AttachTo and you -AC130 Gunship Simulation and More!

  1. #1

    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


    Notes:
    -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):
    http://www.sendspace.com/file/jvsd7d
    Last edited by DaveP; Jun 3 2009 at 18:58.

  2. #2
    Put the following into the init field of the C130:

    Code:
    this flyInHeight 700

    Thanks for the tip about the attachTo command. Sounds like we can have a lot of fun with it.
    Get Arma2 OA Beta Notifications via e-mail | RSS | Twitter

    Gigabyte P67X-UD3-B3 Motherboard | Intel Core i7 2600k @ 4.0GHz | NVidia GeForce GTX560 TI
    16GB Corsair XMS3 1600Mhz RAM | Kingston HyperX SSD | ASUS Xonar D2X
    sound | be Quiet! 700W PSU | Windows 7 x64


  3. #3
    First Sergeant DaveP's Avatar
    Join Date
    Jun 1 2009
    Location
    SE UK
    Posts
    833
    Author of the Thread
    Quote Originally Posted by MadDogX View Post
    Put the following into the init field of the C130:

    Code:
    this flyInHeight 700

    Thanks for the tip about the attachTo command. Sounds like we can have a lot of fun with it.

    Gave it a shot, didn't work

    Edit: I'm an idiot, got it working!
    Last edited by DaveP; Jun 2 2009 at 20:52.

  4. #4
    It might take a while to reach that altitude. You could always setPos it there first. Try this:

    Code:
    this setPos [(position this) select 0, (position this) select 1, 700]; this flyInHeight 700

  5. #5
    First Sergeant DaveP's Avatar
    Join Date
    Jun 1 2009
    Location
    SE UK
    Posts
    833
    Author of the Thread
    Got it working, put in player instead of this, oops.


    This could also be used for other cool stuff, like putting SPG-9's in the back of civvie trucks, perfect for those guerilla ops.


    All I wish is we could set the rotation too.

  6. #6
    man this sounds frakkin awesome!!!
    Even with limited rotation I think people might find this useful

  7. #7
    First Sergeant DaveP's Avatar
    Join Date
    Jun 1 2009
    Location
    SE UK
    Posts
    833
    Author of the Thread
    Interesting extra:

    If you put a mortar in the back of a truck, the GL Artillery module still works for player targetting; still yet to try with an AI artillery strike (since I still can't get them to work, haha), but if so then this could make mortars a helluva lot more useful.

  8. #8
    This could also be used for other cool stuff, like putting SPG-9's in the back of civvie trucks, perfect for those guerilla ops.
    Yeah, new the attach command is going to open up quite a few possibilities.

    All I wish is we could set the rotation too.
    You need to use the SetVectorUp and SetVectorDir commands once the object is attached.

  9. #9
    First Sergeant DaveP's Avatar
    Join Date
    Jun 1 2009
    Location
    SE UK
    Posts
    833
    Author of the Thread
    Quote Originally Posted by UNN View Post
    You need to use the SetVectorUp and SetVectorDir commands once the object is attached.
    Good thinking, but it doesn't seem to be working, hmm

  10. #10
    It would also probably be a good idea to have the guns on the AC130 shoot laser-straight, regardless of distance, to ensure that we don't have any accuracy issues. It's really important.

Page 1 of 4 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •