Home   Help Search Login Register  

Author Topic: Hornet fly-by in outro  (Read 2220 times)

0 Members and 1 Guest are viewing this topic.

Tasku

  • Guest
Hornet fly-by in outro
« on: 14 Mar 2004, 06:15:20 »
Hi ya oh wise scripters...

I've been makin my own missions and campaings for Flashpoint for years but nobody told me there were these marvellous things called "scripts" to use in the process..

So now that I know, I must use em, eaven if I don't know how  :-\

I have an outro on a campaing mission (wich maybe someday can be downloaded from these pages  :) ) where I need a Hornet to flyover in the end, meaning it has to be created just before it flyes and preferrably from a trigger?

How do I do that? And please explain step by step, I'm so out with these script things... my only hope is to copy paste and use em again and again on other missions  ;D

Thanks in advance!

Lucky Ed

  • Guest
Re:Hornet fly-by in outro
« Reply #1 on: 14 Mar 2004, 11:35:13 »
If you are a serious mission maker, you should learn scripting.
I recommend using Johan Gustafsson's Scripting Tutorial
It's very easy to understand but still has a step enough learning curve so you feel you are getting somewhere.

it can be found here http://www.ofpec.com/editors/browse.php?category=1_3


Lucky Ed

  • Guest
Re:Hornet fly-by in outro
« Reply #2 on: 14 Mar 2004, 11:39:32 »
Oh yeah forgot...
I takes about an hour to learn the basic scripting, so it's not like this will take the next two weeks.
 ;D

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Hornet fly-by in outro
« Reply #3 on: 14 Mar 2004, 12:26:38 »
I'd just use waypoints and triggers for what you want ... have the Hornet out of sight somewhere on a hold waypoint, and bring him in with a switch trigger and amove waypoint.   You'll just need to experiment a little to get the timing right.

Lucky Ed is right, basic scripting is essential and very easy.   That is an excellent tutorial to get you started:  also well worth reading at the beginning is snYpir's Friendly Intro to Code Snippets.
Plenty of reviewed ArmA missions for you to play

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Hornet fly-by in outro
« Reply #4 on: 14 Mar 2004, 12:39:02 »
I wouldnt bother with the WPs, I just put the plane in from the editor as flying, point him in the direction you want him to fly over, and then move him out of the way.

When your outro comes up, setpos him to a position so that as he keeps flying along (which he will without ever changing direction) he passes over your camera.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Hornet fly-by in outro
« Reply #5 on: 14 Mar 2004, 14:23:10 »
Surely you've used scripts before when making a campaign?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Tasku

  • Guest
Re:Hornet fly-by in outro
« Reply #6 on: 14 Mar 2004, 14:34:08 »
Hmm... can't do it with the waypoints since it makes noise on the background and that's not cool...

Oh well I guess I need to check out that tutorial, since now that I know I can get that frekkin hornet there, I just have to frekkin get it!  ;D

Thanks for your help fellas..

Tasku

  • Guest
Re:Hornet fly-by in outro
« Reply #7 on: 14 Mar 2004, 14:36:59 »
Architecht...

No I have that campaing editing tool thing... and I've only used those ready made artillery scripts and all that... don't know the process or where the commands should be typed..

DBR_ONIX

  • Guest
Re:Hornet fly-by in outro
« Reply #8 on: 14 Mar 2004, 15:19:07 »
Hmm..
Put a marker down (Invisible H or something)
Call it flyover

Make a unit for the pilot, call him flyoverpilot
Give him a waypoint over where you want him to fly (He will fly to it when he gets shoved in the plane.. Put him out the way)
And put his health slider down to 0 (Put put in his INIT field, this setdammage 1)

In a script (Use Notepad), put :
Code: [Select]
flyoverplane = "NameOfHornet" createunit [getpos flyover select 0, getpos flyover select 1, 50]
flyoverpilot setdammage 0
flyoverpilot moveindriver flyoverplane
exit
Save this as flyover.sqs
Tada.. It makes a plane where you put that H, at 50m (You can change this bit)

Not in the triggers activation field, put [] exec "flyover.sqs"

Hope you understand :)
- Ben
BTW, he will fly from the H to the waypoint, but will have to correct hit course (He will be facing north... I can't remeber if flyoverplane setdir 0 - 359 works
If it does, use something like flyoverplane setdir 270
You will need to experement with it..

Tasku

  • Guest
Re:Hornet fly-by in outro
« Reply #9 on: 14 Mar 2004, 16:36:11 »
Okay done that just one more silly little noobish problem...

How do I make that flyover.sqs-file into an sqs file? Since it's now a "text document" file with an sqs ending... and the game can't find it

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Hornet fly-by in outro
« Reply #10 on: 14 Mar 2004, 16:40:24 »
Right click on your file and rename it to:

Whatever.sqs


btw.......you can see file extensions on your machine can't you?

Planck
« Last Edit: 14 Mar 2004, 16:41:34 by Planck »
I know a little about a lot, and a lot about a little.

Tasku

  • Guest
Re:Hornet fly-by in outro
« Reply #11 on: 14 Mar 2004, 16:43:30 »
Nevermind that, I managed  :)

Only now it says "error invalid number in expression"...  ???

What number?? What expression??

Who? Huh?
« Last Edit: 14 Mar 2004, 16:57:35 by Tasku »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Hornet fly-by in outro
« Reply #12 on: 14 Mar 2004, 17:37:18 »
Try posting your script so we can see if there are any obvious errors.


Planck
I know a little about a lot, and a lot about a little.

Tasku

  • Guest
Re:Hornet fly-by in outro
« Reply #13 on: 14 Mar 2004, 17:49:44 »
This is the script DBR Onix recommended earlier, I figured I have to name the plane and put it in a remote location on the map from where it will be copied (right? wrong?)... so I named it "flyoverplane" in the script...

But only after it didn't work unchanged...  :-\

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Hornet fly-by in outro
« Reply #14 on: 14 Mar 2004, 18:03:27 »
Your script wasnt right.....it didn't display correctly here, every letter was separated by a space........anyway, try this one.

This one is named flyover2.sqs because the site wouldn't let me use flyover.sqs because it was already used.......just rename it to flyover.sqs when you try it


OOPs......just noticed you will need to rename the plane back to the name you had before.....sorry I forgot to change that for you.

Planck
« Last Edit: 14 Mar 2004, 18:17:50 by Planck »
I know a little about a lot, and a lot about a little.