Home   Help Search Login Register  

Author Topic: Binoculars  (Read 456 times)

0 Members and 1 Guest are viewing this topic.

InFeErNiTo

  • Guest
Binoculars
« 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

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:Binoculars
« Reply #1 on: 31 May 2004, 19:54:34 »
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.

Code: [Select]
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

O Neil

  • Guest
Re:Binoculars
« Reply #2 on: 06 Jun 2004, 06:15:15 »
Or

cutrsc ["binocular","plain",10]
~10
CutRSC ["Default","Plain",0]
exit



;)

(O'Neil