Home   Help Search Login Register  

Author Topic: Mesa back...  (Read 1351 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 »
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
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