Home   Help Search Login Register  

Author Topic: Ending an intro  (Read 528 times)

0 Members and 1 Guest are viewing this topic.

Skorp1on

  • Guest
Ending an intro
« on: 05 Dec 2003, 23:58:12 »
It took a while, but I made an intro that i'm pleased with (:
It was all going well during testing and then, right at the end, it failed me. Instead of slowly fading away, the screen abruptly went black. Is there any way I can stop this from happening? I tried setting the ending trigger to "Black out" and "Fading out" but neither worked. Thankd in advance everyone. ;)

GrimMonkey

  • Guest
Re:Ending an intro
« Reply #1 on: 06 Dec 2003, 01:20:35 »
Try something like:
Code: [Select]
TitleText [" ", "Black Out", 3]
~3
_camera cameraEffect ["Terminate", "Back"]
camDestroy _camera

Note:
TitleText [" ", "Black Out", 3 ]

This means how long it will take for the fading to happen. There shouldn't be a space after the number.


Beware the GrimMonkey

Skorp1on

  • Guest
Re:Ending an intro
« Reply #2 on: 06 Dec 2003, 02:17:06 »
So, is that a script I need to put into the mission's folder? Or do I put it into the triggers activation field? Thanks for the help BTW  :D

GrimMonkey

  • Guest
Re:Ending an intro
« Reply #3 on: 06 Dec 2003, 04:13:57 »
Wait a minute,

Didn't you make a camera script?
Or did you just have some triggers going on in a sequence?

If you want, I'll tell you how to start out a camera script.


Beware the GrimMonkey

Skorp1on

  • Guest
Re:Ending an intro
« Reply #4 on: 06 Dec 2003, 20:17:38 »
I admit it! I'm rubbish at scripting and cameras! I tried to learn the tuts, but I don't have much time... anyhoo, I made it using a system of maticulously well placed triggers. It actually looks quite good, I just need it to fade. T'would be a fine thing if ye showed me how to make a camera script, as I could then make the perfect intro....

Thanks BTW  :D

GrimMonkey

  • Guest
Re:Ending an intro
« Reply #5 on: 06 Dec 2003, 20:41:03 »
Using a bunch of triggers is all fine and good but it really limits the details of intros/outros.

GrimMonkey's Camera Tutorial:
How To Make A Camera (Put everything below in a new Notepad document):
Code: [Select]
_camera = "camera" camCreate [0,0,0]
; _camera means the name of the camera you'll be using.
; "camera" is either 'camera' or 'seagull', use 'camera' for now
; camCreate explains itself, and [0,0,0] is where it will be created
_camera cameraEffect ["Internal", "Back"]
; you probably saw this in the triggers 'Effects' field, it means that it will be
; your average camera.
_camera camSetTarget [i]Target[/i]
; this means you have to define a target for the camera to watch, it will
; always follow it. Can be a target or coordinates
_camera camSetRelPos [x,y,z]
; this is to set camera position relative to the target
; x=left and right, positve is left, negative is right
; y=forward and back, positve is forward, negative is back
; z=up and down, positve is up, negative is down
; all this is given that the unit is facing forward
_camera camCommit 0
; this defines how long it will take the camera to change from one position
; to another, 0 means it'll be instant, 1 means it'll take one second and
; so forth
@camCommitted _camera
~10
; this defines how long the camera will stay in its current position
; after ten seconds, it'll perform its next action

_camera camSetRelPos [x,y,z]
_camera camCommit n
@camCommitted _camera
~n
; this is to change position and only change position.
; you can give it a new target, or change the field-of-view,
; you can change camera effect and so on at any given time.
; also, you can play music, perform actions, everything you need in one intro
; can be defined in a script.
; If you want Whiting In or Blacking Out with no text, this is what you'll use,
; TitleText [" ", "Black In", 3], Black In can be changed to Plain, Plain Down,
; White Out, White In, and Black Out. See the 3, that tells how long
; it will take for the effect to appear.
; if you want text, use:
; TitleText ["Your Text Here", "Black In", 3]

; If you want to destroy the camera and end the intro/outro, use
_camera cameraEffect ["Terminate", "Back"]
camDestroy _camera
ForceEnd

That concludes my script, if I left anything out, tell me! Not everything is garunteed, just pulling this out from memory.

All the stuff that is coded should go into a NotePad document, save that as:
"Intro.sqs" in the missions foldier that you want it in. Of course, you'll have to write in the targets and whatnot. Do NOT put quotation marks on a script! It probably isn't good.

And in your Mission Editor, put this in a unit's Init. field:
This Exec "Intro.sqs"

Hope this helps,


Beware the GrimMonkey