okay ive changed it slightly because the action eject wasnt working so i thought i would cam create a parachute an move the pilot in it to give the illusion that he bailed out but now the script just shows the chopper on the ground.
here are the scripts
script1 wich is what ive been working on
titlecut ["", "black in", 3]
shilka switchcamera "gunner"
shilka setpos getpos maybe_2
shilka dotarget uh60
shilka dofire uh60
#check
? (getdammage uh60 >= 0.80) : uh60 setfuel 0; goto "done"; shilka dofire objnull; shilka dotarget objnull
~0.01
goto "check"
#done
[] exec "camloop.sqs"
#check2
_height = getpos uh60 select 2
? _height <=80 : uh60 setpos [getpos set1 select 0, getpos set1 select 1, _height]; parachute = "parachuteWest" camCreate [0,0,80]; uh60d moveindriver parachute
? _height <=5: uh60 setpos [getpos set1 select 0, getpos set1 select 1, _height]; goto "finish"
uh60d setdammage 0
~0.01
goto "check2"
#finish
uh60 setpos getpos set1
uh60p setdamage 0
uh60 setdammage 0.99
;uh60p setpos getpos set_1
trig1 setpos getpos uh60d
[] exec "obj3.sqs"
player setcaptive false
titlecut ["", "white out", 1]
player switchcamera "INTERNAL"
shilkascript = true
~1
obj5 = true
titlecut ["", "black in", 1]
~1
player switchcamera "INTERNAL"
exit
script 2 wich is a cam follow script
_camera = "camera" camcreate [0,0,0]
titlecut [" ", "black in", 0.75]
#loop
_camera cameraeffect ["internal", "back"]
_camera camsettarget uh60
_camera camsetrelpos [2,10,1.5]
_camera camcommit 0
~0
? obj5 : goto "rest"
goto "loop"
#rest
_camera camsettarget uh60p
_camera camcommit 2
~2
titlecut [" ","BLACK OUT",0.75]
~0.75
_camera cameraeffect ["terminate", "back"]
camdestroy _camera
player switchcamera "internal"
titlecut [" ","BLACK in",0.75]
exit
if you can see any mistakes in either of these 2 scripts please can you either tell me or correct them