My code is very simple. I am making the camera 1(when I create it, program automatically set the camera to 1, which is ok). Then I run a timer or variable for the cutscene and when it is greater then some value I delete the camera 1 and set the current camera to 0. Thats it.
Say, cutscene is the variable for running the cutscene. If it is 0 then player can move and if it is 1 than the above condition runs and player can't move.
Here is the function.
FUNCTION positionCamera(x#,y#,z#,px#,py#,pz#,time)
IF CAMERA EXIST(1)=0 THEN MAKE CAMERA 1
POSITION CAMERA 1,x#,y#,z#
POINT CAMERA 1,px#,py#,pz#
SET CURRENT CAMERA 1
countDown = countDown + 1
IF countDown > time
countDown = 0
IF CAMERA EXIST(1)=1 THEN DELETE CAMERA 1
SET CURRENT CAMERA 0
DoorOnCamera(TotalDoorOnCamera) = 0
cutscene = 0
ENDIF
ENDFUNCTION
EDIT: Now I am thinking, why camera 1. When I can use the camera 0 in stead of camera 1.
Thanks in advance
Regards
Your Signature Here;