OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jim666 on 25 May 2004, 15:51:21

Title: Camera
Post by: Jim666 on 25 May 2004, 15:51:21
Ok right i got my camera script working fine yesterday, and now its completely confuzzled, so i done it again and now its starting at the ocean,

My script

Code: [Select]
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
_camera camSetTarget [7395.83,4756.13,-0.00]
_camera camSetPos [7412.38,4748.92,22.20]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget [7691.35,4438.08,0.00]
_camera camSetPos [7412.38,4748.92,22.20]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget [7786.06,4413.60,0.00]
_camera camSetPos [7672.65,4458.91,14.58]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget [7783.77,4412.31,0.00]
_camera camSetPos [7794.08,4411.21,1.31]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
player cameraEffect ["terminate","back"]
TitleCut ["","BLACK IN",2]
camdestroy _cam
exit

I know ive missed something out but i dunno what  
Title: Re:Camera
Post by: Gooner861 on 25 May 2004, 19:00:48
I think you may have forgotten to put your "~" symbols in at the end of each bit.

The time you want to stay at the camera position. So put like ~5 (which is 5 seconds) at the end on a new line.

 ;D
Title: Re:Camera
Post by: Hauk on 25 May 2004, 19:06:31
Ok, when you first created the camera you called your camera this:

Code: [Select]
_cam
But in your camera shot you called it this:

Code: [Select]
_camera
So what you should do is change the "_cam" to "_camera" at the start where you created the camera and it should work fine :)

Good Luck,

Hauk
Title: Re:Camera
Post by: Gooner861 on 25 May 2004, 19:08:29
Or that cud be the problem!  ;D
Title: Re:Camera
Post by: sim on 25 May 2004, 20:16:47
yeah

I believe thats the problem  ;D

sim
Title: Re:Camera
Post by: Jim666 on 25 May 2004, 20:35:10
I tried that, still doesnt work :(.. hmm any other ideas?
Title: Re:Camera
Post by: Blanco on 25 May 2004, 21:04:22
try this

Code: [Select]
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]

_camera camSetTarget [7395.83,4756.13,-0.00]
_camera camSetPos [7412.38,4748.92,22.20]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~2
_camera camSetTarget [7691.35,4438.08,0.00]
_camera camSetPos [7412.38,4748.92,22.20]
_camera camSetFOV 0.700
_camera camCommit 5
@camCommitted _camera

_camera camSetTarget [7786.06,4413.60,0.00]
_camera camSetPos [7672.65,4458.91,14.58]
_camera camSetFOV 0.700
_camera camCommit 5
@camCommitted _camera

_camera camSetTarget [7783.77,4412.31,0.00]
_camera camSetPos [7794.08,4411.21,1.31]
_camera camSetFOV 0.700
_camera camCommit 5
@camCommitted _camera

_camera cameraEffect ["terminate","back"]
TitleCut ["","BLACK IN",2]
camdestroy _camera
exit

should work  ;)