Home   Help Search Login Register  

Author Topic: ending switchcamera mode  (Read 484 times)

0 Members and 1 Guest are viewing this topic.

Offline trinec

  • Members
  • *
  • I'm a llama!
ending switchcamera mode
« on: 12 Mar 2005, 23:13:22 »
I have a problem with getting switchcamera to come out of switchcamera mode seems to get stuck in that position in the script and wont carry on any ideas? Im still learning this stuff so be easy on me.  The switchcamera part would be before the cutscene ends and ive added to that area before but seems to get stuck there, and wont exit the script

Thanks

;camera script
;

; create camera
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

;
_cam camsettarget c1
_cam camsetrelpos [-2,-8,2]
_cam camcommit 0
~5

_units4 = units rb1
rb1 allowfleeing 0
"deletevehicle _x" foreach _units4
~1
_type1 = "Ural"
_etruck1 = _type1 createvehicle getpos gl1
~1
"jjr_r_rebelSoldier" createunit [getpos gl1, rb1, "e1 = this", 1, "LIEUTENANT"]
~1
"jjr_r_rebelSoldier" createunit [getpos gl1, rb1, "e2 = this", 1, "SERGEANT"]
~1
"jjr_r_rebelSoldier" createunit [getpos gl1, rb1, "e3 = this", 1, "PRIVATE"]
~1

e1 setbehaviour "careless"
e2 setbehaviour "careless"
e3 setbehaviour "careless"

e1 moveindriver _etruck1
e2 moveincargo _etruck1
e3 moveincargo _etruck1

rb1 move getPos c1
~2

_cam camsetpos getpos campos1
_cam CamSetFOV 0.07
_cam camsettarget _etruck1
_cam camcommit 10
@camcommitted _cam
~5

; end cutscene
_cam cameraeffect ["terminate", "back"]
camdestroy _cam

; wait a second


; fade back in over 2 seconds
titlecut [" ","BLACK IN",3]
~2
exit



Offline Blanco

  • Former Staff
  • ****
Re:ending switchcamera mode
« Reply #1 on: 13 Mar 2005, 01:21:27 »
I've never used the command, but I know there's a switchcamera tutorial in the editor depot

http://www.ofpec.com/editors/resource_view.php?id=82
Search or search or search before you ask.

Offline trinec

  • Members
  • *
  • I'm a llama!
Re:ending switchcamera mode
« Reply #2 on: 14 Mar 2005, 01:26:54 »
it doesnt really say how to end switchcamera in the tutorial so here it is use player name switchcamera "internal"