OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kueter on 23 Jan 2004, 06:47:59
-
Howdy fellas,
Any one know how to have a sniper view during a cutscene(like binocular view or tv view). ie a sniper targeting an officer? :D
Thanks in advance!
Peace,
Kueter
-
Greetings Kueter
Yes, this is possible in OFP:R, but there is an easier way than using resources (only in Resistance though). There is a new camera command that lets you see through the "gunner" optics of a unit (the scope in the case of a sniper). Unfortunately, I can't remember the code at this time, and a quick look at the comref has not revealed it.
But before I expend too much effort, what version of OFP have you got?
-Supreme Commander PsyWarrior
-Psychic Productions
-
;) Thanks for the reply PsyWarrior.
I am currently running 1.91 and 1.95 res.
:P
-
You're talking about the 'switchCamera' command PsyWarrior.
unit switchCamera "cameraMode"
Where cameraMode can be "internal", "external", "group", "gunner" and maybe something else that I cant remember now.
Cheers
-
That's the one.
It was listed in the ComRef, But it didn't say anything about the "gunner" CameraMode.
EDIT: No, I was looking at completely the wrong command :-[
Problem Solved, hopefully.
-Supr. Cmdr. PsyWarrior
-Psychic Productions
-
Problem Solved, hopefully.
I doubt it...
At least I didn't get it to work during a cut scene... :(
Worked within game though...
If someone knows if/how this works in cutsecene I'd be very happy to know... :P
-
Hey
umm . . . soz, don't really know much about this, but to that Q how to use it, I think you shove it after setFOV. Not sure.
But what does ring a bell on this subject from somewhere else, is the camera
"Optics" or just "Optic"
Can't remember, soz. Hope it helps ;)
(O'Niel Ryan
-
Read the Switchcamera Tutorial (http://www.ofpec.com/editors/resource_view.php?id=82), by lilmat. ;)
-
Greetings
Just a note of interest: This effect can be seen in the OFP:R campaign intro, when the Resistance try to ambush Guba.
You could DePBO the campaign and see how BIS did it. I can't do this at this time, since I messed up my copy of OFP Mgr and on 28.8kb/s, it's going to be a while till I get a new copy...
But in all likelyhood, the tutorial will solve this problem (now where did I hear that recently...problem solved, hopefully...hmm) ::)
-Supr. Cmdr. PsyWarrior
-
Greetings
Just a note of interest: This effect can be seen in the OFP:R campaign intro, when the Resistance try to ambush Guba.
You could DePBO the campaign and see how BIS did it. I can't do this at this time, since I messed up my copy of OFP Mgr and on 28.8kb/s, it's going to be a while till I get a new copy...
But in all likelyhood, the tutorial will solve this problem (now where did I hear that recently...problem solved, hopefully...hmm) ::)
Oh, I just had to... ;D
Nope, BIS does it cutRsc... Here a quote from the actual intro code:
;Sniper optika
_camera camSetTarget [18148.12,-88672.24,-4468.43]
_camera camSetPos [2369.80,9967.60,0.25]
_camera camSetFOV 0.058
_camera camCommit 0
@camCommitted _camera
showCinemaBorder false
cutrsc ["Dragunov","plain down",1000]
ressniper setPos [2429.292,9640.549,-0.003]
ressniper setDir -12
ressniper dowatch [-15729.83,107930.91,3217.60]
ressniper setcaptive true
ressniper setunitpos "down"
rvsniper say "DX01v11"
~3
titleCut ["","BLACK OUT",0.1]
~0.1
-
Wow guys,
Thanks for all your advice! :D Thanks Bizon, I just got the switchcamera.tut. :P
Cheers,
Kueter