OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Cellie on 25 Feb 2005, 09:57:28

Title: 'Inbetween frames in cutscenes
Post by: Cellie on 25 Feb 2005, 09:57:28
I have a small problem. I am making a cutscene, but every camera movement (even set with camcommit 0) have an 'inbetween' frame with each camera setting.

some of my code:

setacctime 1.0
_cam = "camera" CamCreate [_camx+5,_camy+50,_camz+5]
_cam camsettarget rfl_truck
_cam CameraEffect ["Internal","Back"]
_cam camcommit 0
@camcommitted _cam
~12
_cam camsettarget rfl_grp
_cam camSetRelPos [1,1,1]
_cam camcommit 0
@camcommitted _cam
~10
_cam CameraEffect ["Terminate","Back"]
CamDestroy _cam
Cuttext["","BLACK IN",2]

So in this example right at every @camcommited I see a 'inbetween' frame.
ie. You see the camera at its new location (1 frame) and then it goes to its final (set by me) location.

Am I missing something here? It is fu**in ugly as it is now.
Title: Re:'Inbetween frames in cutscenes
Post by: nominesine on 25 Feb 2005, 10:52:11
Not sure if it will help but here's a suggestion. You have given the camera a target before you specified what type of camera you are using in these lines:

_cam camsettarget rfl_truck
_cam CameraEffect ["Internal","Back"]

Try doing it the other way around and change the code to:

_cam CameraEffect ["Internal","Back"]
_cam camsettarget rfl_truck
Title: Re:'Inbetween frames in cutscenes
Post by: bored_onion on 25 Feb 2005, 18:05:24
i read somewhere that the @ command often has complications. maybe you could just reiterate what unit you want it to be looking at.
Title: Re:'Inbetween frames in cutscenes
Post by: XCess on 25 Feb 2005, 23:15:35
loose the @camCommited they're almost conpletely useless