OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Serial Killer on 08 Mar 2005, 18:48:37

Title: I need help with Intro!
Post 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?
Title: Re:I need help with Intro!
Post by: macguba on 08 Mar 2005, 18:51:58
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.    ;)
Title: Re:I need help with Intro!
Post by: Serial Killer on 08 Mar 2005, 19:39:02
I try to make the camera look from front of it's target, but it's always looking from back.  Here's the script..

Code: [Select]
#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! :-[