OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 07 Jun 2004, 13:00:17

Title: Why wont u frickin black out?
Post by: Gooner861 on 07 Jun 2004, 13:00:17
This is the end of my outro, so i want it to black out and then with the screen black i want to add credits etc. but for sum reason it'll black out than go back to the last shot  >:( .

_camera camSetTarget [99330.86,-5192.03,47336.04]
_camera camSetPos [11520.30,2249.96,0.86]
_camera camSetFOV 0.018
_camera camCommit 0
titlecut ["","BLACK OUT",6]
~5
titlecut ["Blah Blah ","plain down",1]
~3
titlecut ["Blah Blah","plain down",1]
~3
titlecut ["Blah Blah","plain down",1]
~3
titlecut ["Blah Blah","plain down",1]
@camCommitted _camera
~10

_camera cameraeffect ["terminate", "back"]
camdestroy _camera

exit

Wots frickin wrong wit it?

Thank you, gooner  ;D .
Title: Re:Why wont u frickin black out?
Post by: ponq on 07 Jun 2004, 13:09:18
why not use "titletext" instead of titlecut?
Title: Re:Why wont u frickin black out?
Post by: Gooner861 on 07 Jun 2004, 13:11:13
Please tell me yor aving a laugh...... if ive just spent quite a while moaning bout why it doesnt work and its only cos of titletext im goin to scream.  >:( ;D >:(
Title: Re:Why wont u frickin black out?
Post by: Gooner861 on 07 Jun 2004, 13:19:16
Nah that didnt work either, it blacks out but then just flicks straight back to the last scene.
Title: Re:Why wont u frickin black out?
Post by: h- on 07 Jun 2004, 13:28:11
First of all, you don't need the @camcommitted there...
Actually there is not many situations you would need that, I have almost never used it...
And most definately you wont need the @camcommitted when you camera has camCommit 0...

The first titleCut is correct, it blacks out the screen...
After that use titleText...

titlecut ["","BLACK OUT",6]
~5
titleText ["Blah Blah ","plain down",1]
~3
titleText ["Blah Blah","plain down",1]
~3
titleText ["Blah Blah","plain down",1]
~3
titleText ["Blah Blah","plain down",1]
~10

If that doesn't work... well.. then it won't  ::)
Title: Re:Why wont u frickin black out?
Post by: ponq on 07 Jun 2004, 13:36:58
lol, forgot to refresh the page... HateR_Kint said it all.
____________

I tried to play a bit with it myself and titletext did work where titlecut failed.

This code worked for me:
(I did paste your code into my existing intro script)
Code: [Select]

;viewdistance laag zetten voor fps/lag.
SetViewDistance 500

;camera maken
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]



;=== stel maan
_camera camSetTarget [78712.43,-55127.26,19036.91]
_camera camSetPos [6440.43,11320.00,1.14]
_camera camSetFOV 0.217
_camera camCommit 0
;~3

;***** your part starts here***** I "commented" the first few lines, cos I didn't know where you put the cam

;test

;_camera camSetTarget [99330.86,-5192.03,47336.04]
;_camera camSetPos [11520.30,2249.96,0.86]
;_camera camSetFOV 0.018
;_camera camCommit 0

titlecut [" ","BLACK out",6]
~5
titletext ["Blah Blah ","plain down",1]
~3
titletext ["Blah Blah","plain down",1]
~3
titletext ["Blah Blah","plain down",1]
~3
titletext ["Blah Blah","plain down",1]
@camCommitted _camera
~10

_camera cameraeffect ["terminate", "back"]
camdestroy _camera

exit

;einde test

I'm not sure why it differs, but maybe this helps.
Title: Re:Why wont u frickin black out?
Post by: macguba on 07 Jun 2004, 14:36:41
The blackout effect does exactly what it says on the tin - it blacks out the screen.    When the command expires, in this case after 6 seconds, the effect ends.    You need to do something like this

titlecut [" ","BLACK out",6]
blah blah
~6
titlecut ["","BLACK IN",99999]

to keep the screen black.
Title: Re:Why wont u frickin black out?
Post by: h- on 07 Jun 2004, 15:54:57
Quote
When the command expires, in this case after 6 seconds, the effect ends.
Nope.

The 6 seconds means it takes 6 seconds for the screen to get black, it's the 'speed' of the fade to black...

I put titleCut ["","Black Out",6] in a missions init.sqs and the screen has been black now for 2 minutes... ::)
Title: Re:Why wont u frickin black out?
Post by: macguba on 07 Jun 2004, 16:09:22
You're lucky, it's never done that for me.   :'(
Title: Re:Why wont u frickin black out?
Post by: Gooner861 on 07 Jun 2004, 16:40:10
Problem solved macguba's things helped cheers  ;D . Thanks everyone for help.
Title: Re:Why wont u frickin black out?
Post by: h- on 07 Jun 2004, 18:08:58
You're lucky, it's never done that for me.   :'(
???
Well this is the weirdest thing I've heard in a while...

I've used the black out stuff like this since the beginning (of OFP, not me ;D ) and it has always worked for me...
 ???

Well, that's just OFP apparently  ;)