Jump to content
Sign in to follow this  
dea†h

Camera script not working properly

Recommended Posts

Hi

I'm having a prob with my cam script somewhere, because it runs, but the players camera doesn't change it stays the same only the effects work. Most likely a noob mistake I'm making :tongue:

Running the script via the players init box: this exec "Intro.sqs"

Intro.sqs file:

;Intro sequence

titleCut["","BLACK IN"]; titelFadeOut 4

;=== Camera Position 1

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

_camera camPrepareTarget [-73803.34,-46037.77,-6313.22]

_camera camPreparePos [13282.87,2726.88,0.55]

_camera camPrepareFOV 0.367

_camera camCommitPrepared 0

-camera cameraEffect ["internal","black"]

@camCommitted _camera

Hint "Camera position 1 script done"

showcinemaborder true

;=== Camera Position 2

_camera camPrepareTarget [111450.88,17823.79,9265.36]

_camera camPreparePos [13043.93,2650.50,0.54]

_camera camPrepareFOV 0.700

_camera camCommitPrepared 10

@camCommitted _camera

Hint "Camera position 2 script done"

titleCut["","BLACK OUT"];titleFadeOut 4

~6

player cameraEffect["terminate","back"]

camDestroy_camera

~3

titleCut["","BLACK IN"]; titelFadeOut 4

Hint "Intro sequence complete"

exit

I'm using Mr-Murray's Arma(1) Editing Guide (Deluxe Edition), which helped me with a lot of things, just the cam scripting prob.

Id appreciate the help allot :pray: because no mission is complete with a nice intro/outro :)

Thanx

Share this post


Link to post
Share on other sites

I can recommend you to watch for typos in variable names since you are a beginner.

The error is in the line :

-camera cameraEffect ["internal","black"]

It needs to be an underscore before the word camera and not a hyphen(minus)

Hope that fixes it for you!

Regards,

Charon

Share this post


Link to post
Share on other sites

[color="Red"]_[/color]camera cameraEffect ["internal","[color="Red"]back[/color]"]

camDestroy _camera

^- space inbetween them

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  

×