OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tom on 01 Sep 2006, 07:10:35

Title: ending unscripted cutscenes
Post by: Tom on 01 Sep 2006, 07:10:35
I'm hopeless with anything that has to do with scripts, and cutscene scripts are no exception. I have, however made some pretty good intros using the inbuilt thing in the editor, but i have no idea on how to do the following while they're playing:

- Fade in
- Fade out
- Once it fades out, how do i get the intro to end, then continue onto game.

If theres no way to do these then...well, I'll either have to continue wrangling with the scripts or not bother with cutscenes.

Thanks in advance.
Title: Re: ending unscripted cutscenes
Post by: bedges on 01 Sep 2006, 09:33:12
for fade ins you could look at the cuttext and titletext commands. alternatively, since you're using triggers, look at the bottom of the effects dialog and you'll see the "titles" bit. if you want a fade-to-black, choose text, type a space in the text bit, and choose "black out" from the effect drop-down. same for fade-from-black.

as for ending a cutscene, create a trigger with "type" set as "end #1". in the condition line put end_my_intro.

now decide when your cutscene ends. what's the last thing that happens? you'll need to sense somehow when that last action is complete, either with an area trigger, or a timer. either way, once the final conditions are met set up the final trigger with an "on activation" box reading end_my_intro = true.

the cutscene will now end, and the mission will continue. not a very clear explanation, but you should get the gist.
Title: Re: ending unscripted cutscenes
Post by: Tom on 05 Sep 2006, 07:54:46
Thank you!  :D :)