Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Binoculars  (Read 679 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