Results 1 to 4 of 4

Thread: Camera script not working properly

Hybrid View

  1. #1

    Camera script not working properly

    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

    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 because no mission is complete with a nice intro/outro

    Thanx

  2. #2

    A typo

    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

  3. #3
    Staff Sergeant
    Join Date
    Jul 16 2009
    Location
    San Antonio, Tx.
    Posts
    208
    Code:
    _camera cameraEffect ["internal","back"]

    Code:
    camDestroy _camera
    ^- space inbetween them

  4. #4
    Newbie dea†h's Avatar
    Join Date
    Sep 16 2009
    Location
    South Africa, Cape-Town
    Posts
    2
    Author of the Thread
    A! Noob error then

    Thanks a bunch guys, works perfectly now
    Be Prepared be Smart or be Lucky [P,S/L]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •