OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The_Bishop_Ghost 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?
-
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.
-
I tried searching and back tracking my own post, but I didn't find anytthing.
-
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
-
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?
; 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
-
Sounds like you are describing Blanco's Logic Cam script. Click on Editors Depot(ED)/script/cameras
-
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.
-
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