As you can see this is my first post so, you guessed it, I'm a noob. Anyway, I followed MadDogX's example leaving out the:
_cam camSetTarget camtarget2
_cam camCommit 5
~5
I only want the camara to follow 1 target so what I have is:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
_cam = "camera" camCreate (position camviewer)
_cam cameraEffect ["Internal", "Back"]
_cam camSetTarget camtarget
_cam camCommit 0
~1
~3
cameraEffect ["Terminate", "Back"]
camDestroy _cam
I put that into a text file and named it camera.sqs and placed it in the same folder as my mission. Just as an extra precaution I also created a subfolder called scripts and placed a copy there too.
My problem is the camera faces north and never faces the cobra I have named camtarget.