Home   Help Search Login Register  

Author Topic: A bombing run or triggered artillery?  (Read 2222 times)

0 Members and 2 Guests are viewing this topic.

Offline satexas69

  • Members
  • *
A bombing run or triggered artillery?
« on: 06 Mar 2007, 19:33:39 »
NOTE:�  Thanks everyone - My mission I've been working on is just about complete and works GREAT. You can find it on our dedicated server listed as "satexas.com/saralite.zip" - it's listed like that so people can figure out you need the saralite island addon/pbo, and a place to download it.�  Check it out, it's TONS of fun. (I use SaraLite instead of Sara because it runs much smoother/faster on the Dedicated Server)

Anyway - the basic premise of the mission is you defend a fort against waves of orchestrated attacks, then you go forth in the mission and liberate a couple cities.

My Question - during the attack - I'd like to have the AI either run some bombing runs on our heads via aircraft OR have some triggers set up that fire artillery at us. I can't seem to find an example of anyone doing this in any mission or post on a forum.

I would assume the "easiest" would be using artillery and then choosing what ammo they fire (for strength/damage adjustment purposes) - but how can I get them to "auto fire" to a specific spot (or general very close area) by using a trigger that I can set off?

Also, I've yet to test - how far away can they fire?

Offline sharkattack

  • Former Staff
  • ****
Re: A bombing run or triggered artillery?
« Reply #1 on: 06 Mar 2007, 20:52:49 »
"HOLY SARDINE" - see Shark-Attack meet his match

Offline satexas69

  • Members
  • *
Re: A bombing run or triggered artillery?
« Reply #2 on: 06 Mar 2007, 21:05:36 »
But still can't be used on dedicated servers yet?  :(

Offline sharkattack

  • Former Staff
  • ****
Re: A bombing run or triggered artillery?
« Reply #3 on: 06 Mar 2007, 21:07:22 »
afraid not ...  sorry  ..  >:(
"HOLY SARDINE" - see Shark-Attack meet his match

Offline satexas69

  • Members
  • *
Re: A bombing run or triggered artillery?
« Reply #4 on: 08 Mar 2007, 05:28:39 »
UPDATE:

I've come up with an alternative to my problem - simulating a bombing run using an explosive script.

The script I used is a very old OPF one that I updated with latest ArmA jargon  8)

The script is below for all to enjoy (with my notes in the comments):

Code: [Select]
; ***************************************
;Explosion Script by GuiltyRoachKillar
; Updated by ]KAW[ Rooster aka SATEXAS69
;******************************************
;
;To use make a trigger:
;Activation: [nameofobject,"ammotype",height] exec "explos.sqs"
;
;Example: [target1,"Sh_122_HE",15] exec "exlpos.sqs"
;
; ***************************************
; This is great for making stuff explode using triggers and such...
;
; OR -
;
; You can simulate a huge bombing run like I have, by making a bunch of "H" objects
; using the INVISIBLE ones, and naming them "target1"... "target2"... and then having
; a plane fly over them setting off the above in a trigger... I stack multiple in a
; single Activation line varying the height for tons of fun in my mission
; called "FORT ROOSTER"
;
; ***************************************
;Get the array parameters and define _pos...
_unit = _this select 0
_ammo = _this select 1
_height = _this select 2
_pos = getpos _unit

;set _pos height according to what's in the array
_x = _pos Select 0
_y = _pos Select 1
_z = ( _pos Select 2) + _height
_pos = [_x, _y, _z]

#b
bomb= _ammo createvehicle _pos
bomb2= _ammo createvehicle _pos

exit

« Last Edit: 08 Mar 2007, 09:40:11 by satexas69 »

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: A bombing run or triggered artillery?
« Reply #5 on: 08 Mar 2007, 09:14:47 »
Regarding the last part of that script, Mandoble here http://www.ofpec.com/forum/index.php?topic=28855.0 posted about being unable to create mid-air explosions until he did some kind of work-around. Might want to incorporate that into your script or edit out the lines about "mid-air explosion", whichever way.  ;)

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline satexas69

  • Members
  • *
Re: A bombing run or triggered artillery?
« Reply #6 on: 08 Mar 2007, 09:41:18 »
Wolf,

Updated the script comments, thx.

Offline SaBrE

  • Members
  • *
  • I was once a Llama
    • www.Armed-Assault-Zone.com
Re: A bombing run or triggered artillery?
« Reply #7 on: 10 Mar 2007, 13:29:19 »
OK I'm not too good with scripting yet- does that script simply make a barrage of artillery rounds strike the ground (or mid-air)? Does it work in co-op mode, too?

Thanks.
Can you HELP?