Koni 1 Posted June 30, 2010 (edited) Ok, Im pulling my hair out on this one. Im trying to script a camera cut scene in slow motion that will kick in during mission gameplay when a certain unit dies named "marek", but I can't for the life of me figure out how to do it. I have tried the following script... ShowCinemaborder false _camera cameraEffect ["internal","back"] _camera = camCreate getPos marek _camera camSetTarget marek _camera camsetrelPos [2.2.0] _camera camPrepareFOV 0.700 _camera camCommitPrepared 0 @camCommitted _camera ~2 I am using a seperate trigger with ! (alive marek) - On Act - SetAccTime 0.11500; []exec "marekdeath.sqf" which works fine for the slow motion but not the camera script. It's something I have never done is make a cutscene to run while playing in a mission, and I guess Im doing something very wrong :( Any help would be brilliant :) Edited June 30, 2010 by Koni Share this post Link to post Share on other sites
santafee 10 Posted June 30, 2010 im not sure but i guess you create the cam wrong. try something like this: _camera = "camera" camCreate [160.41,2784.90,3.27] with the coordinates you take from some place ingame. Share this post Link to post Share on other sites
IndeedPete 1019 Posted June 30, 2010 []exec "marekdeath.sqf" You're trying to execute a .sqf via "exec". But you should use instead: nul = [] execVM "marekdeath.sqf" OR [] exec "marekdeath.sq[b][color="Red"]s[/color][/b]" ;) Share this post Link to post Share on other sites
Koni 1 Posted June 30, 2010 I keep forgetting and mixing them up. Anyway, sorted them, but still nothing works for a cutscene This is my latest try... ShowCinemaborder false _camera cameraEffect ["internal","back"] _camera = "camera" camCreate getpos marek _camera camPrepareTarget getPos marek _camera camPrepareTarget marek _camera camSetTarget marek _camera camsetrelPos [2.2.0] _camera camPrepareFOV 0.700 _camera camCommitPrepared 0 @camCommitted _camera ~4 player cameraeffect ["terminate";""back"] camdestroy _camera end1=true; exit; Share this post Link to post Share on other sites
moricky 199 Posted July 1, 2010 _camera cameraEffect ["internal","back"] _camera = "camera" camCreate getpos marek First create the camera, then modify it: _camera = "camera" camCreate getpos marek _camera cameraEffect ["internal","back"] Share this post Link to post Share on other sites