OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: InFeErNiTo on 30 May 2004, 21:07:23
-
I've seen this used on the campain mission, and i was wondering if i could apply this to one of my missions. I want a the Binocular feature to come up and scan a town from right to left.
any help would be great
thx
-
I found this on my travels I don't think it'll go left or right but i think if you use setTarget or something along those lines it might work.
CutRSC ["Binocular","Plain Down",100]
_Zoom = 0.7
#ZoomIn
_zoom = _zoom - 0.01
_cam CamSetFov _zoom
_cam CamCommit 0
~0.01
? _zoom < 0.1 : goto "ZoomOut"
#ZoomOut
_zoom = _zoom + 0.01
_cam CamSetFov _zoom
_cam CamCommit 0
~0.01
? _zoom > 0.7 : goto "Done"
#Done
exit
There may be some bugs but if there are let me know :D
Hauk
-
Or
cutrsc ["binocular","plain",10]
~10
CutRSC ["Default","Plain",0]
exit
;)
(O'Neil