Home   Help Search Login Register  

Author Topic: Fly-By  (Read 452 times)

0 Members and 1 Guest are viewing this topic.

SH@dow 113

  • Guest
Fly-By
« on: 30 Aug 2003, 11:41:02 »
Could someone help me?
how do i make a Fly-By in a cutscene (e.g. if a chopper comes by the camera stays on position but follows the chopper)

i tried to attach a camera to a Game Logic but that didn't work out  :'(

thx in advance :cheers:  ;D

B-2-0

  • Guest
Re:Fly-By
« Reply #1 on: 01 Sep 2003, 16:47:06 »
Here, try this!

All u got to do is change the fade in text to whatever you want.  If u don't want any text, just leave it blank inbetween the 2 ".  U can paste it straight to notepad, call it Flyby.sqs, whack it in the mission file and away u go!!

;--------------------------------------------------------------------------------------------
;Fades in with text where 4 is length of black in time
titlecut ["YOUR TEXT HERE", "black in", 4]

;Creates the cam, leave these co-ordinates as they are
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

 
;Cam targets the chopper
_cam camsettarget CHOPPER


;Cam position, set the pos using x, y, z co-ordinates, change these to get your shot.
_cam camsetrelpos [ 10, 300, 10.7]

_cam camcommit 0


;Length of time spent focused on chopper, change this to suit also.
@camcommitted _cam
~30


;Exit the cam
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
;-----------------------------------------------------------------------------


When the script is called, it will fade from black in 4 seconds and the cam will be 300m in front of the chopper and looking at it.  It will follow the chopper for 30 seconds, giving u enough time for the chopper to fly by and then return to normal play.  U can increase/decrease the time spent looking at the choppper with the @camcommitted _cam line and change the position of the cam in relation to the chopper with the _cam camsetrelpos [ 10, 300, 10.7] line by changing the X,Y,Z coordinates. 8)

Now all u need to do is to call the script with the command []exec "Flyby.sqs"

No problemo ;)
« Last Edit: 01 Sep 2003, 16:48:52 by B-2-0 »

SH@dow 113

  • Guest
Re:Fly-By
« Reply #2 on: 05 Sep 2003, 19:55:45 »
thx bro,
srry it took so long that i awnserd

Offline mcnorth

  • Members
  • *
Re:Fly-By
« Reply #3 on: 10 Sep 2003, 10:19:48 »
Looks like you may already have your answers but here's a sample from an old mission. It's crude because I trimmed off loads of stuff just leaving the flyby.