[code]
Alright heres, a template for you to work from.
To start, when you make a camera you need to say this in the init field of the unit:
this exec "camera.sqs"
When you preview your mission, you will see a camera. Perfect! Now lets make a bloody nice video.
This is a script that goes inside your "mission name" folder in your ArmA profile directory. Examples:
C:\Documents and Settings\Brandon\My Documents\ArmA Other Profiles\Victor\missions\BombRun.Intro
or
C:\Documents and Settings\Brandon\My Documents\ArmA\missions\Movie1.Sara
Here is the script that should be inside your mission folder. Lets call this script "DesertCamera.sqs" inside mission name folder "Desert.Intro" (This script is done in Rahmadi)
~.001
ShowCinemaborder false
playmusic "atrack4"
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]
;Camera1
_camera camPrepareTarget [2543.27,102474.47,14.93]
_camera camPreparePos [2543.27,2474.47,0.20]
_camera camPrepareFOV 0.700
_camera camCommitPrepared 0
@camCommitted _camera
;Camera 2
;The camera from camera 1 will move here.
_camera camPrepareTarget [2897.26,2863.37,-0.00]
_camera camPreparePos [2890.27,2908.17,7.26]
_camera camPrepareFOV 0.700
_camera camCommitPrepared 0
@camCommitted _camera
_camera cameraeffect ["terminate", "back"]
camdestroy _camera
5 fademusic 0
; Exit this script
exit
Now here's a walk through on what each of those mean.
========================================================
~.001
ShowCinemaborder false --- No Border
playmusic "atrack4" --- Play music (from game, not your own music)
_camera = "camera" camcreate [0,0,0] --- Starting position of camera.
_camera cameraeffect ["internal", "back"] --- General Camera.sqs script requirement
;Camera1
_camera camPrepareTarget [2543.27,102474.47,14.93] --- Camera's target/looking position.
_camera camPreparePos [2543.27,2474.47,0.20] --- Cameras position. (Not direction, simply the X,Y,Z where the camera is)
_camera camPrepareFOV 0.700 --- Frame of View. 0.700 is the default, any lower it will zoom in.
_camera camCommitPrepared 0 --- How long it will take camera to get here. Since its 1st camera. 0 is proper.
@camCommitted _camera --- Waits until the camera is in position before it reads the next line in the script.
;Camera 2
;The camera from camera 1 will move here.
_camera camPrepareTarget [2897.26,2863.37,-0.00] --- New target.
_camera camPreparePos [2890.27,2908.17,7.26] --- New Position.
_camera camPrepareFOV 0.700 --- New Frame of View.
_camera camCommitPrepared 8 --- The camera will take 8 seconds to get here from camera 1.
@camCommitted _camera
_camera cameraeffect ["terminate", "back"] --- Way last camera will disappear.
camdestroy _camera --- Finally, delete camera.
5 fademusic 0 --- Fade the music from playing in 5 seconds to a volume of 0 (Nothing).
; Exit this script
exit[/code]
The
red text is the information given to you when you are in the game, in order to get this information, you need to hold
CTRL + LFT CLIK. Then go into a wordpad and select paste or
CTRL+V. . You will get something that looks like this:
;=== 11:01:35 (your PC's time when you took the camera position)
_camera camPrepareTarget [2897.26,2863.37,-0.00]
_camera camPreparePos [15375.62,13710.77,1.59]
_camera camPrepareFOV 0.700
_camera camCommitPrepared 5
@camCommitted _camera
That's exactly what I have in the
red area above.
And remember, having the "
;" character in the beginning of a line in any script is NOT read by the game.
Some camera commands: (Controls when moving the camera)
+ Zoom in
- Zoom out
8,6,2,4,5 (Numpad, Camera movement controls)
L (Turn off Crosshairs on screen)
F (Lock camera to a certain position)
You can also use your mouse/joystick to move the camera.
When you save the camera.sqs file, make sure that the file is not a TXT file. It may say ".sqs" at the end, but sometimes the .txt is hidden. If your script does not work, make sure it is a .sqs file. In order to make sure of this:
Go into your mission's main directory. Click Tools >> Folder Options >> View (tab) >> UNCHECK "Hide extensions for known file types" >> Then hit apply >> Look to make sure the camera file is not called "DesertCamera.sqs.txt", if it is change it simply to "DesertCamera.sqs" and hit OK to any popup warnings that appear. You may want to RECHECK "Hide extensions for known file types" later on.
You don't need to know how to script an entire camera sequence to make a good movie ether. I don't know how to script and check out what I made with JUST camera.sqs:
http://youtube.com/watch?v=-bjgsP6FoeEhttp://youtube.com/watch?v=HvDJkiDd2BI(Also check out my other videos from OFP that involve the same method of camera.sqs).
You can do anything!
Happy hunting!