Home   Help Search Login Register  

Author Topic: Ending a cut scene and going on with gameplay?  (Read 1224 times)

0 Members and 1 Guest are viewing this topic.

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Ending a cut scene and going on with gameplay?
« on: 08 Oct 2002, 21:40:02 »
Hi Guys,

Missions starts with a cutscene. Helos arrive at the scene, land and embark troops. Just when the first one gets of the helo I want my camera script to end and make the game return to normal gameplay. lb1 is the helo. Players Name is df1.

Here's my camera script so far.

Any help welcome.

Jens
=================================
EnableRadio false
titleCut["Bakara Market - Mogadischu 10/03/1993","BLACK IN",8]
;setAccTime 0.2

_s1 = getMarkerPos "Kamera"
_start1 = [_s1 select 0,_s1 select 1, 1.8]
_s2 = getMarkerPos "Kamera2"
_start2 = [_s2 select 0,_s2 select 1, 0]
;//////////////////////////////////////////////////////////
_camera = "Camera" camCreate [0,0,0]
_camera CameraEffect ["Internal","Back"]
_camera camSetTarget lb1
_camera camSetPos _start1
_camera camSetFOV 0.700
_camera camCommit 0
;@camCommitted _camera
camDestroy _camera
exit
;//////////////////////////////////////////////////////////

Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

seanver

  • Guest
Re:Ending a cut scene and going on with gameplay?
« Reply #1 on: 08 Oct 2002, 22:14:35 »
You need to put at the end also:

_camera cameraeffect ["TERMINATE", "back"]

so it will end with:

_camera cameraeffect ["TERMINATE", "back"]
camdestroy _camera
exit

Scratchdat

  • Guest
Re:Ending a cut scene and going on with gameplay?
« Reply #2 on: 08 Oct 2002, 22:18:22 »
Before you do that, you need to make the cutscene last, because at the moment it will run for about half a second if you put in the ending code.

After ;@camCommitted _camera put in a time delay, so that the helicopter can be seen doin its stuff. To do this, simply start a new line and put

~10 (the 10 can be any number in seconds, which will delay the script for any number of seconds depending on which number you put it).

This will then delay the next part of the script which is the ending of the cutscene. To end it, put

_camera CameraEffect ["Terminate","Back"]
CamDestroy _camera

after the time delay you chose, and hey-presto, you have a cutscene which has lasted the time you wanted it to.

Hope that solves your problem.
« Last Edit: 08 Oct 2002, 22:20:08 by Scratchdat »

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Re:Ending a cut scene and going on with gameplay?
« Reply #3 on: 08 Oct 2002, 22:23:22 »
Thank you! Yup, that worked. Now I'm trying to find out how to end the script not after a certain time, but when the helo touches the ground.

Jens
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

seanver

  • Guest
Re:Ending a cut scene and going on with gameplay?
« Reply #4 on: 08 Oct 2002, 22:27:06 »
That's easy m8

Put before the thing that ends the cutscene:

@ (getpos helicopter select 2) < 1

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Re:Ending a cut scene and going on with gameplay?
« Reply #5 on: 08 Oct 2002, 22:32:43 »
Hi again
tried to do it that way. why does that not work?
hp1 is the name of the invisible helipad and lb1 is the helo agin.

can you explain your last advice in some detail. im not sure if i got it right. thanks.

jens
====================================
.
.
.
.
#loop
~1
? (lb1 distance hp1 < 0.1): goto ende
goto loop

#ende
_camera cameraeffect ["TERMINATE", "back"]
camDestroy _camera
exit
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!