Results 1 to 10 of 10

Thread: Bombing without planes....

  1. #1
    Hi, I would like to bomb a whole town for a cutscene and I wonder If there's any way to place bombs in the sky and just let them fall free and explode......

    I tried to use some units to do it in the init menu I inserted this:

    Quote Originally Posted by [b
    Quote[/b] ]this addmagazine "6rnd_gbu12_av8b"; this addweapon "bomblauncher"
    then I put an invisible marker on the map and with the setpos command I send the unit there and by a trigger they fired the weapon:

    Quote Originally Posted by [b
    Quote[/b] ]kamikaze1 fire "bomblauncher"
    Then it exploded..... but you always see a guy flying around, and if I wanted to explode more bombs it was impossible or completely slow...

    I know there's a good way to do this, could anyone tell me the script??

    THX

  2. #2
    That's the most hilarious method I've ever heard of . It's much easier to just spawn the bomb directly.

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Bomb = &#34;Bo_GBU12_LGB&#34; createVehicle &#91;getPos MyGameLogic select 0, getPos MyGameLogic select 1, AltitudeInMeters&#93;;[/QUOTE]

    Place a named game logic on the map, and subsitute MyGameLogic with the name of your game logic and AltitudeInMeters with the desired spawn altitude. AltitudeInMeters should work with 0 if that&#39;s the desired effect.
    Everything I have released for ARMA can be found here.

  3. #3
    Sergeant
    Join Date
    Mar 14 2007
    Location
    Barcelona
    Posts
    109
    Author of the Thread
    jajaja, I know man

    I knew that the createvehicle command was involved in this, at first I created a marker and used the getpos command to try to place the bomb there but I couldn&#39;t....

    anyway, THX a lot man.... There are many things I don&#39;t know about scripting, and I see a lot of difficult scripts out there that just blow my mind....jejeje... yours is great, just what I needed....


  4. #4
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    5,699
    Just for completeness:

    With markers getpos wont work, use getmarkerpos insted should do the trick

  5. #5
    Sergeant
    Join Date
    Mar 14 2007
    Location
    Barcelona
    Posts
    109
    Author of the Thread
    I tried
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Bomb = &#34;Bo_GBU12_LGB&#34; createVehicle &#91;getMarkerPos MyMarker select 0, getMarkerPos MyMarker select 1, AltitudeInMeters&#93;;[/QUOTE]
    instead of
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Bomb = &#34;Bo_GBU12_LGB&#34; createVehicle &#91;getPos MyGameLogic select 0, getPos MyGameLogic select 1, AltitudeInMeters&#93;;[/QUOTE]
    But it doesn&#39;t work with markers.... thing that would be neat so there are not so many game logics spread all over the place, just markers that can be hidden... what am I doing wrong??

  6. #6
    Warrant Officer Mandoble's Avatar
    Join Date
    Nov 10 2005
    Location
    Madrid, Spain
    Posts
    2,020
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    Bomb = &#34;Bo_GBU12_LGB&#34; createVehicle &#91;getMarkerPos &#34;MyMarker&#34; select 0, getMarkerPos &#34;MyMarker&#34; select 1, AltitudeInMeters&#93;;
    [/QUOTE]

    Marker names between quotes allways.

  7. #7

    Lightbulb

    I&#39;ve been using the createvehicle array recently for similar purposes, and discovered that it wouldn&#39;t take a perfectly valid x,y,z coord. It would create the bomb at ground level in the right place. I had to then set the height of the bomb using setpos, passing it the exact same coords as I&#39;d used to create??

  8. #8
    make sure that you don&#39;t use getmarkerpos for the last set of coordinates as all makers are at ground level, make sure you are using a just a number
    AEF 2CAV Squad Leader
    AEF Officer
    http://www.aef-hq.com.au

  9. #9
    Hicks, I&#39;ve got the position set as a local variable, and the height is NOT taken from the marker, in fact there isn&#39;t even a marker in my particular script. The bomb is created 3 mtrs below a flying plane, or at least it would be if it worked. I use exactly the same local variable in the setpos and it works correctly.

  10. #10
    Sorry for stupid question, but can i use tricker to activate gamelogig bombs? I want to spawn few bombs when certain point has reached, I am using this code:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Bomb = &#34;Bo_GBU12_LGB&#34; createVehicle &#91;getMarkerPos &#34;target&#34; select 0, getMarkerPos &#34;target&#34; select 1, 50&#93;;Bomb = &#34;Bo_GBU12_LGB&#34; createVehicle &#91;getMarkerPos &#34;target_1&#34; select 0, getMarkerPos &#34;target_1&#34; select 1, 70&#93;[/QUOTE]

    I have placed 2 markers to map, called target and target_1

Posting Permissions

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