Home   Help Search Login Register  

Author Topic: _camera camSetTarget rc3  (Read 545 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
_camera camSetTarget rc3
« on: 26 Dec 2004, 14:20:18 »
Why doesn't this work?
I get the red box around it but it doesn't seem to show in a cutscene i just get an arror message and a static view of misc.

;=== 13:47:21
_camera camSetTarget rc3
_camera camSetPos [10355.09,5878.96,3.17]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

Cheers.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:_camera camSetTarget rc3
« Reply #1 on: 26 Dec 2004, 16:50:10 »
what you have there should work, assuming rc3 is a valid target.  What is the rest of the script?  1 thing that used to (still does) get me is the camera syntax  ie   the camera is defined thusly:
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
_cam camcommit 0

and then the next cam is called as you have it:
;=== 13:47:21
_camera camSetTarget rc3
_camera camSetPos [10355.09,5878.96,3.17]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

See the problem?  You created _cam, then tried to use _camera.  I don't know if that is the problem you have, but it still gets me when I am not paying attention.  ps  Glad to see you use the camera.sqs to set your cameras, that is by far the best way