OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Serial Killer on 08 Mar 2005, 18:48:37
-
Ok, I know perfectly, how to do that camera script thing, but I have one question about it.. How can I make, that the camera follows it's target? You know what I mean?
-
First, read snYpir's Camera scripting tutorial. Then read messiah's camera.sqs tutorial. Then download Blanco's logiccam script. Then post any remaining questions on the Sound & Cutscenes board. ;)
-
I try to make the camera look from front of it's target, but it's always looking from back. Here's the script..
#loop
_camera camSetTarget su25
_camera camSetFOV 0.7
_camera camSetRelPos [-2, -1, 1]
_camera camCommit 0
@camCommitted _camera
?(proceed):goto "proceed"
goto "loop"
#proceed
As I sayed, the camera has to look the target from front.
Ps. I read all the tutorials succesfully, but I'm wondering, why the camera isn't looking the target from front..
EDIT: Lol, forget everything what I sayed! I can't explain what was wrong, but forget everything! :-[