Jump to content
Sign in to follow this  
GTO

Intro camera help "IT WON'T END"

Recommended Posts

Hi,

Have a look at this before we go any further and please understand that I know very little if nothing about scripting.

http://www.youtube.com/watch?v=vmTUgoc8ZiA

So all I'm trying to do is create an Intro sequence, chopper takes off and flies away, simple?

This is what I have in my Intro.sqs and it is activated by player exec "intro.sqs" in a trigger.

;Intro sequence

_camera = "camera" camCreate [0,0,0]

_camera camPrepareTarget chopper

_camera camPreparePos [1357.67,1043.21,18.84]

_camera camPrepareFOV 0.700

_camera camCommitPrepared 0

@camCommitted _camera

_camera cameraEffect ["internal","back"]

showcinemaborder true

cameraEffect ["Terminate"]

camDestroy _cam

exit

My problems are:-

1 The intro will only work in the editor, if I save everything and try to play I go straight to the main mission.

2 Even while in the editor the intro scene doesn't end, I have to Esc out of it.

You scripting guys are probably looking at this and thinking "WTF has he done there?". Sorry but I know nothing about scripts so I've stolen a bit from here and a bit from there and ended with this.

TIA

ps

Does anyone know what's up with the sound, I'm using Fraps and the audio is crap.

Edited by GTO

Share this post


Link to post
Share on other sites

Fraps works fine with sound for me :P

Also I can't really offer much in this, but yea there isn't any vast and reliable resource for camera scripting that I've found either. I just started toying with this yesterday and successfully made an outro, my terminate line is slightly different though, that might be why it isnt going into the mission?

player cameraEffect ["terminate","back"]

One other HUGE thing...

Take note of your camera's name "_camera"...

_camera = "camera" camCreate [0,0,0]

Take note of the name of what you're trying to destroy

camDestroy _cam

Share this post


Link to post
Share on other sites

Sorry JDog but "take note" doesn't really mean anything to me, what's wrong with the camera name and camDestroy?

I took those from Mr Murrays manual.

Share this post


Link to post
Share on other sites

JDog is saying you should notice that you created a camera called "_camera" but you're trying to destroy a camera called "_cam". Hence the camera you started with isn't destroyed.

Try camDestroy _camera at the end.

Share this post


Link to post
Share on other sites

I'm having a similar problem now lol... for my outro though. It doesn't end either. Fades to black... stays there. I'll figure this out!

Share this post


Link to post
Share on other sites

Here's my end from Mucks Revenge so maybe you can figure out the end.

 ;=== 15:31:16
_camera camPrepareTarget [12915.94,8469.37,0.00]
_camera camPreparePos [12933.40,8463.00,0.48]
_camera camPrepareFOV 0.700
_camera camCommitPrepared 0
_camera cameraEffect ["internal", "back"]
@camCommitted _camera
~8
titleCut [" By Froggyluv", "BLACK OUT"]; titleFadeOut 4 


~6
player cameraEffect ["terminate","back"]
camDestroy _camera
~1
#End
endmission"end2";
exit

Share this post


Link to post
Share on other sites

Yea I don't include an endMission statement in it because I have to include it in the end of the mission to GET to the outro? Wouldn't that result in having the debriefing show up twice? Or is there some other way to get to trigger the outro from the mission?

Share this post


Link to post
Share on other sites
Yea I don't include an endMission statement in it because I have to include it in the end of the mission to GET to the outro? Wouldn't that result in having the debriefing show up twice? Or is there some other way to get to trigger the outro from the mission?

Yeah I see what you mean. I had to go back and play the end to remember, and I was never able to find that seamless transition from ending mission to Outro though I still had plenty of useless triggers there trying to :D

Share this post


Link to post
Share on other sites

So yours has 2 endMission/debriefings?

Share this post


Link to post
Share on other sites

Yep, well I actually knew nothing about Intro/Outro's then so I actually made Mucks Revenge in Camapign format so it probably has 3 debriefings in total.

Edit- Actually no, I just replayed it so sorry for confusion. There is a debriefing between the mission and the Outro but at the end of the Outro it fades to black, credits then ends without a debriefing. The code that I posted here is for the final Outro with no debrief.

Edited by froggyluv

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×