The-Architect 0 Posted March 28, 2004 I have this at the end of my cutscene script. ~5 _cam cameraeffect ["terminate", "back"] camdestroy _cam exit But it won't end. What do I put? Share this post Link to post Share on other sites
MrZig 0 Posted March 28, 2004 Your sure the rest of your script is _cam and not _camera ? Share this post Link to post Share on other sites
The-Architect 0 Posted March 28, 2004 Here's the whole thing, _cam = "camera" camcreate [0,0,0] _cam cameraeffect ["internal", "front"] _cam camsettarget camper2 _cam camsetrelpos [0,10,2] _cam camcommit 0 titlecut [" ","BLACK IN",10] ~2 _cam camsetrelpos [0,1,1.5] _cam camcommit 5 @camcommitted _cam ~1 playsound "made" ~9 _cam camsettarget radio _cam camsetrelpos [0,-1,0.5] _cam camcommit 0 @camcommitted _cam playsound "read" ~33 _cam camsettarget mid _cam camsetrelpos [0,20,0.5] _cam camcommit 0 @camcommitted _cam ~35 _cam camsettarget tank _cam camsetrelpos [0,-25,10] _cam camcommit 0 @camcommitted _cam ~9 _cam camsettarget victor _cam camsetrelpos [0,-5,0.5] _cam camcommit 0 @camcommitted _cam ~9 titlecut [" ","black out",2] ~5 _cam camsettarget tg _cam camsetrelpos [0,-30,10] _cam camcommit 0 @camcommitted _cam titlecut ["The next day.","BLACK IN",2] ~5 playsound "speech" _cam camsetrelpos [0,-20,5] _cam camcommit 5 @camcommitted _cam ~4 _cam camsettarget asse _cam camsetrelpos [0,5,1.5] _cam camcommit 0 @camcommitted _cam ~4 _cam camsettarget asse1 _cam camsetrelpos [0,5,1.5] _cam camcommit 15 @camcommitted _cam ~10 titlecut ["O P E R A T I O N F R E E D O M","black out",2] ~5 4 Fadesound 0 4 fademusic 0 ~4 _cam cameraeffect ["terminate", "back"] camdestroy _cam exit Hope you can help. Share this post Link to post Share on other sites
MrZig 0 Posted March 28, 2004 Try putting a titlecut at <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">~4 titlecut ["Is the script making it here?","plain"] _cam cameraeffect ["terminate", "back"] camdestroy _cam exit Share this post Link to post Share on other sites
The-Architect 0 Posted March 28, 2004 Yep It displayed that bit fine. After the blackout and "OPERATION FREEDOM" came up and disappeared. I even tried putting an editor "end" into the cutsene on a timer but that didn't work either. Share this post Link to post Share on other sites
Winters 1 Posted March 28, 2004 this should help, try adding a line to your script at the end <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">titlecut ["O P E R A T I O N  F R E E D O M","black out",2] ~5 4 Fadesound 0 4 fademusic 0 ~4 endcut = true _cam cameraeffect ["terminate", "back"] camdestroy _cam exit Now set up a trigger and make it's type end#3 and in the condition field type; endcut Hope this helps  Share this post Link to post Share on other sites
MrZig 0 Posted March 29, 2004 Are you saying the cutscene wont end or the mission wont? Share this post Link to post Share on other sites
The-Architect 0 Posted March 29, 2004 Nope that didn't work either It's the intro cutscene. Share this post Link to post Share on other sites
MrZig 0 Posted March 29, 2004 Well I did <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _cam = "camera" camcreate [0,0,0] _cam cameraeffect ["internal", "front"] _cam camsettarget camper2 _cam camsetrelpos [0,10,2] _cam camcommit 0 titlecut [" ","BLACK IN",10] ~2 _cam camsetrelpos [0,1,1.5] _cam camcommit 5 @camcommitted _cam hint "OMG" ~4 _cam cameraeffect ["terminate", "back"] camdestroy _cam exit and it works, dunno what your problem is. Share this post Link to post Share on other sites
joltan 0 Posted March 29, 2004 Simple - you faded out - now you need to fade in again: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">TitleText [" ","black in",2] else the screen will stay black ;) Share this post Link to post Share on other sites
Winters 1 Posted March 29, 2004 Ha ha ha, I can't believe i missed that, you gotta tell the game to fade back in or your stuck. Share this post Link to post Share on other sites
The-Architect 0 Posted March 29, 2004 But if I fade back in surely it will show units i don't want to see. I want the cutscene to end and then the briefing to come straight up. Its that intro cutscene. Share this post Link to post Share on other sites
joltan 0 Posted March 29, 2004 Ah, missed that - intro cutscenes. Well, you have to end it just like a mission (the intro/outro cutscenes in sp are basically just seperate missions). Place a trigger that ends the intro on completing your camera script (use a variable to trigger it). Share this post Link to post Share on other sites
The-Architect 0 Posted March 29, 2004 What like "west present" or summit? Share this post Link to post Share on other sites
RED 0 Posted March 29, 2004 Make a trigger type end #1 with the following in the condition field: endintro Then at the end of your camera script put: _cam cameraeffect ["terminate", "back"] camdestroy _cam endintro = true exit RED Share this post Link to post Share on other sites