Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Mesa back...  (Read 1684 times)

0 Members and 1 Guest are viewing this topic.

Offline The_Bishop_Ghost

  • Members
  • *
  • OFP fanatic and mission maker to be...
Mesa back...
« on: 21 Jul 2007, 12:31:49 »
Ohh damn. I haven't been in here for like ages... And then I start of by asking a stupid question...

Anyway

Way back inte the days (we are talking 2002 mayby 2003 here) I asked a queastion (Yeah as if anybody remebers that) baut makeing a cutscene in OFP (yes I know there are scripts and tuts for this). I was given a camera script (and of course I can't remember its name). But it was simple to use (me thinks). You just placed a camera and thold it where to point, for how long and so on. Basicly you attached the camera to something and told it where to point, you could place it on just about anything and just about everywhere. You used "simple" x,y,z number and somthing like the "dotarget" thing to place and aim.

Anyway. No I canät find it (propably has something to to with the fact that i's been 5 years).I looked at the different camera scrips in the editors depo and none of them is the on I mean.

And somehow I get the feeling that if i try useing the camera.sqs it will turn ut bad.

Anyhow back to the topic, anybody that knows what I amn talking about?
Don't ask about my spelling. I know it sucks

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re: Mesa back...
« Reply #1 on: 21 Jul 2007, 13:18:06 »
Welcome back!   :)   We have all the posts from those old days, try the forum search function.

Camera.sqs is for finding shots.   Messiah wrote a very good tute on it.   You need to drop the things you extract from it into a script to make your cutscene work.   

We had a flood a while back and lost a lot of stuff.   However most of the scripts survived somewhere.  Have a wordwith Planck if you can't figure out what you need, he's good at finding stuff that seems to have vanished forever.
Plenty of reviewed ArmA missions for you to play

Offline The_Bishop_Ghost

  • Members
  • *
  • OFP fanatic and mission maker to be...
Re: Mesa back...
« Reply #2 on: 28 Jul 2007, 13:56:18 »
I tried searching and back tracking my own post, but I didn't find anytthing.
Don't ask about my spelling. I know it sucks

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: Mesa back...
« Reply #3 on: 29 Jul 2007, 16:00:32 »
I did a search mate, and I couldn't find anything either. As far as I could find your first posts came around '04.

My suggestion: have you actually tried the camera.sqs yet, even though you don't want to? It might just surprise you how easily things come back to you. :dunno:

Of course, I have been know to be wrong before  :D
« Last Edit: 29 Jul 2007, 20:58:11 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline schuler

  • Contributing Member
  • **
Re: Mesa back...
« Reply #4 on: 29 Jul 2007, 17:26:12 »
This is from Messiah
http://www.ofpec.com/ed_depot/the_files/OFPResources/tutorials/camera_sqsTut.zip
this exec "camera.sqs"   using ctrl and pasteing to a text like Chris’s ofp editor
 
is this what your looking for? schuler or does this help?

Quote
; concept by Turok_GMT, modified by snYpir

; syntax:
; [<name of vehicle>, <name of unit to target>,
;  <[xoffset,yoffset,zoffset]><relative to vehicle?>] exec "vehiclecam.sqs"

; example:
; [heli, dilbert,[-2,-4,1],false] exec "vehiclecam.sqs"
; to stop cam use, vehiclecamstop = true
; the loop ends here when vehiclecamstop gets set to true by either
; a trigger or a waypoint's "on activation" field like vehiclecamstop = true

; Thx guys for this super sqs, Ian Murrin.





; get camera vehicle and target
_unit = _this select 0
_target = _this select 1

; u can change the positional offsets for the camera (these are relative to the vehicle)
; x offset
_camoffsetX = (_this select 2) select 0

; y offset
_camoffsetY = (_this select 2) select 1

; z offset
_camoffsetZ = (_this select 2) select 2

; do u want your offsets to be relative to the vehicle?
_camrelative = _this select 3

; clear the variable that will stop this script
vehiclecamstop = false

; create a camera
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

titleCut ["","BLACK IN",10]







; now create a loop to continuously update the cam's pos
; so it appears to be attached to the vehicle

#loop

_newpos = getpos _unit

; set posn not relative to vehicle?
? NOT(_camrelative) : _cam camsetpos [(_newpos select 0) + _camoffsetX, (_newpos select 1) + _camoffsetY, (_newpos select 2) + _camoffsetZ]; goto "commit"

; set posn relative to vehicle
_cam camsettarget _unit
_cam camsetrelpos [_camoffsetX,_camoffsetY,_camoffsetZ]

#commit
_cam camcommit 0

; aim camera at target
_cam camsettarget _target
_cam camcommit 0


; insert a small update time to avoid anychance of any nasty
; infinity loop errors

~0.01

; perform an if test to see if _stop has been set to true
; of not, do another lap of the loop

? NOT(vehiclecamstop) : goto "loop"








; the loop ends here when vehiclecamstop gets set to true by either
; a trigger or a waypoint's "on activation" field

; once loop had ended, kill the camera and return control to
; player

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

exit


EDIT iam not sure but as Tyger "said something might refresh memories?
it has the

; x offset
_camoffsetX = (_this select 2) select 0

; y offset
_camoffsetY = (_this select 2) select 1

; z offset
_camoffsetZ = (_this select 2) select 2

its all controled under ;this exec "camera.sqs" with the arrows and key pad,,, like 4 8 6 2


« Last Edit: 30 Jul 2007, 10:51:25 by schuler »
Semper Fi

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Mesa back...
« Reply #5 on: 29 Jul 2007, 20:55:58 »
Sounds like you are describing Blanco's Logic Cam script. Click on Editors Depot(ED)/script/cameras
urp!

Offline The_Bishop_Ghost

  • Members
  • *
  • OFP fanatic and mission maker to be...
Re: Mesa back...
« Reply #6 on: 04 Aug 2007, 14:42:59 »
Schuler that reads likle it might be what I am looking for. I'll give it a try.

And to all others thanks for your input. I'll try the camera.sqs. I mean it can't be that hard to figure out.
Don't ask about my spelling. I know it sucks

Offline schuler

  • Contributing Member
  • **
Re: Mesa back...
« Reply #7 on: 06 Aug 2007, 07:43:13 »
hey The_Bishop_Ghost  [] exec "camera.sqs"  in a trigger ,i think you can then move the camera, with 4 8 6 2 and the arrows ...you use ctrl for a copy or its starts it [not sure], then paste it in a script, that gives you all the details of the camera pos . im not sure about it all, sorry, but hopfully that helps a bit more
Semper Fi