; ***************************************
;        Operation Farmland Script
; ***************************************

_camera = "camera" camCreate [0,0,0]
_camera cameraEffect ["internal","back"]

0 fadeMusic 0.2
0 fadeSound 0.0

_rnd = random 10

? _rnd > 7.5 : goto "t4"
? _rnd > 5 : goto "t3"
? _rnd > 2.5 : goto "t2"
playMusic "RTrack6"
goto "loop"
#t2
playMusic "RTrack5"
goto "loop"
#t3
playMusic "RTrack4"
goto "loop"
#t4
playMusic "RTrack2"
goto "loop"


#loop


_camera camSetTarget plane1
_camera camSetRelPos [-12.35,-8.09,1.73]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


_camera camSetTarget plane1
_camera camSetRelPos [3.03,-4.59,-0.89]
_camera camSetFOV 0.700
_camera camCommit 10
@camCommitted _camera


~2
_camera camSetTarget plane2
_camera camSetrelPos [10, 30, 3]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


_camera camSetTarget plane2
_camera camSetRelPos [3.03,-4.59,-0.89]
_camera camSetFOV 0.700
_camera camCommit 10
@camCommitted _camera


~1
_camera camSetTarget bus1
_camera camSetrelPos [10, 30, 3]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


_camera camSetTarget bus1
_camera camSetRelPos [3.03,-4.59,-0.89]
_camera camSetFOV 0.700
_camera camCommit 10
@camCommitted _camera

~2
_camera camSetTarget biker
_camera camSetrelPos [10, 30, 3]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


_camera camSetTarget biker
_camera camSetRelPos [3.03,-4.59,-0.89]
_camera camSetFOV 0.700
_camera camCommit 10
@camCommitted _camera

~2
bobby playmove "FXToHand"
rob playmove "effectstandtalk"
_camera camSetTarget jeep
_camera camSetRelPos [10, 30, 3]
_camera camSetFOV 0.172
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget jeep
_camera camSetRelPos [3.03,-4.59,-0.89]
_camera camSetFOV 0.372
_camera camCommit 12
@camCommitted _camera

~2
boy switchmove "FXStandDropTel"
_camera camSetTarget boy
_camera camSetRelPos [10, 30, 3]
_camera camSetFOV 0.172
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget boy
_camera camSetRelPos [3.03,-4.59,-0.89]
_camera camSetFOV 0.372
_camera camCommit 12
~11
@camCommitted _camera


goto "loop"


;exit

camDestroy _camera
exit