OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Blacknite on 04 Jul 2006, 00:31:22

Title: Camera Script not ending
Post by: Blacknite on 04 Jul 2006, 00:31:22
I've been trying to make an outro, but the camera doesnt end!  Instead, it leaves it at a black screen...

This is what I have:
Quote
titlecut [" ","BLACK IN",3]
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]


_cam camsettarget JackHamilton
_cam camsetrelpos [-10,10,7]
_cam camcommit 0
@camcommitted _cam

~1
E say "x04av01"
~4
_cam camsettarget JackHamilton
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam
JackHamilton say "x04av02"
~3
_cam camsettarget E
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam
E say "x04av03"
~3
_cam camsettarget JackHamilton
_cam camsetrelpos [-1,1,1]
_cam camcommit 0
@camcommitted _cam
JackHamilton say "x04av04"
~3
_cam camsettarget E
_cam camsetrelpos [-1,1,1]
_cam camcommit 0
@camcommitted _cam
E say "x04av05"
~3
_cam camsettarget JackHamilton
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam
JackHamilton say "x04av06"
~4
titlecut ["","BLACK OUT",2]
~2
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
End1
exit
Title: Re: Camera Script not ending
Post by: Blip on 04 Jul 2006, 01:35:27
try making the end like this...

Quote
titlecut ["","BLACK OUT",2]
~2
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
End1
titlecut ["","BLACK IN",2]
exit

Also what does End1 do.  You need a trigger to end the outro completely.

Title: Re: Camera Script not ending
Post by: Sui on 04 Jul 2006, 01:40:18
My hunch it that it's your trigger (or condition).

One common mistake that I've made on several occasions is having two triggers set to the same end #. The conditions for both of those triggers need to be met before the mission (outro in this case) will end...

Also, check for spelling etc. as that's one that continually trips me up ;)
Title: Re: Camera Script not ending
Post by: Blacknite on 04 Jul 2006, 18:53:50
It was my trigger...  As well as the script.  I didnt put down endcut=true.