OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SAS4Life on 13 Jul 2008, 20:03:55

Title: Sniper Scope
Post by: SAS4Life on 13 Jul 2008, 20:03:55
Im trying to make a cut scene where the camera looks down a sniper scope and zooms in, i know you can do it with binoculars but know the code for it. Obviously im trying to do it in a script so just need the camera effect code.

Cheers guys
Title: Re: Sniper Scope
Post by: Gcfungus on 13 Jul 2008, 20:20:24
I don't believe there is one. What you can do, however, is just set the FOV a bit more, then zoom to give the impression of a sniper.
Though I did see this done in the resistance campaign. I don't know.  :dunno:
Title: Re: Sniper Scope
Post by: laggy on 13 Jul 2008, 20:33:11
Hi,

Not sure if I remember correctly, but I think you can use the switchCamera command. Name your sniper MySniperName.

Then something like: MySniperName switchCamera "Gunner". That makes you "see the world" from the snipers eyes through the scope.

Look up the command in the COMREF though, I might be wrong. Good luck!

Laggy
Title: Re: Sniper Scope
Post by: SAS4Life on 14 Jul 2008, 00:21:18
Cheers Laggy

Just checked the comref looks about right i will give it ago tomz and tell ya how i get on thanx for everyones help