Home   Help Search Login Register  

Author Topic: (OFP) Camera.sqs?  (Read 2290 times)

0 Members and 1 Guest are viewing this topic.

Offline Mad Pup

  • One Who Asks A Lot.
  • Members
  • *
  • OFPEC Is Awesome
(OFP) Camera.sqs?
« on: 05 Jun 2010, 15:23:10 »
Hello OFPEC, I downloaded the camera.sqs tutorial for OFP, and it says deep within OFP documents, theres a script called camera.sqs. I looked for it, and can't seem to find it. Would anyone know where it is?

Thanks,

~Mad Pup~  :cool2:
"The object of war is not to die for your country, but to make the other poor bastard die for his" - General Patton
[SH]MadPup
[SH]Squad

Offline RKurtzDmitriyev

  • Former Staff
  • ****
Re: (OFP) Camera.sqs?
« Reply #1 on: 05 Jun 2010, 16:11:50 »
LOL Mad Pup, you don't need to have camera.sqs in the mission directory. All you need to do to use camera.sqs is put

Code: [Select]
this exec "camera.sqs"

in some unit's initialization.

If you're just curious where that file is stored, I have no clue. Probably in some data PBO or something.
« Last Edit: 05 Jun 2010, 16:13:22 by RKurtzDmitriyev »
The OFP Editing Center wishes to remind you that the faithful COMREF will never threaten to stab you and, in fact, cannot speak.
However, in the event that it does speak, you are encouraged to heed its advice. ;)

Offline savedbygrace

  • Intel Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: (OFP) Camera.sqs?
« Reply #2 on: 06 Jun 2010, 03:28:24 »
Hahahaha. Sorry guy. I was trying to be dramatic there.

  • Use a Radio trigger set to repeatedly
  • In the Text field insert "Camera" so you know what that radio channel is used for.(just in case you have others)
  • In the Onactivation field insert...player exec "camera.sqs" (player can be replaced with whatever unit you want the camera to start from.
That's it!
Now if your using the player to execute the code, you can run around inside the mission and activate the radio trigger anytime you want the camera view. When you want to return to player view, just press V.

It's good to use for testing your missions as well but make sure your player is either setcaptive or in a safe place so he doesn't get run over while your soaring above in camera view. Have fun and enjoy the skies!