titleCut ["","BLACK IN",100000000]
enableRadio false
_camera = "camera" camCreate [5085.375488,6407.961914,20]
_camera cameraEffect ["internal","back"]
_camera camSetFOV 0.7
_camera camSetTarget [5085.375488,6407.961914,-5]
_camera camCommit 0
@camCommitted _camera

~2

_camera camSetPos [(getMarkerPos "Cam1" select 0),(getMarkerPos "Cam1" select 1),0.3]
_camera camSetTarget getMarkerPos "Target1"
_camera camCommit 0

titleCut ["","BLACK IN",7]

~3

_camera camSetPos [(getMarkerPos "Cam2" select 0),(getMarkerPos "Cam2" select 1),0.3]
_camera camSetTarget getMarkerPos "Target2"
_camera camCommit 3

~2.5

Victor move getMarkerPos "W1"

Plane1 setPos getMarkerPos "Plane1"
Plane2 setPos getMarkerPos "Plane2"
Plane3 setPos getMarkerPos "Plane3"
Plane4 setPos getMarkerPos "Plane4"

~1.5

_camera camSetPos [(getMarkerPos "Cam2" select 0),(getMarkerPos "Cam2" select 1),3]
_camera camSetTarget getMarkerPos "Target3"
_camera camCommit 2

~2

Plane5 setDammage 1

Guba move getMarkerPos "G1"
Guba setSpeedMode "FULL"

~1

Plane6 setDammage 1

~3

_camera camSetPos [(getMarkerPos "Cam3" select 0),(getMarkerPos "Cam3" select 1),2]
_camera camSetTarget [(getMarkerPos "G1" select 0),(getMarkerPos "G1" select 1),1.7]
_camera camCommit 0

@unitReady Guba

_camera camSetPos [(getMarkerPos "Cam4" select 0),(getMarkerPos "Cam4" select 1),1.7]
_camera camCommit 0

~1

titleText["No! Not like this!","PLAIN DOWN"]

~3

_camera camSetPos [(getMarkerPos "Cam5" select 0),(getMarkerPos "Cam5" select 1),1.7]
_camera camSetTarget tank1
_camera camCommit 1

Guba doTarget tank1

~1

titleText["Attack!","PLAIN DOWN"]

~2

Guba moveInCommander tank1

Victor setPos getMarkerPos "Victor"
Victor move getMarkerPos "W2"

_camera camSetPos [(getMarkerPos "Cam6" select 0),(getMarkerPos "Cam6" select 1),0.1]
_camera camSetTarget getMarkerPos "Target4"
_camera camCommit 0


;**-----------------------------------------**
;this is where it goes wrong
;**-----------------------------------------**

tank1 setFuel 1
tank2 setFuel 1
tank3 setFuel 1

tank1 setPos getMarkerPos "tank1"
tank2 setPos getMarkerPos "tank2"
tank3 setPos getMarkerPos "tank3"

[crew2, crew1_1] join group crew1;
crew1_1 move getMarkerPos "W2"
crew3 move getMarkerPos "W2"
crew5 move getMarkerPos "W2"

~3

_camera camSetPos [(getMarkerPos "Cam7" select 0),(getMarkerPos "Cam7" select 1),0.1]
_camera camSetTarget getMarkerPos "Target5"
_camera camCommit 0

~100

player cameraEffect ["terminate","back"]
camDestroy _camera

exit