Home   Help Search Login Register  

Author Topic: Camera.sqs  (Read 1291 times)

0 Members and 3 Guests are viewing this topic.

Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Camera.sqs
« on: 09 Nov 2003, 21:58:05 »
Ok just read ej_will's script to put in the units init feild;
this exec "camera.sqs"

And the camera floats around and stuff, he says next to press ctrl so i pressed my left side ctrl and it didn't work so i tried the right hand one and sure enough a little red box appears. This is where i get confused. do i have to save the mission while its still in preveiw or press a button to set the camera or what???? And when i do this action where is the mission directory is this where all the scripts are kept or what?!?! Can you help me peas!!!!!!!!!!!
MIkEy FIshY BoyY YabDAO

Kaliyuga

  • Guest
Re:Camera.sqs
« Reply #1 on: 09 Nov 2003, 22:09:05 »
you press whatever is your fire button on the keyboard once you have the cam set as you want...

then you alt+tab out of OFP .. and open up notepad...

hit  ctr+v (paste)  to paste the camera info from OFP into notepad... then you'll name that notepad file  "mycam.sqs"  or whatever.. and call that camera script in the game by executing it

:cheers:

BTW   I'm moving this topic to  Sound/Cutscenes also  


Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Re:Camera.sqs
« Reply #2 on: 09 Nov 2003, 22:09:57 »
Oh cheers thanks matey!!!!
MIkEy FIshY BoyY YabDAO

Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Re:Camera.sqs
« Reply #3 on: 09 Nov 2003, 22:27:18 »
Ok pressed ctrl, pressed the fire button went into notepad and pressed ctrl-V nout happend, figured out that pressing ctrl-C copys the co-ordinates so you can ctrl-v them in notepadbut in doing doing Ctrl-c it makes the camera rotate a little,  tried to exec this in a waypoint ;
;=== 21:09:20
_camera camSetTarget '11a02300# NOID stan_inside'
_camera camSetPos [9576.70,9669.89,5.04]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
this is what i got from my copy i named the file "Intent.sqs" so i wrote [qqq] exec "Intent" (qq is name of unit). Tried the preveiw and this message came up
'_Camera CamSetTarget l#l '11902300 # Stan_Inside ":Error invalid number in expression
Peas help!!!!
MIkEy FIshY BoyY YabDAO

Torak

  • Guest
Re:Camera.sqs
« Reply #4 on: 10 Nov 2003, 12:07:11 »
Is there any way of programming a full camera move using this method? Say, for instance, I want a camera moving through a house, looking around as it "walks"?

Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Re:Camera.sqs
« Reply #5 on: 10 Nov 2003, 12:10:33 »
Well from my limited knowledge yes. I reckon if you pick each little tiny position then you could but it'll just take ages, good idea though!
MIkEy FIshY BoyY YabDAO

Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Re:Camera.sqs
« Reply #6 on: 10 Nov 2003, 12:11:35 »
Plus i dont know how smooth it would be???
MIkEy FIshY BoyY YabDAO

Torak

  • Guest
Re:Camera.sqs
« Reply #7 on: 10 Nov 2003, 16:40:06 »
Pity there's no way of adding a 3DSMax-style camera track; that would make life a lot easier.

sanam

  • Guest
Re:Camera.sqs
« Reply #8 on: 25 Nov 2003, 13:05:24 »
Camera.SQS simply rocks !

t's actually the only way to visit a building, as one requested.

Moves are smooth or aren't, it just depends on how much you squeeze the cam: a 180° turn in 20sec is gonna be SMMOOOOOTHHH i'll be asleep before it ends. AND with only 2 points to define... Not much hard work...


But if you forget to firstly create a camera in your script, well, then, you ain't got nothing but error messages...


There is a structure to this, my way is:

Do a new txt, call it icamera.sqs, put it in the current mission folder, leave it open "under" OFP.

I call them "icamera.sqs" for introcam, and this way just one letter to add or remove in the initline to work/check/work/check...

then steal the first line of any cutscene script: it looks like

titleCut ["DoFP Modding-the-Mod Mod Pre-Release n°1","BLACK IN", 10]
; Create cam (called "camera")
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]


(Obviously MY current project, there....) :-*

Go to OFP and put yourself at the right place.

Commands are:

Fire button (not mouse) to save
+- to zoom
8/2 look up/down
4/6 turn left/right
your favorite set of movements keys to move. mine is (AZERTY Stuff):
a up
< down
z forward
s backwards
q strafe left
d strafe right
Choose ya point, and out to the "icamera.sq", Ctrl+V, you got it.

then use Camera.sqs a lot, && I do recommand you to mix it with camsettarget  player or VehicleTruc
and also to fool around with the cammcomit time && the Zoom.

Great Stuff this Stuff.


DON'T forget to endup the proper way:

_camera cameraeffect ["terminate", "back"]
camdestroy _camera

; fade back in over 2 seconds
titlecut ["EndOfTest","BLACK IN",4]

; exit the script
exit




It's an old thread, I know, but I'll keep posted anyway.
« Last Edit: 26 Nov 2003, 09:00:37 by PeacePunk »