Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
therev709

Ugh . . . Camera woes

Recommended Posts

I managed to successfully have an intro sequence on my first publically released mission: Cold Harvest.

However. . . I cannot for the life of me get the intro sequence to work for the new mission I'm working on.

I've double checked everything, and have done everything the exact same way as what worked for my first mission.

Whats not working is the cutscene script will only create the first camera, but wont go on to the second or or end the cutscene. The camera is showing up in game, but only the first one, the script wont create a second camera (or at least not go to it) nor will it show the text or end the mission, it just stops working after creating the first camera.

Here is my cutscene.sqf for my second mission that WONT work:

//Beginning
_camera = "camera" camCreate [-75968.06,61566.03,-16260.34];
_camera camPrepareTarget [-75968.06,61566.03,-16260.34];
_camera camPreparePos [2056.89,1175.07,20.35];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 0;
waitUntil { camCommitted _camera };

_camera cameraEffect ["internal","back"];

sleep 20;

//Foot Zoom
_camera2 = "camera" camCreate [-77080.14,-59659.24,6964.27];
_camera2 camPrepareTarget [-77080.14,-59659.24,6964.27];
_camera2 camPreparePos [1599.06,1670.36,1.23];
_camera2 camPrepareFOV 0.074;
_camera2 camCommitPrepared 0;
_camera2 camCommit 0;
waitUnitl { camCommitted _camera2 };

_camera2 cameraEffect ["internal","back"];
camDestroy _camera;

sleep 10;

cutText["OPERATION Jackal's Hunt", "BLACK OUT", 7];

sleep 7;

_camera2 cameraEffect ["terminate", "back"];
camDestroy _camera2;

endMission "END1";

Here is the code for the first mission which did work:

playMusic "Intro1";

//=== 12:17:29 - Soldier Destroys Chopper
_camera = "camera" camCreate [5523.25,103524.10,162.33];
_camera camPrepareTarget [5523.25,103524.10,162.33];
_camera camPreparePos [5515.82,3530.17,1.03];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 0;
waitUntil { camCommitted _camera };

_camera cameraEffect ["internal","back"];

sleep 7;

//=== 12:02:53 - Guard Kills Insurgent
_camera2 = "camera" camCreate [-88961.52,36314.01,154.36];
_camera2 camPrepareTarget [-88961.52,36314.01,154.36];
_camera2 camPreparePos [5532.61,3590.25,1.19];
_camera2 camPrepareFOV 0.700;
_camera2 camCommitPrepared 0;
_camera2 camCommit 0;
waitUntil { camCommitted _camera2 };

_camera2 cameraEffect ["internal","back"];
camDestroy _camera;


sleep 4;

//=== 12:03:33 - Insurgent Kills Guard
_camera3 = "camera" camCreate [35326.43,99031.02,154.83];
_camera3 camPrepareTarget [35326.43,99031.02,154.83];
_camera3 camPreparePos [5525.32,3574.85,1.75];
_camera3 camPrepareFOV 0.160;
_camera3 camCommitPrepared 0;
_camera3 camCommit 0;
waitUntil { camCommitted _camera3 };

_camera3 cameraEffect ["internal","back"];
camDestroy _camera2;

sleep 5;

//=== Insurgents Storming Resort
_camera4 = "camera" camCreate [91316.25,-31461.96,-37334.93];
_camera4 camPrepareTarget [91316.25,-31461.96,-37334.93];
_camera4 camPreparePos [5479.32,3602.16,15.07];
_camera4 camPrepareFOV 0.700;
_camera4 camCommitPrepared 0;
_camera4 camCommit 0;
waitUntil { camCommitted _camera4 };

_camera4 cameraEffect ["internal","back"];
camDestroy _camer3;

sleep 2;

cutText["OPERATION COLD HARVEST", "BLACK OUT", 7];

7 fadeMusic 0;
sleep 7;

_camera4 cameraEffect ["terminate", "back"];
camDestroy _camera4;
playMusic "Intro1";
0 fadeMusic 1;
endMission "END1";

I plan on maybe one more camera sequence or two for my new mission, along with music, but I can't do anything until i get the darned camera to freakin work :(

Share this post


Link to post
Share on other sites
Sign in to follow this  

×