Forum Jump :

Author Message


Posts: 373
Rank:


Level: Member

Country: nz
Location: NZ
Occupation:
Age: 33
In-game name:

 
#5894 Posted at 2007-06-01 00:18        
     
DeadbyDawn : I have never made a game movie so wouldn`t know where to start and while it would probably look cool, perhaps that isn`t a good way to go anyway.

Any suggestions?
Hi,
Not sure if this is what you were asking for or not but this is the easiest way i found to understand how to do a cut scene (similiar things listed all over the place :))

First go to your mission folder in your documents/mission and open it. Right click and create a notepad doc called init
Open it and type this in player exec "camera.sqs"
Then click save as and where it says "save as type" press down and select "all files" and save the file again as init.sqs
Then load up which ever mission you placed the "init.sqs" in and you should appear as a camera (starting at the player) you move it around and tilt it with the num pad keys.

When you have found a position you want left click the mouse. Now alt-tab out and load up init.sqs and select paste under the player exec "camera.sqs" line. Those are the directions for the position you wanted the camera in. Alt-tab again back into the game and choose more positions in the same way.

So your init.sqs should look something like this


player exec "camera.sqs"
;===18:11:01
_camera camprepareTarget [-78010.0,-21313.66,127485.56]
_camera camPreparePos [13242.25,8963.63,3.84]
_camera camPrePareFOV 0.700
_camera CamcommitPrepared 0
@camCommited _camera

;===18:09:01
_camera camprepareTarget [-57843.0,-21313.66,127485.56]
_camera camPreparePos [13242.25,8963.63,3.84]
_camera camPrePareFOV 0.700
_camera CamcommitPrepared 0
@camCommited _camera

;===18:07:01
_camera camprepareTarget [-55785.0,-21313.66,127485.56]
_camera camPreparePos [13242.25,8963.63,3.84]
_camera camPrePareFOV 0.700
_camera CamcommitPrepared 0
@camCommited _camera


Now open init.sqs and delete the player exec "camera.sqs" line and replace it with this

_camera="camera" CamCreate [0,0,0]
_camera cameraeffect ["internal","back"]

This is just us creating the camera with a basic effect (for more effects see the scripting sticky)

Now we choose how long a camera stays at a certain position and how long before it goes to the next position.

;===18:11:01
_camera camprepareTarget [-78010.0,-21313.66,127485.56]
_camera camPreparePos [13242.25,8963.63,3.84]
_camera camPrePareFOV 0.700
_camera CamcommitPrepared 0
@camCommited _camera

Ok the important lines are
_camera camPrePareFOV 0.700
This is the field of view of the camera, if say you made it 0.300 the camera would be zoomed in alot more.
_camera CamCommitPrepared 0
This is how long it takes to get to this camera from the previous one, if you want the camera to instantly move to this position keep it at 0. If however you want the camera to move between the last placed camera position and this one in 5 seconds make it 5. 10 for ten seconds ect :D
Now if you want the camera to wait at the position not moving for a set time you place
~5
after
@camCommited _camera 
. 5 being the time in seconds before it continues moving to the next position. So this is what it should look like if you want it to wait 8 seconds at this position
;===18:11:01
_camera camprepareTarget [-78010.0,-21313.66,127485.56]
_camera camPreparePos [13242.25,8963.63,3.84]
_camera camPrePareFOV 0.700
_camera CamcommitPrepared 0
@camCommited _camera
~8

So if you followed all that your init.sqs should look something like this

_camera="camera" CamCreate [0,0,0]
_camera cameraeffect ["internal","back"]

;===18:11:01
_camera camprepareTarget [-78010.0,-21313.66,127485.56]
_camera camPreparePos [13242.25,8963.63,3.84]
_camera camPrePareFOV 0.700
_camera CamcommitPrepared 0
@camCommited _camera
~6

;===18:09:01
_camera camprepareTarget [-57843.0,-21313.66,127485.56]
_camera camPreparePos [13242.25,8963.63,3.84]
_camera camPrePareFOV 0.700
_camera CamcommitPrepared 8
@camCommited _camera
~1

;===18:07:01
_camera camprepareTarget [-55785.0,-21313.66,127485.56]
_camera camPreparePos [13242.25,8963.63,3.84]
_camera camPrePareFOV 0.700
_camera CamcommitPrepared 4
@camCommited _camera
~1

So this will start at the first position, wait for 6 seconds (~6) then take eight seconds travelling between the first and second position (_camera CamcommitPrepared 8) Then wait there for 1 second. Then take four seconds (_camera CamcommitPrepared 4) to reach the last position which it waits at for 1 second.

To end the cutsceen and go back into been able to use the player put this at the end
_camera cameraeffect ["terminate","back"]
Camdestroy _camera

But yeah this is just the most basic way to do it i think. Probably not even what you wanted but I had a moment so i thought i might as well jot down the little that on know on the subject :)