OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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.
-
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
-
sorry but that just makes the bioculars apear behind the player.
do i exec it in a trigger or the mans init?
-
In a camera script.
You might want to read the switchcamera tutorial too. ;)
-
Gaaaaah (brain pains)
i cant be bothered reading pages of stuff i will just leave it for now
-
lol I know how you feel ... it's not difficult, come back to it.