Jump to content
Sign in to follow this  
EagleEye(SW)

Camera script

Recommended Posts

Well, here's the script:

Here are the music-track names (if anyone needs to know):

Code Sample

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">  

;Camera Script

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

_cam cameraeffect ["Internal", "back"]

_cam camsettarget affe

_cam camsetrelpos [4,-7,5]

_cam camcommit 0

titletext ["What the f**k is going on?","PLAIN DOWN"]

~3

titletext ["The russians forces has depoyed roadblocks, and we cant\n deliver our weapon supplies","PLAIN DOWN"]

~5

_cam camsetrelpos [20,30,2]

_cam camcommit 7

@camcommitted _cam

~1

titletext ["And?\n I mean, why did you pick me up?","PLAIN DOWN"]

~3

titletext ["Becuase you can fly","PLAIN DOWN"]

~2

titletext ["FLY? IT WAS TO YEARS AGO! AND HOW DO YOU GOING TO FIND\n CHOPPER OR PLANE ANYWAY?","PLAIN DOWN"]

~3

titletext ["You'll see...","PLAIN DOWN"]

~4

_cam camsetrelpos[1,1,20]

_cam camcommit 7

@camcommitted _cam

~1

titlecut [" ","BLACK OUT",6]

titletext ["EagleEye Presents","PLAIN"]

~3

titletext ["A Operation Flashpoint: Resistance mission","PLAIN"]

~5

titletext ["The Day\n Which all started","PLAIN"]

~6

titlecut [" ","BLACK IN",6]

~6

_cam camsetrelpos [22,2,30]

_cam camcommit 15

@camcommitted _cam

~2

_cam camsettarget roadblock

_cam camsetrelpos [56,90,10]

_cam camcommit 23

@camcommitted _cam

~2

_cam camsetrelpos [20,30,10]

_cam camcommit 0

@camcommitted _cam

~2

_cam camsetrelpos [10,40,50]

_cam camcommit 0

@camcommitted _cam

~2

_cam camsettarget ammo

_cam camsetrelpos [20,60,100]

_cam camcommit 0

@camcommitted _cam

_cam camsetrelpos [23,40,1.4]

_cam camcommit 0

@camcommitted _cam

_cam camsettarget sol1

sol1 setmimic "agresive"

_cam camsetrelpos [0.3,0.3,1.5]

_cam camcommit 12

@camcommitted _cam

sol1 switchmove "effectstandtalk"

titletext ["Move boys, move!","PLAIN DOWN"]

~6

_cam camsettarget chopper

_cam camsetrelpos [12,0,4]

_cam camcommit 10

@camcommitted _cam

~1

_cam camsetrelpos [1,2,3]

_cam camcommit 0

@camcommitted _cam

titlecut [" ","WHITE OUT",2]

skiptime 1

~1

_cam camsettarget affe

_cam camsetrelpos [1,2,3]

_cam camcommit 0

@camcommitted _cam

titlecut [" ","WHITE IN",2]

~20

_cam camsetrelpos [2,170,20]

_cam camcommit 15

@camcommitted _cam

~1

titletext ["We have been traveling an hour now...","PLAIN DOWN"]

~3

titletext ["Well, heh, we are here right now!\n Our secret base is in this forest...","PLAIN DOWN"]

~2

titletext ["Okey","PLAIN DOWN"]

_cam camsetrelpos [2,10,3]

_cam camcommit 5

@camcommitted _cam

~2

camdestroy _cam

;exit the script

exit <--- dont work

<span id='postcolor'>

I am using Resistance Expansion (it's great biggrin.gif).

If you see more problems plz write them to. I am rather new in camera scripting.

/EagleEye

Share this post


Link to post
Share on other sites

I think you should add line:

_cam cameraEffect[ "terminate", "BACK" ]

before destroying the camera.

And perhaps a black-out before it and black-in after it.

HTH. smile.gif

EDIT:

BTW, you don't need that exit in the end of the script, the script

will 'exit' when it reaches the first line. exit can be used to exit

a script whenever you want, therefore it's not wrong to have it

there in the end of the script. smile.gif

Share this post


Link to post
Share on other sites

exit doesn't work with camscripts I'm afraid.

Terminate the camera, then use the

End=true workaround to set a variable to true, and have a trigger end the cutscene/intro when that condition is met.

Share this post


Link to post
Share on other sites

Oops.. I did not read the question properly..

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Terminate the camera,<span id='postcolor'>

You can do that like I described in my earlier post.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">

End=true workaround to set a variable to true, and have a trigger end the cutscene/intro when that condition is met.

<span id='postcolor'>

Put a line

cutscene_over = true

in the end of you cutscene.

Then make a trigger with condition

cutscene_over

and make that trigger to be of type "End 1" (or whatever End..)

That should do the trick. smile.gif

Share this post


Link to post
Share on other sites

Which is exactly what I said.

You could also do

ExtremeHotDogsFromMars = true

at the end of your script, and have a trigger of type End#1 with the condition

ExtremeHotDogsFromMars.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Which is exactly what I said.<span id='postcolor'>

Yes I know that!

I was trying to be a bit more specific, since he said:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">I am rather new in camera scripting.<span id='postcolor'>

and therefore it is possible that he doesn't know

how to "terminate the cam". smile.gif

Share this post


Link to post
Share on other sites

Thank you all!

So, the final script will be:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">;Camera Script

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

_cam cameraeffect ["Internal", "back"]

_cam camsettarget affe

_cam camsetrelpos [4,-7,5]

_cam camcommit 0

titletext ["What the f**k is going on?","PLAIN DOWN"]

~3

titletext ["The russians forces has depoyed roadblocks, and we cant\n deliver our weapon supplies","PLAIN DOWN"]

~5

_cam camsetrelpos [20,30,2]

_cam camcommit 7

@camcommitted _cam

~1

titletext ["And?\n I mean, why did you pick me up?","PLAIN DOWN"]

~3

titletext ["Becuase you can fly","PLAIN DOWN"]

~2

titletext ["FLY? IT WAS TO YEARS AGO! AND HOW DO YOU GOING TO FIND\n CHOPPER OR PLANE ANYWAY?","PLAIN DOWN"]

~3

titletext ["You'll see...","PLAIN DOWN"]

~4

_cam camsetrelpos[1,1,20]

_cam camcommit 7

@camcommitted _cam

~1

titlecut [" ","BLACK OUT",6]

titletext ["EagleEye Presents","PLAIN"]

~3

titletext ["A Operation Flashpoint: Resistance mission","PLAIN"]

~5

titletext ["The Day\n Which all started","PLAIN"]

~6

titlecut [" ","BLACK IN",6]

~6

_cam camsetrelpos [22,2,30]

_cam camcommit 15

@camcommitted _cam

~2

_cam camsettarget roadblock

_cam camsetrelpos [56,90,10]

_cam camcommit 23

@camcommitted _cam

~2

_cam camsetrelpos [20,30,10]

_cam camcommit 0

@camcommitted _cam

~2

_cam camsetrelpos [10,40,50]

_cam camcommit 0

@camcommitted _cam

~2

_cam camsettarget ammo

_cam camsetrelpos [20,60,100]

_cam camcommit 0

@camcommitted _cam

_cam camsetrelpos [23,40,1.4]

_cam camcommit 0

@camcommitted _cam

_cam camsettarget sol1

sol1 setmimic "agresive"

_cam camsetrelpos [0.3,0.3,1.5]

_cam camcommit 12

@camcommitted _cam

sol1 switchmove "effectstandtalk"

titletext ["Move boys, move!","PLAIN DOWN"]

~6

_cam camsettarget chopper

_cam camsetrelpos [12,0,4]

_cam camcommit 10

@camcommitted _cam

~1

_cam camsetrelpos [1,2,3]

_cam camcommit 0

@camcommitted _cam

titlecut [" ","WHITE OUT",2]

skiptime 1

~1

_cam camsettarget affe

_cam camsetrelpos [1,2,3]

_cam camcommit 0

@camcommitted _cam

titlecut [" ","WHITE IN",2]

~20

_cam camsetrelpos [2,170,20]

_cam camcommit 15

@camcommitted _cam

~1

titletext ["We have been traveling an hour now...","PLAIN DOWN"]

~3

titletext ["Well, heh, we are here right now!\n Our secret base is in this forest...","PLAIN DOWN"]

~2

titletext ["Okey","PLAIN DOWN"]

_cam camsetrelpos [2,10,3]

_cam camcommit 5

@camcommitted _cam

~2

_cam cameraEffect[ "terminate", "BACK" ]

camdestroy _cam

cutscene_over = true

<span id='postcolor'>

Then add a trigger, remove true, and write in:

cutscene_over

And set it to: End1 or End 5 etc.

So, that's the proper script!

Thank you all!

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  

×