Home   Help Search Login Register  

Author Topic: Chase Cam  (Read 954 times)

0 Members and 1 Guest are viewing this topic.

Captain Winters

  • Guest
Chase Cam
« on: 07 Sep 2002, 20:21:07 »
Does Anyone Know Where The Chase Camera Script Is? (ie it follows a unit)

Bremmer

  • Guest
Re:Chase Cam
« Reply #1 on: 07 Sep 2002, 21:59:04 »
Hello Cpt.

I guess this might be the sort of thing you are after.
Execute using [name,x,y,z] exec "tracking.sqs", where name is the unit you want to track, and x,y,z are the positions of the camera relative to the unit.


;tracking.sqs
_unit = _this select 0
_x = _this select 1
_y = _this select 2
_z = _this select 3
stoptracking = false

_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
_cam camSetTarget _unit
_cam CamSetFOV 0.7
   
#loop
~0.01
_cam camSetRelPos [_x,_y,_z]
_cam camCommit 0
? not stoptracking : goto "loop"
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
exit


 :)
« Last Edit: 07 Sep 2002, 22:14:10 by Bremmer »

crow

  • Guest
Re:Chase Cam
« Reply #2 on: 08 Sep 2002, 07:11:36 »


[attachment deleted by admin]

Buckner

  • Guest
Re:Chase Cam
« Reply #3 on: 24 Nov 2002, 01:37:11 »
Hello,
     I am spending my first day figuring out how to
make these cutscenes and because of the fine
efforts put forth, I'm finding this easier then I had
expected.  So Thanks Scripters!!!
     My question deals with the position of the
camera in this script.  I understand the x, y, z,
business I guess, but it seems that I can only
see the guy I am chasing from the front right?
How do I get the camera placed behind him?
Thanks in advance, Buckner.

Captain Winters

  • Guest
Re:Chase Cam
« Reply #4 on: 24 Nov 2002, 21:23:30 »
_cam camsettarget player  
_cam camsetrelpos [0,-1,1.7]
_cam camcommit 0
@camcommitted _cam

in the x y z coords u have to have a negative number in the y coord to see da back of him
_______________________________
_______________________________
Capn' Winters Out!