arma:missions:cutscene_tutorial
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | arma:missions:cutscene_tutorial [2024/08/01 08:18] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ArmA 1 Cutscene Tutorial ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | **ArmA 1** aka Armed Assault (ArmA) | ||
+ | |||
+ | You can and should use SQF for camera scripts also, like this: | ||
+ | <code cpp> | ||
+ | // camera basic initialization | ||
+ | _camera = " | ||
+ | _camera cameraEffect [" | ||
+ | |||
+ | []; execVM " | ||
+ | |||
+ | // start | ||
+ | _camera camPrepareFOV 0.700; | ||
+ | _camera camCommitPrepared 0; | ||
+ | waitUntil { camCommitted _camera; }; | ||
+ | sleep 3; | ||
+ | |||
+ | titleText ["", | ||
+ | |||
+ | titleText ["", | ||
+ | titleCut ["", | ||
+ | 3 fademusic 0; | ||
+ | sleep 4; | ||
+ | |||
+ | // Destroy the camera | ||
+ | camDestroy _camera; | ||
+ | |||
+ | // end the intro | ||
+ | endcut = true; | ||
+ | </ | ||
+ | Note that the above is just a example, its not working script in itself. | ||
+ | |||
+ | |||
+ | ====== Making SP Cutscene ====== | ||
+ | |||
+ | Making a single player (SP) cutscene. Mission editor, choose Intro from the drop down. | ||
+ | |||
+ | Place soldier and make it player. | ||
+ | |||
+ | Place trigger, END#1 and put on condition line: endcut | ||
+ | |||
+ | On the mission / cutscene dir, make a script file called: movie.sqf | ||
+ | |||
+ | Place a gamelogic where you want to start your first camera run, and put on its init line this: | ||
+ | <code cpp> | ||
+ | this exec " | ||
+ | </ | ||
+ | |||
+ | Preview mission and camera is activated on the gamelogic' | ||
+ | |||
+ | Now with the default ArmA key configuration settings you can move the camera by using mouse, A S D W Q and Z keys. Camera rotates from the keypad numbers 4 left, 6 right, 8 tilt down, 2 tilt up etc. Most importantly every time you press FIRE button on your mouse, a clipboard.txt file in ArmA profiles directory root is updated with the camera settings for this particular viewpoint. | ||
+ | |||
+ | Do all your camera viewpoint savings like this, when you are done, press either ESC -> Abort, or V to exit camera and then ESC -> Abort to abort the cutscene/ | ||
+ | |||
+ | Open the clipboard.txt file in your ArmA profiles dir, copy paste the contents into your movie.sqf file, perhaps it might look something likes this now: | ||
+ | <code cpp> | ||
+ | |||
+ | // camera basic initialization | ||
+ | _camera = " | ||
+ | _camera cameraEffect [" | ||
+ | |||
+ | [] execVM " | ||
+ | |||
+ | // start | ||
+ | _camera camPrepareTarget [-89221.44, | ||
+ | _camera camPreparePos [8883.85, | ||
+ | _camera camPrepareFOV 0.700; | ||
+ | _camera camCommitPrepared 0; | ||
+ | waitUntil { camCommitted _camera; }; | ||
+ | sleep 3; | ||
+ | |||
+ | titleText [" | ||
+ | |||
+ | sleep 2; | ||
+ | |||
+ | // pan 1 | ||
+ | _camera camPrepareTarget [-41745.95, | ||
+ | _camera camPreparePos [8883.85, | ||
+ | _camera camCommitPrepared 10; | ||
+ | waitUntil { camCommitted _camera; }; | ||
+ | // pan 2 | ||
+ | _camera camPrepareTarget [-41745.95, | ||
+ | _camera camPreparePos [8883.85, | ||
+ | _camera camPrepareFOV 0.120; | ||
+ | _camera camCommitPrepared 10; | ||
+ | waitUntil { camCommitted _camera; }; | ||
+ | sleep 3; | ||
+ | |||
+ | // pan other side start | ||
+ | _camera camPrepareTarget [2127.08, | ||
+ | _camera camPreparePos [8662.31, | ||
+ | _camera camPrepareFOV 0.700; | ||
+ | _camera camCommitPrepared 0; | ||
+ | waitUntil { camCommitted _camera; }; | ||
+ | sleep 3; | ||
+ | |||
+ | // pan 1 | ||
+ | _camera camPrepareTarget [73720.75, | ||
+ | _camera camPreparePos [8662.31, | ||
+ | _camera camCommitPrepared 10; | ||
+ | waitUntil { camCommitted _camera; }; | ||
+ | // pan 2 | ||
+ | _camera camPrepareTarget [68009.46, | ||
+ | _camera camPreparePos [8662.31, | ||
+ | _camera camPrepareFOV 0.233; | ||
+ | _camera camCommitPrepared 10; | ||
+ | waitUntil { camCommitted _camera; }; | ||
+ | sleep 5; | ||
+ | |||
+ | titleText ["", | ||
+ | titleCut ["", | ||
+ | 3 fademusic 0; | ||
+ | sleep 4; | ||
+ | |||
+ | // Destroy the camera | ||
+ | camDestroy _camera; | ||
+ | |||
+ | // end the intro | ||
+ | endcut = true; | ||
+ | </ | ||
+ | Remember to save movie.sqf script file. | ||
+ | |||
+ | Now go back to the mission editor and to you player character, on its init line put | ||
+ | <code cpp> | ||
+ | this = [] execVM " | ||
+ | </ | ||
+ | |||
+ | Preview mission and your finished cutscene :) | ||