Home   Help Search Login Register  

Author Topic: strafing  (Read 687 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
strafing
« on: 28 Oct 2004, 02:11:48 »
Hey
I need a script that will make a BAS blackhawk or littlebird strafe an area insted of shooting just one unit at a time, I need it to just fly with the guns pointed down continuosly firing for about 60 yds to take out a crowd of enemys. I looked in mission editor and typed in strafe but got nothing. I cant really think of what else to search for or even in what section. If anybody could make a script for that or tell me what to search for in editor id be much ablidged.
Thanks/cheers

By the way Im looking for a scriptor for my BHD campaign
my partner is curently out of touch because he is working in Japan and as u know there were bad earth quakes there and comms are down.
« Last Edit: 28 Oct 2004, 02:12:37 by penguinman »

Dubieman

  • Guest
Re:strafing
« Reply #1 on: 28 Oct 2004, 05:38:09 »
Look in the ed depot for a script I wrote on Gunship support or there's one in beta in the scriting beta section.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:strafing
« Reply #2 on: 28 Oct 2004, 06:48:27 »
this will not help me as ur script only alows them to atack 1 unit at a time

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:strafing
« Reply #3 on: 28 Oct 2004, 11:34:45 »
You need a script.     It has been done, so search the forums - this comes up from time to time.   The usual way is to use the invisible target addon and doTarget and doFire commands.

If you're looking for staff, put an ad in the Recruitment Depot.   ;)   Advertising is not allowed in the forums, though you'll probably get away with it since there was a question in the post too.  
Plenty of reviewed ArmA missions for you to play

Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:strafing
« Reply #4 on: 28 Oct 2004, 16:40:49 »
Use Igor Drukov's chain script available on this page. You can easily script a row of bullets, bombs, cars, tanks, whatever you want!


                                                                Wadmann
Check out my Camouflage Collection! New items added 31 July 2005.

Uldics

  • Guest
Re:strafing
« Reply #5 on: 28 Oct 2004, 20:34:45 »
I would make a script with invisible marker and target it and that dofire thingy there. Then in your script just move jour markers position according to COG (Center Of Gravity) of your enemy.

Dubieman

  • Guest
Re:strafing
« Reply #6 on: 28 Oct 2004, 22:54:25 »
Well, I know my script has its shortcomings, but there was one in the scripting beta board....

Of course you could mod my script to move the invisible target to other groupies instead of the leader. OR once the leader dies addon another piece of script to attack next leader and so on. ;)

But my script was mainly for rockets and missiles not really for the MGs or cannons. Cause helis usually use cannon on infantry. I wanted rocket attacks... :P

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:strafing
« Reply #7 on: 28 Oct 2004, 23:59:55 »
Ok you have to know this is great and all but I do not know didily squat about scripting. I need somthing simple. it dosent even need to target sombody just shoot in a straight line across a group of bad guys If the script is working the minnigun should not even target a person.

I am trying to learn to script but it is awfully complicated.
How long did it take you guys to go from knowing nothing about scripting to being an expert scripter?
Thankyou for all the help

also please dont tell me about any tuts Ive tried them all already

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:strafing
« Reply #8 on: 29 Oct 2004, 02:08:30 »
Quote
How long did it take you guys to go from knowing nothing about scripting to being an expert scripter?

Ages.    Well, ages to get to intermediate scripter, which is where I stuck.

Once you've been through the tutes, and understand them, then there are three ways to progress.

1)  Read more complicated tutes

2)  Study other people's scripts (for example from the Ed Depot)

3)  Write your own.   There's no better way to learn than just solving the problems yourself.

My bonus tip is to read the whole of the comref like a book.  Both online and unofficial versions.    Twice each.   Don't stop to understand every command, just get a good idea of what's there.    That will give you a feel for the art of the possible.

Plenty of reviewed ArmA missions for you to play

Offline Blanco

  • Former Staff
  • ****
Re:strafing
« Reply #9 on: 29 Oct 2004, 02:42:02 »
I use Wadman's script in the betascript corner in a mission and it works great.Sure, only the leader of a group is a target, but that solveable with a random command.

About learning scripts...

I've started 2 and a half years ago without any script knowledge (just a little basic  ::) )
I've started to read the command reference, first the official then the unofficial.
I also read several basic and advanced scripting tutorials but I"m what they call a selfmade man,... so I had to see and do it by myself ,so I wrote lots of small testmissions for every command that wasn't so obvious for me.
But the best tool to learn scripting is imo unpbo...to take a peek in other pll scripts.
Step by step ,command by command, take your time, take notes,  actually it's quite logical stuff.

And I have still so much to learn... :)

And offcourse you are on the perfect place here, OFPEC is the ultimate source to learn editing and scripting.








 
« Last Edit: 29 Oct 2004, 02:44:04 by Blanco »
Search or search or search before you ask.

Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:strafing
« Reply #10 on: 29 Oct 2004, 16:32:14 »
@penguinman

You stated "it dosent even need to target sombody just shoot in a straight line across a group of bad guys If the script is working the minnigun should not even target a person." Did you read the chain script info?

Quote
Examples : [john,[-5,0],[5,0],10,0.1,0,0.2,"bulletsinglew"] exec "chain.sqs" will create a 10 west-bullet gunburst starting 5 meters on John's left and ending 5 meters on his right, with 0.1 second between each bullet.

Is that not what you want? He even gave you an example on how to use it so it should be rather easy to use in you mission. If not, just let us know what you are having problems with and I am sure you will get the help you need in no time!

@Blanco

PM me please (or reply in the beta topic) as I would like to know how to modify the script to truly target units in a random fashion. Thanks!

                                                           Wadmann
Check out my Camouflage Collection! New items added 31 July 2005.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:strafing
« Reply #11 on: 29 Oct 2004, 19:21:33 »
Well the thing is I want bullets that actualy came from the minigun because It makes not only a single line of bullets but the bullets are spread out and well this is hard to say if you havent shot the BAS blackhawks minigun. but say if you shot in a straight line across the ground. Just when your in the turret push the minigun as far to the left as it will go then start firing and pull it right across the middle and as far right as it will go then stop firing and get out and observe the bullet marks you will see they are spread out not just in the line you pushed the minigun but also up and down like there could be four bullets in a cross about 1 inch apart.

I cant explain it very well so just get the BAS blackhawks  and do what I said, you will see what I mean ;D

Dubieman

  • Guest
Re:strafing
« Reply #12 on: 29 Oct 2004, 21:01:43 »
Scritping comes with time. I learned a different way when I started back in July 03, well I had the game in 02...

Go through tuts, upbo things, learn from others, and I just basically kept soaking up the info and that's where I am now. An Intermediate scriptor a bit below Macca and others. I had no expirence with scripting before either. And I thought it was a pain in the ass and stupid sometimes when I started.

Now, for your problem, you want the hawk to just blast a straight line and not target anyone? Maybe use the lesters invisible targets and just put the man targets down near troops and just make the Blackhawk dotarget and dofire on them... :P