#INIT
	; camera basic initialization
	_camera = "camera" camCreate [0,0,0]
	_camera camSetTarget [0,0,0]
	_camera cameraEffect ["internal","back"]
	_camera camSetFOV 0.700
	8 fadeSound 0

	_camera camSetTarget pln1
	_camera camSetRelPos [30,15,2]
	_camera camSetFOV 0.700
	_camera camCommit 0
	@camCommitted _camera

	_MusicArray = ["rtrack2","7thoverdose","7thlifeless","7thIAmGonaFly","7thdecide","7thdarken","7thmylife"];
	playmusic [(_MusicArray select (random (count _MusicArray-1)) ),0]

	titlecut ["","BLACK IN",3];

#START
	

#FLYBY
	_DISTANCE=300+random 200
	_offset = (_DISTANCE/2) - random (_DISTANCE)
	_camera camSetTarget pln1
	_camera camSetrelPos [_offset,_DISTANCE,-1*(getpos pln1 select 2)+5]
	_camera camSetFOV 0.800
	_camera camCommit 0
	@camCommitted _camera
	~(_DISTANCE/25)
	goto "JUMPER"
	

#SideCammer
	~.001
	_camera camSetTarget pln1
	_camera camSetRelPos [5,-8,-1]
	_camera camSetFOV 0.700
	_camera camCommit 0
	@camCommitted _camera
	_A=_A+1;
	if (_A < (150 + random 200)) then { goto "SideCammer"; };
	goto "JUMPER"

#SideCammer2
	~.001
	_camera camSetTarget pln1
	_camera camSetRelPos [10,30,10]
	_camera camSetFOV 0.700
	_camera camCommit 0
	@camCommitted _camera
	_A=_A+1;
	if (_A < (150 + random 200)) then { goto "SideCammer2"; };
	goto "JUMPER"

#JUMPER
	_A=0;
	pln1 setfuel 1
	_JUMP=random 100

	if (_JUMP<33) then { goto "Sidecammer" }
	if (_JUMP<66) then { goto "Sidecammer2" }
	goto "flyby";

; Destroy the camera
camDestroy _camera

; end the intro
endcut=true

; Exit this script
exit
