OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Rytuklis on 25 Jul 2013, 17:33:14

Title: OFP ignores "BLACK FADED" ??
Post by: Rytuklis on 25 Jul 2013, 17:33:14
I'm having a little problem with the cutscene script here:

Code: [Select]
; ****************************************************************
; Script file for Armed Assault
; Created by: TODO: Author Name
; ****************************************************************

_camera = "camera" camCreate [7682.46,5350.85,2.00]
_camera cameraEffect ["internal","back"]

0 fadesound 0

showcinemaBorder false

titlecut ["","BLACK FADED",2]
~2
titlecut ["Rytuklis presents..","BLACK FADED",2]
~2
titleCut ["Rytuklis presents..","BLACK OUT",3]

3 fadesound 0.5

_start = _time
#camloop
_camera camsettarget car1
_camera camsetRelpos [-2, 3, 2]
_camera camcommit 0

? !(_time >= (_start + 9)) : goto "camloop"

~4

_start = _time
#camloop1
_camera camsettarget car1
_camera camsetRelpos [3, -2, 2]
_camera camcommit 0
~0.01

? !(_time >= (_start + 9)) : goto "camloop1"

What happens is that at the start, instead of showing the black screen for the specified time, it starts immediatly FADING OUT at mission start, regardless if i use "BLACK IN" or "BLACK OUT'. Help?
Title: Re: OFP ignores "BLACK FADED" ??
Post by: Lenyoga on 25 Jul 2013, 21:11:58
The cinematic commands in OFP/CWA are a bit of a mystery. Some have the same function, but are named differently. I tested it and saw what you mean, and just used a little workaround:

Code: [Select]
titlecut ["","BLACK IN",1000]
~2
titlecut ["Rytuklis presents..","BLACK IN",1000]
~2
titleCut ["Rytuklis presents..","BLACK IN",3]

This way, the fade-in takes long enough to give the impression that the screen is fully black. Otherwise you could also do the same and just overlay a titleText command instead of the second titleCut, which would just be a shorter titleCut without text and only fade. I hope this helps!
Title: Re: OFP ignores "BLACK FADED" ??
Post by: savedbygrace on 07 Aug 2013, 06:37:18
From my own experience, "BlackFaded" has worked before. It could have been in OFP and Not CWA though. It works as an instantaneous black out, not a fade.