Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Camera Script not ending  (Read 993 times)

0 Members and 1 Guest are viewing this topic.

Offline Blacknite

  • Members
  • *
  • Chiefs runs the navy!
Camera Script not ending
« 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

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re: Camera Script not ending
« Reply #1 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.

...NIGHT WALKER....

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re: Camera Script not ending
« Reply #2 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 ;)

Offline Blacknite

  • Members
  • *
  • Chiefs runs the navy!
Re: Camera Script not ending
« Reply #3 on: 04 Jul 2006, 18:53:50 »
It was my trigger...  As well as the script.  I didnt put down endcut=true.