OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: B-2-0 on 25 Apr 2003, 05:06:06

Title: Cam won't close!
Post by: B-2-0 on 25 Apr 2003, 05:06:06
Ok, i have set up a cutscene.....now, when i use this script...

------------------------------------------------------
titlecut ["Get to Abbeyfield and meet with the resistance", "black in", 6]

_cam = "camera" camcreate [0,0,0]

_cam cameraeffect ["internal", "back"]

 

_cam camsettarget Res26

_cam camsetrelpos [ 30, 110, 16]

_cam camcommit 16

@camcommitted _cam

~6

_cam cameraeffect ["terminate", "back"]

camdestroy _cam



exit
-----------------------------------------------------
....It works fine and closes at the end ;D

But when i add the part of the script which makes the cam move from the first target to another.....

-----------------------------------------------------
titlecut ["Get to Abbeyfield and meet with the resistance", "black in", 6]

_cam = "camera" camcreate [0,0,0]

_cam cameraeffect ["internal", "back"]

 

_cam camsettarget Res26

_cam camsetrelpos [ 30, 110, 16]

_cam camcommit 16

@camcommitted _cam

~6

_cam camsettarget AmmoRes1

_cam camsetrelpos [ 0, 7, 1]

_cam camcommit 5

@camcommitted_cam

~4


_cam cameraeffect ["terminate", "back"]

camdestroy _cam



exit
-------------------------------------------------
(The bold highlighting the added bit)

........ it works fine but just won't close and i have no idea why ???  What else do i need to insert and a small explanation why would be very much aprieciated ;D
Title: Re:Cam won't close!
Post by: B-2-0 on 26 Apr 2003, 20:16:07
Anyone....? :'(
Title: Re:Cam won't close!
Post by: jojojoni on 26 Apr 2003, 20:30:53
Make sure that youÂ've made an object named AmmoRes1 ::).
Title: Re:Cam won't close!
Post by: B-2-0 on 27 Apr 2003, 01:36:17
Yeah i have AmmoRes1...the cam will focus where i want it to it just won't revert back to play....thing is if i just focus on the first object it closes fine but when i include the part where it pans to the ammo crate it works but won't close! ???
Title: Re:Cam won't close!
Post by: Killswitch on 27 Apr 2003, 04:32:11
A wild guess here...you have this at the end:

Code: [Select]
@camcommitted_cam
Should be

Code: [Select]
@camcommitted _cam
(see the space there?)

Title: Re:Cam won't close!
Post by: B-2-0 on 27 Apr 2003, 05:27:46
Killswitch!!!  Dude!!!  U are the man!!!

I had to look twice to see the space on your post but that was the prob mate ;D

Thanx loads :thumbsup: :cheers: