Home   Help Search Login Register  

Author Topic: Artillery Or Air Strike Script  (Read 1637 times)

0 Members and 1 Guest are viewing this topic.

ste150

  • Guest
Artillery Or Air Strike Script
« on: 22 Jul 2003, 20:43:35 »
Hey Guys,

I'd be really greatful for some feed back on this script. It creates Laser Guided Bombs high above the target and lets them fall giving the impression of artil shells falling.
If you time it to go off after some A10s go over you could simulate an airstrike.

The example mission shoud give an idea of how to use it.

You can customise it by looking at 'imact.sqs'

Cheers
Stevo :D

whiplash2000a

  • Guest
Re:Artillery Or Air Strike Script
« Reply #1 on: 05 Aug 2003, 03:19:28 »
Well, done. A very nifty art. script. Hope that is enough feedback.

m21man

  • Guest
Re:Artillery Or Air Strike Script
« Reply #2 on: 07 Aug 2003, 07:27:39 »
Good start on this script. To get right to the point, here's what I think should be added/changed.

1. First off, since you only create one shell repeatedly, it creates the effect of either one super-fast gun or a battery that fires a gun every .3 seconds. I use variables in scripts like this to create a volley of shots, then a reloading wait, then another volley. The effect looks really nice. Also, it's unlikely that you'll be subjected to a great deal of really heavy artillery fire. An effect that looks really nice is huge amounts of small caliber stuff (heat73s for example) to simulate mortars, and a small, slowly firing group of heavy guns.

2. Second, the wind isn't causing the shells to strike to the north-east of your target, it's the nature of the "random" command. Since you're creating the shells at locations from an X,Y array, and since use of the random command only produces numbers between 0 and whatever you specified (And you always specify positive numbers), the shells must strike to the NE of the target. This is because both the X and the Y coordinates have a positive number added to them. Since adding to X moves the position to the right/east and adding to Y moves the position up/north, you will always have shells land NE of your target. Add a lot more randomness to the coordinates to fix this, and subtract as well as add!
« Last Edit: 07 Aug 2003, 07:28:44 by m21man »

PimpD

  • Guest
Re:Artillery Or Air Strike Script
« Reply #3 on: 09 Sep 2003, 13:33:44 »
Possible to make it only work once?
And is it possible to make a AI to use it? :')