OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: punisher on 20 Apr 2003, 15:00:53

Title: Getting a view through binocs
Post by: punisher on 20 Apr 2003, 15:00:53
hi
i have seen on ertain missions that during an intro you get a vew through binoculars.
I just want to know how to do this and how to get them pointing at the tank i want.
cheers :D
Title: Re:Getting a view through binocs
Post by: macguba on 20 Apr 2003, 15:12:08
You need snYpir's Intro to Camera Scripting. (http://www.ofpec.com/editors/resource_view.php?id=50)    Which is one of these must read tutorials.   Follow it with messiah's camera.sqs tutorial.
Title: Re:Getting a view through binocs
Post by: Knut Erik on 20 Apr 2003, 15:12:57
Here ya go..

cutrsc ["binocular", "plain"]
showcinemaborder false
_camera camSetTarget Tank
_camera camSetPos getpos yourman
_camera camSetFOV 0.231
_camera camCommit 0

And here is the explaining :

cutrsc ["binocular", "plain"] : Makes the screen look like a binocular

showcinemaborder false : Removes the black line at the top and at the bottom during the cutseene

The rest are usual camera commands.
To get the screen look normal again :

CutRSC ["Default","Plain Down"]
showcinemaborder true


Just ask for further explanation if you need  ;D
Title: Re:Getting a view through binocs
Post by: punisher on 20 Apr 2003, 15:47:56
sorry but that just makes the bioculars apear behind the player.
do i exec it in a trigger or the mans init?
Title: Re:Getting a view through binocs
Post by: macguba on 20 Apr 2003, 16:45:17
In a camera script.

You might want to read the switchcamera tutorial too.  ;)
Title: Re:Getting a view through binocs
Post by: punisher on 20 Apr 2003, 20:13:31
Gaaaaah (brain pains)

i cant be bothered reading pages of stuff i will just leave it for now
Title: Re:Getting a view through binocs
Post by: macguba on 20 Apr 2003, 20:28:14
lol I know how you feel ... it's not difficult, come back to it.